Palette
Every color on this page comes from
palette.toml
when the site builds, and every contrast ratio is worked out from it. Ratios
are WCAG 2 contrast ratios.
Base colors
Section titled “Base colors”The base colors are numbered like Nord’s, so a port can be compared with Nord’s. The four background grays and the comment gray are Gneiss’s own; the text and accent colors are Nord’s values.
| Color | Hex | Use | On gneiss0 | |
|---|---|---|---|---|
gneiss0 | #1C1C1C | editor and window background | ||
gneiss1 | #2D2D2D | panels, status bars, the current line | 1.24:1 | |
gneiss2 | #383838 | selection, raised controls | 1.45:1 | |
gneiss3 | #424242 | borders, indent guides | 1.70:1 | |
gneiss-comment | #6E6E6E | comments: Nord's #616E88 at the same lightness | 3.34:1 | |
gneiss4 | #D8DEE9 | body text | 12.62:1 | |
gneiss5 | #E5E9F0 | 14.00:1 | ||
gneiss6 | #ECEFF4 | punctuation, emphasis | 14.79:1 | |
gneiss7 | #8FBCBB | attribute names, types | 8.18:1 | |
gneiss8 | #88C0D0 | functions; the main accent | 8.52:1 | |
gneiss9 | #81A1C1 | keywords, operators | 6.33:1 | |
gneiss10 | #5E81AC | deep blue, for hints | 4.23:1 | |
gneiss11 | #BF616A | errors, deletions | 4.17:1 | |
gneiss12 | #D08770 | used sparingly | 5.99:1 | |
gneiss13 | #EBCB8B | warnings | 10.91:1 | |
gneiss14 | #A3BE8C | strings, additions | 8.36:1 | |
gneiss15 | #B48EAD | numbers | 6.02:1 |
Contrast steps
Section titled “Contrast steps”The background grays keep Nord’s steps: each is as far from the background as its Nord counterpart is from Nord’s. The comment gray is as light as Nord’s comment color. Design explains why.
| Gneiss | On gneiss0 | Nord | On nord0 |
|---|---|---|---|
gneiss1 | 1.24:1 | nord1 | 1.24:1 |
gneiss2 | 1.45:1 | nord2 | 1.45:1 |
gneiss3 | 1.70:1 | nord3 | 1.69:1 |
gneiss-comment's relative luminance is 0.1559, and Nord's comment color's is 0.1547: 0.8% apart. fg-muted is 4.59:1 on gneiss2.
palette.toml also names roles, for apps themed from raw colors rather than
by a port of their own, such as a window manager’s borders or a desktop
shell. Each role names a base color, except fg-muted.
| Role | Color | Hex | On bg | |
|---|---|---|---|---|
bg | gneiss0 | #1C1C1C | ||
bg-subtle | gneiss1 | #2D2D2D | 1.24:1 | |
surface | gneiss1 | #2D2D2D | 1.24:1 | |
overlay | gneiss1 | #2D2D2D | 1.24:1 | |
elevated | gneiss2 | #383838 | 1.45:1 | |
selection | gneiss2 | #383838 | 1.45:1 | |
border | gneiss3 | #424242 | 1.70:1 | |
border-strong | gneiss-comment | #6E6E6E | 3.34:1 | |
fg | gneiss4 | #D8DEE9 | 12.62:1 | |
fg-muted | not in Nord: a gray just over 4.5:1 on gneiss2 | #A2A2A2 | 6.68:1 | |
fg-faint | gneiss-comment | #6E6E6E | 3.34:1 | |
cursor | gneiss4 | #D8DEE9 | 12.62:1 | |
accent | gneiss8 | #88C0D0 | 8.52:1 | |
on-accent | gneiss0 | #1C1C1C | 8.52:1 on accent | |
blue | gneiss9 | #81A1C1 | 6.33:1 | |
green | gneiss14 | #A3BE8C | 8.36:1 | |
red | gneiss11 | #BF616A | 4.17:1 | |
yellow | gneiss13 | #EBCB8B | 10.91:1 | |
magenta | gneiss15 | #B48EAD | 6.02:1 | |
cyan | gneiss8 | #88C0D0 | 8.52:1 | |
blue-bright | gneiss9 | #81A1C1 | 6.33:1 | |
green-bright | gneiss14 | #A3BE8C | 8.36:1 | |
red-bright | gneiss11 | #BF616A | 4.17:1 | |
yellow-bright | gneiss13 | #EBCB8B | 10.91:1 | |
magenta-bright | gneiss15 | #B48EAD | 6.02:1 | |
cyan-bright | gneiss7 | #8FBCBB | 8.18:1 |
As data
Section titled “As data”palette.tomlhas the base colors under[base]and the roles under[colors].- The Nix flake has it parsed, as
lib.palette: see Nix.