Skip to content

Color roles

The palette supplies raw colors. @nightwire/css maps them to roles that re-resolve on each flavor and accent scope.

Use Roles Palette source
Page surfaces canvas, canvas-subtle, canvas-sunken base, mantle, crust
Component surfaces panel, panel-hover, panel-active surface0, surface1, surface2
Text fg, fg-muted, fg-subtle, fg-faint, fg-disabled text, subtext1, subtext0, overlay2, overlay1
Lines line, line-strong, line-bright overlay0, overlay1, overlay2
Brand intents primary, secondary, tertiary Selected accent (indigo by default), synth, ice
Status intents info, success, warning, danger arc, matrix, volt, alarm
Interaction ring, link Primary intent, iris

Every intent X has an --nw-on-X foreground for a solid --nw-X background and an --nw-X-soft tint for a quieter surface. Check contrast on the actual background rather than assuming an intent color works as text everywhere. --nw-line is decorative; use --nw-line-strong for control boundaries on canvas.

.connection-state {
color: var(--nw-on-success);
background-color: var(--nw-success);
}