Palette
Each flavor has 24 named colors: twelve neutrals and twelve accents. The names are the API; the values are tuned per flavor. Colors were designed in OKLCH, gamut-mapped, and frozen as hex, the canonical form. RGB and OKLCH below are derived from that hex, and every table on this page is generated from the published package at build time.
Neutrals, darkest to lightest on dark flavors: crust, mantle and base are backgrounds; surface0 to surface2 are raised fills; overlay0 to overlay2 are lines and icons; subtext0, subtext1 and text are text. Lumen runs the background ramp the other way (crust lightest around the edges, base the page). Accents are identical across the three dark flavors; Lumen has a deeper set that stays readable on light backgrounds.
The last column is the WCAG contrast ratio against the flavor’s base. Ratios are truncated, never rounded up, and badges mark AAA (7:1), AA (4.5:1) and AA large text or UI (3:1). Backgrounds and hairlines sit below 3:1 by design.
The deepest dark: near-black indigo with the highest contrast, for dense dashboards and HUD frames.
| Swatch | Color | Hex | RGB | OKLCH | vs base |
|---|---|---|---|---|---|
Crust--nw-crustDeepest background: app chrome, HUD backdrops, code | #030312 | 3 3 18 | oklch(11.2% 0.039 278.1) | 1.03 | |
Mantle--nw-mantleSecondary background: sidebars, navigation, inputs | #050419 | 5 4 25 | oklch(12.8% 0.048 280.4) | 1.02 | |
Base--nw-baseMain background | #080720 | 8 7 32 | oklch(15.0% 0.052 280.2) | base | |
Surface 0--nw-surface0Raised fill: cards, menus, popovers | #12122f | 18 18 47 | oklch(20.1% 0.056 280.1) | 1.08 | |
Surface 1--nw-surface1Hover fill | #1b1c3b | 27 28 59 | oklch(24.4% 0.058 279.8) | 1.20 | |
Surface 2--nw-surface2Active fill | #262747 | 38 39 71 | oklch(28.9% 0.058 280.8) | 1.37 | |
Overlay 0--nw-overlay0Decorative hairlines, grid lines | #3e415f | 62 65 95 | oklch(38.6% 0.051 279.3) | 2.00 | |
Overlay 1--nw-overlay1Component boundaries, input borders, disabled text | #646781 | 100 103 129 | oklch(52.1% 0.041 279.7) | 3.57AA large | |
Overlay 2--nw-overlay2Icons, strong borders, comments | #82849b | 130 132 155 | oklch(62.0% 0.035 281.4) | 5.39AA | |
Subtext 0--nw-subtext0Placeholders, tertiary text | #aeb0c1 | 174 176 193 | oklch(76.1% 0.024 280.5) | 9.21AAA | |
Subtext 1--nw-subtext1Secondary text | #d0d2dd | 208 210 221 | oklch(86.5% 0.015 277.8) | 13.13AAA | |
Text--nw-textPrimary text | #f0f1f7 | 240 241 247 | oklch(95.9% 0.008 278.6) | 17.54AAA | |
Indigo--nw-indigoBrand primary: buttons, focus rings, glow | #848fff | 132 143 255 | oklch(69.2% 0.163 277.0) | 6.92AA | |
Iris--nw-irisPale violet: links, parameters | #cdc0ff | 205 192 255 | oklch(84.0% 0.088 293.9) | 11.85AAA | |
Flux--nw-fluxElectric violet: keywords | #d071ff | 208 113 255 | oklch(71.3% 0.214 313.1) | 7.05AAA | |
Synth--nw-synthSecondary; the far end of the wire gradient, tags | #ff47d8 | 255 71 216 | oklch(70.9% 0.260 338.0) | 6.73AA | |
Alarm--nw-alarmDanger, errors, deletions, booleans | #ff5d7b | 255 93 123 | oklch(69.8% 0.197 12.8) | 6.69AA | |
Flare--nw-flareOrange: numbers and constants | #ff9845 | 255 152 69 | oklch(77.3% 0.156 56.2) | 9.25AAA | |
Volt--nw-voltWarning; types and classes | #f8e445 | 248 228 69 | oklch(90.9% 0.170 101.9) | 15.23AAA | |
Matrix--nw-matrixSuccess; strings, insertions | #4bf677 | 75 246 119 | oklch(85.9% 0.220 148.0) | 13.89AAA | |
Circuit--nw-circuitTeal: attributes, operators, regex | #17edd5 | 23 237 213 | oklch(85.0% 0.150 182.0) | 13.29AAA | |
Ice--nw-iceTertiary; properties | #5eddfe | 94 221 254 | oklch(83.9% 0.120 217.9) | 12.48AAA | |
Arc--nw-arcInfo; functions and methods | #4aa9ff | 74 169 255 | oklch(71.7% 0.154 248.9) | 7.92AAA | |
Steel--nw-steelNeutral metal: quiet badges and chrome | #b5bdd5 | 181 189 213 | oklch(80.0% 0.035 270.9) | 10.55AAA |
Nocturne
Section titled “Nocturne”The default dark: deep electric indigo. Websites and docs start here.
| Swatch | Color | Hex | RGB | OKLCH | vs base |
|---|---|---|---|---|---|
Crust--nw-crustDeepest background: app chrome, HUD backdrops, code | #0a0329 | 10 3 41 | oklch(15.1% 0.075 283.5) | 1.07 | |
Mantle--nw-mantleSecondary background: sidebars, navigation, inputs | #0e0533 | 14 5 51 | oklch(17.3% 0.085 282.8) | 1.04 | |
Base--nw-baseMain background | #14093e | 20 9 62 | oklch(20.1% 0.094 283.5) | base | |
Surface 0--nw-surface0Raised fill: cards, menus, popovers | #1d154c | 29 21 76 | oklch(24.5% 0.097 283.3) | 1.11 | |
Surface 1--nw-surface1Hover fill | #272258 | 39 34 88 | oklch(29.1% 0.094 283.1) | 1.27 | |
Surface 2--nw-surface2Active fill | #302d60 | 48 45 96 | oklch(32.9% 0.088 283.1) | 1.46 | |
Overlay 0--nw-overlay0Decorative hairlines, grid lines | #464673 | 70 70 115 | oklch(41.5% 0.074 282.7) | 2.09 | |
Overlay 1--nw-overlay1Component boundaries, input borders, disabled text | #6c6d93 | 108 109 147 | oklch(54.9% 0.059 283.1) | 3.73AA large | |
Overlay 2--nw-overlay2Icons, strong borders, comments | #8b8cab | 139 140 171 | oklch(65.0% 0.046 283.6) | 5.65AA | |
Subtext 0--nw-subtext0Placeholders, tertiary text | #b2b4ca | 178 180 202 | oklch(77.5% 0.031 281.5) | 9.02AAA | |
Subtext 1--nw-subtext1Secondary text | #d4d4e3 | 212 212 227 | oklch(87.4% 0.021 286.0) | 12.58AAA | |
Text--nw-textPrimary text | #f2f3fa | 242 243 250 | oklch(96.5% 0.009 279.7) | 16.66AAA | |
Indigo--nw-indigoBrand primary: buttons, focus rings, glow | #848fff | 132 143 255 | oklch(69.2% 0.163 277.0) | 6.46AA | |
Iris--nw-irisPale violet: links, parameters | #cdc0ff | 205 192 255 | oklch(84.0% 0.088 293.9) | 11.05AAA | |
Flux--nw-fluxElectric violet: keywords | #d071ff | 208 113 255 | oklch(71.3% 0.214 313.1) | 6.57AA | |
Synth--nw-synthSecondary; the far end of the wire gradient, tags | #ff47d8 | 255 71 216 | oklch(70.9% 0.260 338.0) | 6.27AA | |
Alarm--nw-alarmDanger, errors, deletions, booleans | #ff5d7b | 255 93 123 | oklch(69.8% 0.197 12.8) | 6.24AA | |
Flare--nw-flareOrange: numbers and constants | #ff9845 | 255 152 69 | oklch(77.3% 0.156 56.2) | 8.63AAA | |
Volt--nw-voltWarning; types and classes | #f8e445 | 248 228 69 | oklch(90.9% 0.170 101.9) | 14.20AAA | |
Matrix--nw-matrixSuccess; strings, insertions | #4bf677 | 75 246 119 | oklch(85.9% 0.220 148.0) | 12.95AAA | |
Circuit--nw-circuitTeal: attributes, operators, regex | #17edd5 | 23 237 213 | oklch(85.0% 0.150 182.0) | 12.39AAA | |
Ice--nw-iceTertiary; properties | #5eddfe | 94 221 254 | oklch(83.9% 0.120 217.9) | 11.63AAA | |
Arc--nw-arcInfo; functions and methods | #4aa9ff | 74 169 255 | oklch(71.7% 0.154 248.9) | 7.38AAA | |
Steel--nw-steelNeutral metal: quiet badges and chrome | #b5bdd5 | 181 189 213 | oklch(80.0% 0.035 270.9) | 9.84AAA |
Twilight
Section titled “Twilight”The softest dark: dusky violet-indigo with the lightest dark base, for long reading sessions.
| Swatch | Color | Hex | RGB | OKLCH | vs base |
|---|---|---|---|---|---|
Crust--nw-crustDeepest background: app chrome, HUD backdrops, code | #1b1136 | 27 17 54 | oklch(21.5% 0.069 292.0) | 1.13 | |
Mantle--nw-mantleSecondary background: sidebars, navigation, inputs | #211540 | 33 21 64 | oklch(23.9% 0.078 292.3) | 1.07 | |
Base--nw-baseMain background | #271a4b | 39 26 75 | oklch(26.5% 0.087 291.6) | base | |
Surface 0--nw-surface0Raised fill: cards, menus, popovers | #312457 | 49 36 87 | oklch(30.5% 0.089 292.1) | 1.13 | |
Surface 1--nw-surface1Hover fill | #3b2f61 | 59 47 97 | oklch(34.4% 0.085 292.4) | 1.32 | |
Surface 2--nw-surface2Active fill | #453b6a | 69 59 106 | oklch(38.5% 0.079 292.1) | 1.56 | |
Overlay 0--nw-overlay0Decorative hairlines, grid lines | #59517a | 89 81 122 | oklch(46.0% 0.066 292.5) | 2.15 | |
Overlay 1--nw-overlay1Component boundaries, input borders, disabled text | #7c7799 | 124 119 153 | oklch(58.6% 0.052 291.5) | 3.71AA large | |
Overlay 2--nw-overlay2Icons, strong borders, comments | #9793af | 151 147 175 | oklch(67.6% 0.041 291.8) | 5.32AA | |
Subtext 0--nw-subtext0Placeholders, tertiary text | #bab7cd | 186 183 205 | oklch(78.9% 0.031 291.9) | 8.04AAA | |
Subtext 1--nw-subtext1Secondary text | #d9d7e4 | 217 215 228 | oklch(88.5% 0.018 293.1) | 11.07AAA | |
Text--nw-textPrimary text | #f5f4fa | 245 244 250 | oklch(97.0% 0.008 293.9) | 14.37AAA | |
Indigo--nw-indigoBrand primary: buttons, focus rings, glow | #848fff | 132 143 255 | oklch(69.2% 0.163 277.0) | 5.50AA | |
Iris--nw-irisPale violet: links, parameters | #cdc0ff | 205 192 255 | oklch(84.0% 0.088 293.9) | 9.41AAA | |
Flux--nw-fluxElectric violet: keywords | #d071ff | 208 113 255 | oklch(71.3% 0.214 313.1) | 5.60AA | |
Synth--nw-synthSecondary; the far end of the wire gradient, tags | #ff47d8 | 255 71 216 | oklch(70.9% 0.260 338.0) | 5.34AA | |
Alarm--nw-alarmDanger, errors, deletions, booleans | #ff5d7b | 255 93 123 | oklch(69.8% 0.197 12.8) | 5.31AA | |
Flare--nw-flareOrange: numbers and constants | #ff9845 | 255 152 69 | oklch(77.3% 0.156 56.2) | 7.35AAA | |
Volt--nw-voltWarning; types and classes | #f8e445 | 248 228 69 | oklch(90.9% 0.170 101.9) | 12.11AAA | |
Matrix--nw-matrixSuccess; strings, insertions | #4bf677 | 75 246 119 | oklch(85.9% 0.220 148.0) | 11.04AAA | |
Circuit--nw-circuitTeal: attributes, operators, regex | #17edd5 | 23 237 213 | oklch(85.0% 0.150 182.0) | 10.56AAA | |
Ice--nw-iceTertiary; properties | #5eddfe | 94 221 254 | oklch(83.9% 0.120 217.9) | 9.92AAA | |
Arc--nw-arcInfo; functions and methods | #4aa9ff | 74 169 255 | oklch(71.7% 0.154 248.9) | 6.29AA | |
Steel--nw-steelNeutral metal: quiet badges and chrome | #b5bdd5 | 181 189 213 | oklch(80.0% 0.035 270.9) | 8.38AAA |
The light flavor: lavender daylight with a deeper accent set.
| Swatch | Color | Hex | RGB | OKLCH | vs base |
|---|---|---|---|---|---|
Crust--nw-crustDeepest background: app chrome, HUD backdrops, code | #d3cefa | 211 206 250 | oklch(87.0% 0.061 290.3) | 1.23 | |
Mantle--nw-mantleSecondary background: sidebars, navigation, inputs | #dedaff | 222 218 255 | oklch(90.3% 0.050 290.3) | 1.10 | |
Base--nw-baseMain background | #eae6ff | 234 230 255 | oklch(93.6% 0.034 293.1) | base | |
Surface 0--nw-surface0Raised fill: cards, menus, popovers | #ddd9ff | 221 217 255 | oklch(90.0% 0.052 290.1) | 1.11 | |
Surface 1--nw-surface1Hover fill | #d1cdf8 | 209 205 248 | oklch(86.5% 0.059 289.4) | 1.25 | |
Surface 2--nw-surface2Active fill | #c6c1ef | 198 193 239 | oklch(83.0% 0.064 289.9) | 1.40 | |
Overlay 0--nw-overlay0Decorative hairlines, grid lines | #b0abd9 | 176 171 217 | oklch(76.1% 0.066 289.7) | 1.78 | |
Overlay 1--nw-overlay1Component boundaries, input borders, disabled text | #7c76a4 | 124 118 164 | oklch(58.9% 0.070 290.1) | 3.46AA large | |
Overlay 2--nw-overlay2Icons, strong borders, comments | #686191 | 104 97 145 | oklch(51.9% 0.075 290.2) | 4.65AA | |
Subtext 0--nw-subtext0Placeholders, tertiary text | #524a7e | 82 74 126 | oklch(44.1% 0.084 289.5) | 6.53AA | |
Subtext 1--nw-subtext1Secondary text | #3d326b | 61 50 107 | oklch(36.0% 0.096 289.6) | 9.24AAA | |
Text--nw-textPrimary text | #1f0e47 | 31 14 71 | oklch(23.1% 0.099 290.0) | 14.24AAA | |
Indigo--nw-indigoBrand primary: buttons, focus rings, glow | #4940d7 | 73 64 215 | oklch(48.5% 0.221 276.9) | 5.75AA | |
Iris--nw-irisPale violet: links, parameters | #6746a7 | 103 70 167 | oklch(48.0% 0.150 295.9) | 5.73AA | |
Flux--nw-fluxElectric violet: keywords | #8c16c5 | 140 22 197 | oklch(49.9% 0.240 310.0) | 5.68AA | |
Synth--nw-synthSecondary; the far end of the wire gradient, tags | #a8008b | 168 0 139 | oklch(49.6% 0.217 338.3) | 5.68AA | |
Alarm--nw-alarmDanger, errors, deletions, booleans | #b6002c | 182 0 44 | oklch(49.1% 0.197 20.5) | 5.70AA | |
Flare--nw-flareOrange: numbers and constants | #9d3a00 | 157 58 0 | oklch(48.2% 0.144 42.7) | 5.68AA | |
Volt--nw-voltWarning; types and classes | #6e5700 | 110 87 0 | oklch(46.7% 0.095 90.9) | 5.70AA | |
Matrix--nw-matrixSuccess; strings, insertions | #00680f | 0 104 15 | oklch(44.9% 0.147 143.8) | 5.77AA | |
Circuit--nw-circuitTeal: attributes, operators, regex | #006558 | 0 101 88 | oklch(45.4% 0.082 179.9) | 5.74AA | |
Ice--nw-iceTertiary; properties | #006081 | 0 96 129 | oklch(45.8% 0.092 230.6) | 5.77AA | |
Arc--nw-arcInfo; functions and methods | #0055b6 | 0 85 182 | oklch(46.8% 0.169 257.4) | 5.80AA | |
Steel--nw-steelNeutral metal: quiet badges and chrome | #4d5976 | 77 89 118 | oklch(46.6% 0.050 267.0) | 5.74AA |
Use the values
Section titled “Use the values”import { flavors, flavorEntries, semanticRoles } from '@nyxwire/palette'import type { ColorName, FlavorName } from '@nyxwire/palette'
const nocturne = flavors.nocturnenocturne.colors.indigo.hex // '#848fff'nocturne.colors.indigo.oklch // { l, c, h }nocturne.colors[semanticRoles.primary].rgb // { r: 132, g: 143, b: 255 }
for (const flavor of flavorEntries) console.log(flavor.id, flavor.dark, flavor.onAccent)Each color carries name, label, order, accent, hex, rgb, hsl and oklch. Each flavor carries id, name, order, dark, colors and onAccent, the palette color used for text on solid accent fills. The package also exports colorNames, neutralNames, accentNames, flavorNames, flavorMeta, defaultFlavor, semanticRoles, syntaxRoles and the FlavorName, DarkFlavorName, ColorName, NeutralName, AccentName, Flavor and ColorFormat types. No color library is needed at runtime.
import palette from '@nyxwire/palette/palette.json' with { type: 'json' }
palette.flavors.lumen.colors.base.hex // '#eae6ff'The JSON holds the same data as the JavaScript exports, role maps included.
@import '@nyxwire/palette/css';
body { background: var(--nw-base); color: var(--nw-text);}palette.css declares --nw-<color> for all 24 colors in @layer theme, for Nocturne on :root (with a light-scheme fallback to Lumen) and for every [data-flavor] value, plus --nw-<color>-rgb channels, --nw-on-accent, --nw-flavor-dark (1 or 0) and color-scheme. Use the RGB channels for alpha without color-mix: rgb(var(--nw-indigo-rgb) / 50%). [data-accent] scopes set --nw-accent; the default is var(--nw-indigo). To pin one flavor on :root, import its file instead:
@import '@nyxwire/palette/css/abyss.css';For components, prefer the semantic tokens from @nyxwire/css (Color roles) over raw palette variables.