@nyxwire/palette 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +143 -2
- package/dist/css/abyss.css +116 -0
- package/dist/css/lumen.css +116 -0
- package/dist/css/nocturne.css +116 -0
- package/dist/css/palette.css +334 -0
- package/dist/css/twilight.css +116 -0
- package/dist/docs/foundations/accessibility.md +71 -0
- package/dist/docs/foundations/color-roles.md +114 -0
- package/dist/docs/foundations/effects-motion.md +150 -0
- package/dist/docs/foundations/flavors.md +156 -0
- package/dist/docs/foundations/icons.md +45 -0
- package/dist/docs/foundations/palette.md +180 -0
- package/dist/docs/foundations/spacing-elevation.md +168 -0
- package/dist/docs/foundations/typography.md +80 -0
- package/dist/docs/index.md +78 -0
- package/dist/docs/manifest.json +51 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +2154 -0
- package/dist/on-accent.d.ts +2 -0
- package/dist/on-accent.js +4 -0
- package/dist/palette.d.ts +138 -0
- package/dist/palette.js +145 -0
- package/dist/palette.json +4622 -0
- package/dist/roles.d.ts +133 -0
- package/dist/roles.js +61 -0
- package/package.json +57 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Florian Maunier
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,144 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @nyxwire/palette
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Nyxwire's four flavors, each with 12 neutrals and 12 accents. The hex values
|
|
4
|
+
are canonical. The build derives RGB (channels from 0 to 255), HSL (hue in
|
|
5
|
+
degrees, saturation and lightness from 0 to 1), and OKLCH (lightness from 0 to 1,
|
|
6
|
+
chroma, and hue in degrees). The shipped JavaScript uses precomputed data, so
|
|
7
|
+
importing it performs no color conversion.
|
|
8
|
+
|
|
9
|
+
## JavaScript and JSON
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pnpm add @nyxwire/palette
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { flavors, flavorEntries, semanticRoles, syntaxRoles } from '@nyxwire/palette'
|
|
17
|
+
import type { FlavorName, ColorName, Flavor, ColorFormat } from '@nyxwire/palette'
|
|
18
|
+
|
|
19
|
+
const primary = flavors.nocturne.colors[semanticRoles.primary].hex
|
|
20
|
+
const comment = syntaxRoles.comment // { color: 'overlay2', fontStyle: 'italic' }
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Use `flavors` for lookup by ID and `flavorEntries` to iterate in display order:
|
|
24
|
+
Abyss, Nocturne, Twilight, Lumen. Each `Flavor` has `id`, `name`, `order`, `dark`,
|
|
25
|
+
`onAccent`, and `colors` keyed by token name. Each `ColorFormat` has `name`,
|
|
26
|
+
`label`, `order`, `accent`, `hex`, `rgb`, `hsl`, and `oklch`.
|
|
27
|
+
|
|
28
|
+
The original hex-only `palette`, `defaultFlavor`, `flavorMeta`, and the ordered
|
|
29
|
+
`flavorNames`, `colorNames`, `neutralNames`, and `accentNames` are also exported.
|
|
30
|
+
Other exported types include `DarkFlavorName`, `NeutralName`, `AccentName`,
|
|
31
|
+
`SemanticRole`, and `SyntaxRoleName`.
|
|
32
|
+
|
|
33
|
+
```js
|
|
34
|
+
import data from '@nyxwire/palette/palette.json' with { type: 'json' }
|
|
35
|
+
|
|
36
|
+
console.log(data.flavors.lumen.colors.base.hex)
|
|
37
|
+
console.log(data.palette.lumen.base) // hex-only data
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
JSON carries the same data as the JavaScript entry point, including both role maps.
|
|
41
|
+
`semanticRoles` maps 23 interface roles to color names. `syntaxRoles` maps syntax
|
|
42
|
+
and editor roles to `{ color, fontStyle?, opacity? }`: comments are italic, the
|
|
43
|
+
selection color is indigo at 30%, code backgrounds use crust, and line highlights
|
|
44
|
+
use surface0. Use the color named by `flavor.onAccent` for text on solid accents.
|
|
45
|
+
Semantic CSS variables, soft-intent mixes, backdrops, and glass belong to
|
|
46
|
+
`@nyxwire/css`.
|
|
47
|
+
|
|
48
|
+
## CSS and scopes
|
|
49
|
+
|
|
50
|
+
```css
|
|
51
|
+
@import '@nyxwire/palette/css';
|
|
52
|
+
/* To pin a single flavor instead: @import '@nyxwire/palette/css/abyss.css'; */
|
|
53
|
+
|
|
54
|
+
body {
|
|
55
|
+
background: var(--nw-base);
|
|
56
|
+
color: var(--nw-text);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.highlight {
|
|
60
|
+
background: rgb(var(--nw-indigo-rgb) / 0.5);
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The combined sheet defaults to Nocturne and uses Lumen on a root with no
|
|
65
|
+
`data-flavor` when the system prefers light. Set `data-flavor` to `abyss`,
|
|
66
|
+
`nocturne`, `twilight`, or `lumen` on the root or any nested element for an explicit
|
|
67
|
+
choice. A single-flavor sheet pins that flavor on `:root` regardless of system
|
|
68
|
+
preference.
|
|
69
|
+
|
|
70
|
+
All rules are in `@layer theme`. Each flavor declares `color-scheme`, `--nw-on-accent`,
|
|
71
|
+
and `--nw-flavor-dark` (`1` in dark flavors, `0` in Lumen). Every `--nw-<color>` hex
|
|
72
|
+
token has a matching `--nw-<color>-rgb` with space-separated channels. Numeric
|
|
73
|
+
suffixes are part of the name: `--nw-surface0`, not `--nw-surface-0`.
|
|
74
|
+
Set `data-accent="ice"` (or any accent ID) to switch `--nw-accent` from indigo to
|
|
75
|
+
that token. A flavor nested in an accent scope resolves the accent against its own
|
|
76
|
+
colors.
|
|
77
|
+
|
|
78
|
+
## Flavors and color roles
|
|
79
|
+
|
|
80
|
+
| Flavor | Base | Text | Indigo | Synth | On accent |
|
|
81
|
+
| ------------------ | --------- | --------- | --------- | --------- | --------- |
|
|
82
|
+
| Abyss (HUD) | `#080720` | `#f0f1f7` | `#848fff` | `#ff47d8` | `#030312` |
|
|
83
|
+
| Nocturne (default) | `#14093e` | `#f2f3fa` | `#848fff` | `#ff47d8` | `#0a0329` |
|
|
84
|
+
| Twilight | `#271a4b` | `#f5f4fa` | `#848fff` | `#ff47d8` | `#1b1136` |
|
|
85
|
+
| Lumen (light) | `#eae6ff` | `#1f0e47` | `#4940d7` | `#a8008b` | `#eae6ff` |
|
|
86
|
+
|
|
87
|
+
Neutrals cover the canvas (`base`), secondary and sunken backgrounds (`mantle`,
|
|
88
|
+
`crust`), raised fills (`surface0`–`surface2`), lines (`overlay0`–`overlay1`),
|
|
89
|
+
icons and comments (`overlay2`), secondary text (`subtext0`, `subtext1`), and
|
|
90
|
+
primary text (`text`). Dark ramps get lighter from crust to text. In Lumen,
|
|
91
|
+
crust, mantle, and base get lighter; the raised fills, overlays, subtexts,
|
|
92
|
+
and text get progressively darker from surface0 to text.
|
|
93
|
+
|
|
94
|
+
Accents are indigo (primary), iris (links and parameters), flux (keywords),
|
|
95
|
+
synth (secondary and decorators), alarm (danger and deletions), flare (numbers
|
|
96
|
+
and constants), volt (warning and types), matrix (success and strings), circuit
|
|
97
|
+
(operators and regex), ice (tertiary and properties), arc (info and functions),
|
|
98
|
+
and steel (muted silver). The three dark flavors share exactly the same accent
|
|
99
|
+
hex values.
|
|
100
|
+
|
|
101
|
+
## Contrast gate and preview
|
|
102
|
+
|
|
103
|
+
From the workspace root:
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
pnpm --filter @nyxwire/palette build
|
|
107
|
+
pnpm --filter @nyxwire/palette test
|
|
108
|
+
pnpm --filter @nyxwire/palette typecheck
|
|
109
|
+
pnpm check:contrast
|
|
110
|
+
pnpm --filter @nyxwire/palette preview
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
The preview writes `packages/palette/preview/index.html`, with switchable flavor
|
|
114
|
+
swatches, contrast ratios, semantic and syntax examples, and the gate report.
|
|
115
|
+
|
|
116
|
+
The pure evaluator in `scripts/gate.ts` and the check CLI require:
|
|
117
|
+
|
|
118
|
+
| Color | Backgrounds | Minimum |
|
|
119
|
+
| ----------- | ---------------------------------------- | ------- |
|
|
120
|
+
| Text | crust, mantle, base, surface0 | 7:1 |
|
|
121
|
+
| Text | surface1, surface2 | 4.5:1 |
|
|
122
|
+
| Subtext1 | crust, mantle, base, surface0 | 4.5:1 |
|
|
123
|
+
| Subtext0 | crust, mantle, base | 4.5:1 |
|
|
124
|
+
| Overlay2 | base | 3:1 |
|
|
125
|
+
| Overlay1 | base, mantle | 3:1 |
|
|
126
|
+
| Overlay0 | base (decorative only) | 1.4:1 |
|
|
127
|
+
| Each accent | crust, mantle, base, surface0 | 4.5:1 |
|
|
128
|
+
| On-accent | Every accent in the corresponding flavor | 4.5:1 |
|
|
129
|
+
|
|
130
|
+
Accent pairs must be at least `0.06` apart in OKLab distance. Flavor bases must
|
|
131
|
+
be at least `0.03` away from each identity reference; distances between `0.03`
|
|
132
|
+
and `0.045` are advisories. APCA Lc is informational. The CLI reports every color
|
|
133
|
+
against base and exits `1` on a hard failure. From `packages/palette`,
|
|
134
|
+
`node scripts/check.ts --stdin` accepts a candidate hex-only palette on standard
|
|
135
|
+
input: four flavor keys, each with all 24 named hex colors. To check the shipped
|
|
136
|
+
JSON through stdin, pass its `palette` property, not the entire data object.
|
|
137
|
+
|
|
138
|
+
These are solid-color contrast guarantees, not a WCAG certification of an
|
|
139
|
+
interface. Check composited colors, imagery, focus, keyboard behavior, and
|
|
140
|
+
target sizes where the palette is used.
|
|
141
|
+
|
|
142
|
+
## For AI agents
|
|
143
|
+
|
|
144
|
+
This package ships Markdown docs for its exact version in `dist/docs/`, so coding agents can read the API instead of guessing it. Run `npx @nyxwire/cli agents-md` in your project to index them in `AGENTS.md`; [AI tools](https://nyxwire.dissidence.ovh/getting-started/ai/) also covers the agent skill, the MCP server and llms.txt.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@layer theme {
|
|
2
|
+
:root {
|
|
3
|
+
color-scheme: dark;
|
|
4
|
+
--nw-crust: #030312;
|
|
5
|
+
--nw-crust-rgb: 3 3 18;
|
|
6
|
+
--nw-mantle: #050419;
|
|
7
|
+
--nw-mantle-rgb: 5 4 25;
|
|
8
|
+
--nw-base: #080720;
|
|
9
|
+
--nw-base-rgb: 8 7 32;
|
|
10
|
+
--nw-surface0: #12122f;
|
|
11
|
+
--nw-surface0-rgb: 18 18 47;
|
|
12
|
+
--nw-surface1: #1b1c3b;
|
|
13
|
+
--nw-surface1-rgb: 27 28 59;
|
|
14
|
+
--nw-surface2: #262747;
|
|
15
|
+
--nw-surface2-rgb: 38 39 71;
|
|
16
|
+
--nw-overlay0: #3e415f;
|
|
17
|
+
--nw-overlay0-rgb: 62 65 95;
|
|
18
|
+
--nw-overlay1: #646781;
|
|
19
|
+
--nw-overlay1-rgb: 100 103 129;
|
|
20
|
+
--nw-overlay2: #82849b;
|
|
21
|
+
--nw-overlay2-rgb: 130 132 155;
|
|
22
|
+
--nw-subtext0: #aeb0c1;
|
|
23
|
+
--nw-subtext0-rgb: 174 176 193;
|
|
24
|
+
--nw-subtext1: #d0d2dd;
|
|
25
|
+
--nw-subtext1-rgb: 208 210 221;
|
|
26
|
+
--nw-text: #f0f1f7;
|
|
27
|
+
--nw-text-rgb: 240 241 247;
|
|
28
|
+
--nw-indigo: #848fff;
|
|
29
|
+
--nw-indigo-rgb: 132 143 255;
|
|
30
|
+
--nw-iris: #cdc0ff;
|
|
31
|
+
--nw-iris-rgb: 205 192 255;
|
|
32
|
+
--nw-flux: #d071ff;
|
|
33
|
+
--nw-flux-rgb: 208 113 255;
|
|
34
|
+
--nw-synth: #ff47d8;
|
|
35
|
+
--nw-synth-rgb: 255 71 216;
|
|
36
|
+
--nw-alarm: #ff5d7b;
|
|
37
|
+
--nw-alarm-rgb: 255 93 123;
|
|
38
|
+
--nw-flare: #ff9845;
|
|
39
|
+
--nw-flare-rgb: 255 152 69;
|
|
40
|
+
--nw-volt: #f8e445;
|
|
41
|
+
--nw-volt-rgb: 248 228 69;
|
|
42
|
+
--nw-matrix: #4bf677;
|
|
43
|
+
--nw-matrix-rgb: 75 246 119;
|
|
44
|
+
--nw-circuit: #17edd5;
|
|
45
|
+
--nw-circuit-rgb: 23 237 213;
|
|
46
|
+
--nw-ice: #5eddfe;
|
|
47
|
+
--nw-ice-rgb: 94 221 254;
|
|
48
|
+
--nw-arc: #4aa9ff;
|
|
49
|
+
--nw-arc-rgb: 74 169 255;
|
|
50
|
+
--nw-steel: #b5bdd5;
|
|
51
|
+
--nw-steel-rgb: 181 189 213;
|
|
52
|
+
--nw-flavor-dark: 1;
|
|
53
|
+
--nw-on-accent: var(--nw-crust);
|
|
54
|
+
--nw-accent: var(--nw-indigo);
|
|
55
|
+
}
|
|
56
|
+
[data-accent="indigo"],
|
|
57
|
+
[data-accent="indigo"] [data-flavor]:not([data-accent]),
|
|
58
|
+
[data-accent] [data-accent="indigo"] [data-flavor]:not([data-accent]) {
|
|
59
|
+
--nw-accent: var(--nw-indigo);
|
|
60
|
+
}
|
|
61
|
+
[data-accent="iris"],
|
|
62
|
+
[data-accent="iris"] [data-flavor]:not([data-accent]),
|
|
63
|
+
[data-accent] [data-accent="iris"] [data-flavor]:not([data-accent]) {
|
|
64
|
+
--nw-accent: var(--nw-iris);
|
|
65
|
+
}
|
|
66
|
+
[data-accent="flux"],
|
|
67
|
+
[data-accent="flux"] [data-flavor]:not([data-accent]),
|
|
68
|
+
[data-accent] [data-accent="flux"] [data-flavor]:not([data-accent]) {
|
|
69
|
+
--nw-accent: var(--nw-flux);
|
|
70
|
+
}
|
|
71
|
+
[data-accent="synth"],
|
|
72
|
+
[data-accent="synth"] [data-flavor]:not([data-accent]),
|
|
73
|
+
[data-accent] [data-accent="synth"] [data-flavor]:not([data-accent]) {
|
|
74
|
+
--nw-accent: var(--nw-synth);
|
|
75
|
+
}
|
|
76
|
+
[data-accent="alarm"],
|
|
77
|
+
[data-accent="alarm"] [data-flavor]:not([data-accent]),
|
|
78
|
+
[data-accent] [data-accent="alarm"] [data-flavor]:not([data-accent]) {
|
|
79
|
+
--nw-accent: var(--nw-alarm);
|
|
80
|
+
}
|
|
81
|
+
[data-accent="flare"],
|
|
82
|
+
[data-accent="flare"] [data-flavor]:not([data-accent]),
|
|
83
|
+
[data-accent] [data-accent="flare"] [data-flavor]:not([data-accent]) {
|
|
84
|
+
--nw-accent: var(--nw-flare);
|
|
85
|
+
}
|
|
86
|
+
[data-accent="volt"],
|
|
87
|
+
[data-accent="volt"] [data-flavor]:not([data-accent]),
|
|
88
|
+
[data-accent] [data-accent="volt"] [data-flavor]:not([data-accent]) {
|
|
89
|
+
--nw-accent: var(--nw-volt);
|
|
90
|
+
}
|
|
91
|
+
[data-accent="matrix"],
|
|
92
|
+
[data-accent="matrix"] [data-flavor]:not([data-accent]),
|
|
93
|
+
[data-accent] [data-accent="matrix"] [data-flavor]:not([data-accent]) {
|
|
94
|
+
--nw-accent: var(--nw-matrix);
|
|
95
|
+
}
|
|
96
|
+
[data-accent="circuit"],
|
|
97
|
+
[data-accent="circuit"] [data-flavor]:not([data-accent]),
|
|
98
|
+
[data-accent] [data-accent="circuit"] [data-flavor]:not([data-accent]) {
|
|
99
|
+
--nw-accent: var(--nw-circuit);
|
|
100
|
+
}
|
|
101
|
+
[data-accent="ice"],
|
|
102
|
+
[data-accent="ice"] [data-flavor]:not([data-accent]),
|
|
103
|
+
[data-accent] [data-accent="ice"] [data-flavor]:not([data-accent]) {
|
|
104
|
+
--nw-accent: var(--nw-ice);
|
|
105
|
+
}
|
|
106
|
+
[data-accent="arc"],
|
|
107
|
+
[data-accent="arc"] [data-flavor]:not([data-accent]),
|
|
108
|
+
[data-accent] [data-accent="arc"] [data-flavor]:not([data-accent]) {
|
|
109
|
+
--nw-accent: var(--nw-arc);
|
|
110
|
+
}
|
|
111
|
+
[data-accent="steel"],
|
|
112
|
+
[data-accent="steel"] [data-flavor]:not([data-accent]),
|
|
113
|
+
[data-accent] [data-accent="steel"] [data-flavor]:not([data-accent]) {
|
|
114
|
+
--nw-accent: var(--nw-steel);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@layer theme {
|
|
2
|
+
:root {
|
|
3
|
+
color-scheme: light;
|
|
4
|
+
--nw-crust: #d3cefa;
|
|
5
|
+
--nw-crust-rgb: 211 206 250;
|
|
6
|
+
--nw-mantle: #dedaff;
|
|
7
|
+
--nw-mantle-rgb: 222 218 255;
|
|
8
|
+
--nw-base: #eae6ff;
|
|
9
|
+
--nw-base-rgb: 234 230 255;
|
|
10
|
+
--nw-surface0: #ddd9ff;
|
|
11
|
+
--nw-surface0-rgb: 221 217 255;
|
|
12
|
+
--nw-surface1: #d1cdf8;
|
|
13
|
+
--nw-surface1-rgb: 209 205 248;
|
|
14
|
+
--nw-surface2: #c6c1ef;
|
|
15
|
+
--nw-surface2-rgb: 198 193 239;
|
|
16
|
+
--nw-overlay0: #b0abd9;
|
|
17
|
+
--nw-overlay0-rgb: 176 171 217;
|
|
18
|
+
--nw-overlay1: #7c76a4;
|
|
19
|
+
--nw-overlay1-rgb: 124 118 164;
|
|
20
|
+
--nw-overlay2: #686191;
|
|
21
|
+
--nw-overlay2-rgb: 104 97 145;
|
|
22
|
+
--nw-subtext0: #524a7e;
|
|
23
|
+
--nw-subtext0-rgb: 82 74 126;
|
|
24
|
+
--nw-subtext1: #3d326b;
|
|
25
|
+
--nw-subtext1-rgb: 61 50 107;
|
|
26
|
+
--nw-text: #1f0e47;
|
|
27
|
+
--nw-text-rgb: 31 14 71;
|
|
28
|
+
--nw-indigo: #4940d7;
|
|
29
|
+
--nw-indigo-rgb: 73 64 215;
|
|
30
|
+
--nw-iris: #6746a7;
|
|
31
|
+
--nw-iris-rgb: 103 70 167;
|
|
32
|
+
--nw-flux: #8c16c5;
|
|
33
|
+
--nw-flux-rgb: 140 22 197;
|
|
34
|
+
--nw-synth: #a8008b;
|
|
35
|
+
--nw-synth-rgb: 168 0 139;
|
|
36
|
+
--nw-alarm: #b6002c;
|
|
37
|
+
--nw-alarm-rgb: 182 0 44;
|
|
38
|
+
--nw-flare: #9d3a00;
|
|
39
|
+
--nw-flare-rgb: 157 58 0;
|
|
40
|
+
--nw-volt: #6e5700;
|
|
41
|
+
--nw-volt-rgb: 110 87 0;
|
|
42
|
+
--nw-matrix: #00680f;
|
|
43
|
+
--nw-matrix-rgb: 0 104 15;
|
|
44
|
+
--nw-circuit: #006558;
|
|
45
|
+
--nw-circuit-rgb: 0 101 88;
|
|
46
|
+
--nw-ice: #006081;
|
|
47
|
+
--nw-ice-rgb: 0 96 129;
|
|
48
|
+
--nw-arc: #0055b6;
|
|
49
|
+
--nw-arc-rgb: 0 85 182;
|
|
50
|
+
--nw-steel: #4d5976;
|
|
51
|
+
--nw-steel-rgb: 77 89 118;
|
|
52
|
+
--nw-flavor-dark: 0;
|
|
53
|
+
--nw-on-accent: var(--nw-base);
|
|
54
|
+
--nw-accent: var(--nw-indigo);
|
|
55
|
+
}
|
|
56
|
+
[data-accent="indigo"],
|
|
57
|
+
[data-accent="indigo"] [data-flavor]:not([data-accent]),
|
|
58
|
+
[data-accent] [data-accent="indigo"] [data-flavor]:not([data-accent]) {
|
|
59
|
+
--nw-accent: var(--nw-indigo);
|
|
60
|
+
}
|
|
61
|
+
[data-accent="iris"],
|
|
62
|
+
[data-accent="iris"] [data-flavor]:not([data-accent]),
|
|
63
|
+
[data-accent] [data-accent="iris"] [data-flavor]:not([data-accent]) {
|
|
64
|
+
--nw-accent: var(--nw-iris);
|
|
65
|
+
}
|
|
66
|
+
[data-accent="flux"],
|
|
67
|
+
[data-accent="flux"] [data-flavor]:not([data-accent]),
|
|
68
|
+
[data-accent] [data-accent="flux"] [data-flavor]:not([data-accent]) {
|
|
69
|
+
--nw-accent: var(--nw-flux);
|
|
70
|
+
}
|
|
71
|
+
[data-accent="synth"],
|
|
72
|
+
[data-accent="synth"] [data-flavor]:not([data-accent]),
|
|
73
|
+
[data-accent] [data-accent="synth"] [data-flavor]:not([data-accent]) {
|
|
74
|
+
--nw-accent: var(--nw-synth);
|
|
75
|
+
}
|
|
76
|
+
[data-accent="alarm"],
|
|
77
|
+
[data-accent="alarm"] [data-flavor]:not([data-accent]),
|
|
78
|
+
[data-accent] [data-accent="alarm"] [data-flavor]:not([data-accent]) {
|
|
79
|
+
--nw-accent: var(--nw-alarm);
|
|
80
|
+
}
|
|
81
|
+
[data-accent="flare"],
|
|
82
|
+
[data-accent="flare"] [data-flavor]:not([data-accent]),
|
|
83
|
+
[data-accent] [data-accent="flare"] [data-flavor]:not([data-accent]) {
|
|
84
|
+
--nw-accent: var(--nw-flare);
|
|
85
|
+
}
|
|
86
|
+
[data-accent="volt"],
|
|
87
|
+
[data-accent="volt"] [data-flavor]:not([data-accent]),
|
|
88
|
+
[data-accent] [data-accent="volt"] [data-flavor]:not([data-accent]) {
|
|
89
|
+
--nw-accent: var(--nw-volt);
|
|
90
|
+
}
|
|
91
|
+
[data-accent="matrix"],
|
|
92
|
+
[data-accent="matrix"] [data-flavor]:not([data-accent]),
|
|
93
|
+
[data-accent] [data-accent="matrix"] [data-flavor]:not([data-accent]) {
|
|
94
|
+
--nw-accent: var(--nw-matrix);
|
|
95
|
+
}
|
|
96
|
+
[data-accent="circuit"],
|
|
97
|
+
[data-accent="circuit"] [data-flavor]:not([data-accent]),
|
|
98
|
+
[data-accent] [data-accent="circuit"] [data-flavor]:not([data-accent]) {
|
|
99
|
+
--nw-accent: var(--nw-circuit);
|
|
100
|
+
}
|
|
101
|
+
[data-accent="ice"],
|
|
102
|
+
[data-accent="ice"] [data-flavor]:not([data-accent]),
|
|
103
|
+
[data-accent] [data-accent="ice"] [data-flavor]:not([data-accent]) {
|
|
104
|
+
--nw-accent: var(--nw-ice);
|
|
105
|
+
}
|
|
106
|
+
[data-accent="arc"],
|
|
107
|
+
[data-accent="arc"] [data-flavor]:not([data-accent]),
|
|
108
|
+
[data-accent] [data-accent="arc"] [data-flavor]:not([data-accent]) {
|
|
109
|
+
--nw-accent: var(--nw-arc);
|
|
110
|
+
}
|
|
111
|
+
[data-accent="steel"],
|
|
112
|
+
[data-accent="steel"] [data-flavor]:not([data-accent]),
|
|
113
|
+
[data-accent] [data-accent="steel"] [data-flavor]:not([data-accent]) {
|
|
114
|
+
--nw-accent: var(--nw-steel);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@layer theme {
|
|
2
|
+
:root {
|
|
3
|
+
color-scheme: dark;
|
|
4
|
+
--nw-crust: #0a0329;
|
|
5
|
+
--nw-crust-rgb: 10 3 41;
|
|
6
|
+
--nw-mantle: #0e0533;
|
|
7
|
+
--nw-mantle-rgb: 14 5 51;
|
|
8
|
+
--nw-base: #14093e;
|
|
9
|
+
--nw-base-rgb: 20 9 62;
|
|
10
|
+
--nw-surface0: #1d154c;
|
|
11
|
+
--nw-surface0-rgb: 29 21 76;
|
|
12
|
+
--nw-surface1: #272258;
|
|
13
|
+
--nw-surface1-rgb: 39 34 88;
|
|
14
|
+
--nw-surface2: #302d60;
|
|
15
|
+
--nw-surface2-rgb: 48 45 96;
|
|
16
|
+
--nw-overlay0: #464673;
|
|
17
|
+
--nw-overlay0-rgb: 70 70 115;
|
|
18
|
+
--nw-overlay1: #6c6d93;
|
|
19
|
+
--nw-overlay1-rgb: 108 109 147;
|
|
20
|
+
--nw-overlay2: #8b8cab;
|
|
21
|
+
--nw-overlay2-rgb: 139 140 171;
|
|
22
|
+
--nw-subtext0: #b2b4ca;
|
|
23
|
+
--nw-subtext0-rgb: 178 180 202;
|
|
24
|
+
--nw-subtext1: #d4d4e3;
|
|
25
|
+
--nw-subtext1-rgb: 212 212 227;
|
|
26
|
+
--nw-text: #f2f3fa;
|
|
27
|
+
--nw-text-rgb: 242 243 250;
|
|
28
|
+
--nw-indigo: #848fff;
|
|
29
|
+
--nw-indigo-rgb: 132 143 255;
|
|
30
|
+
--nw-iris: #cdc0ff;
|
|
31
|
+
--nw-iris-rgb: 205 192 255;
|
|
32
|
+
--nw-flux: #d071ff;
|
|
33
|
+
--nw-flux-rgb: 208 113 255;
|
|
34
|
+
--nw-synth: #ff47d8;
|
|
35
|
+
--nw-synth-rgb: 255 71 216;
|
|
36
|
+
--nw-alarm: #ff5d7b;
|
|
37
|
+
--nw-alarm-rgb: 255 93 123;
|
|
38
|
+
--nw-flare: #ff9845;
|
|
39
|
+
--nw-flare-rgb: 255 152 69;
|
|
40
|
+
--nw-volt: #f8e445;
|
|
41
|
+
--nw-volt-rgb: 248 228 69;
|
|
42
|
+
--nw-matrix: #4bf677;
|
|
43
|
+
--nw-matrix-rgb: 75 246 119;
|
|
44
|
+
--nw-circuit: #17edd5;
|
|
45
|
+
--nw-circuit-rgb: 23 237 213;
|
|
46
|
+
--nw-ice: #5eddfe;
|
|
47
|
+
--nw-ice-rgb: 94 221 254;
|
|
48
|
+
--nw-arc: #4aa9ff;
|
|
49
|
+
--nw-arc-rgb: 74 169 255;
|
|
50
|
+
--nw-steel: #b5bdd5;
|
|
51
|
+
--nw-steel-rgb: 181 189 213;
|
|
52
|
+
--nw-flavor-dark: 1;
|
|
53
|
+
--nw-on-accent: var(--nw-crust);
|
|
54
|
+
--nw-accent: var(--nw-indigo);
|
|
55
|
+
}
|
|
56
|
+
[data-accent="indigo"],
|
|
57
|
+
[data-accent="indigo"] [data-flavor]:not([data-accent]),
|
|
58
|
+
[data-accent] [data-accent="indigo"] [data-flavor]:not([data-accent]) {
|
|
59
|
+
--nw-accent: var(--nw-indigo);
|
|
60
|
+
}
|
|
61
|
+
[data-accent="iris"],
|
|
62
|
+
[data-accent="iris"] [data-flavor]:not([data-accent]),
|
|
63
|
+
[data-accent] [data-accent="iris"] [data-flavor]:not([data-accent]) {
|
|
64
|
+
--nw-accent: var(--nw-iris);
|
|
65
|
+
}
|
|
66
|
+
[data-accent="flux"],
|
|
67
|
+
[data-accent="flux"] [data-flavor]:not([data-accent]),
|
|
68
|
+
[data-accent] [data-accent="flux"] [data-flavor]:not([data-accent]) {
|
|
69
|
+
--nw-accent: var(--nw-flux);
|
|
70
|
+
}
|
|
71
|
+
[data-accent="synth"],
|
|
72
|
+
[data-accent="synth"] [data-flavor]:not([data-accent]),
|
|
73
|
+
[data-accent] [data-accent="synth"] [data-flavor]:not([data-accent]) {
|
|
74
|
+
--nw-accent: var(--nw-synth);
|
|
75
|
+
}
|
|
76
|
+
[data-accent="alarm"],
|
|
77
|
+
[data-accent="alarm"] [data-flavor]:not([data-accent]),
|
|
78
|
+
[data-accent] [data-accent="alarm"] [data-flavor]:not([data-accent]) {
|
|
79
|
+
--nw-accent: var(--nw-alarm);
|
|
80
|
+
}
|
|
81
|
+
[data-accent="flare"],
|
|
82
|
+
[data-accent="flare"] [data-flavor]:not([data-accent]),
|
|
83
|
+
[data-accent] [data-accent="flare"] [data-flavor]:not([data-accent]) {
|
|
84
|
+
--nw-accent: var(--nw-flare);
|
|
85
|
+
}
|
|
86
|
+
[data-accent="volt"],
|
|
87
|
+
[data-accent="volt"] [data-flavor]:not([data-accent]),
|
|
88
|
+
[data-accent] [data-accent="volt"] [data-flavor]:not([data-accent]) {
|
|
89
|
+
--nw-accent: var(--nw-volt);
|
|
90
|
+
}
|
|
91
|
+
[data-accent="matrix"],
|
|
92
|
+
[data-accent="matrix"] [data-flavor]:not([data-accent]),
|
|
93
|
+
[data-accent] [data-accent="matrix"] [data-flavor]:not([data-accent]) {
|
|
94
|
+
--nw-accent: var(--nw-matrix);
|
|
95
|
+
}
|
|
96
|
+
[data-accent="circuit"],
|
|
97
|
+
[data-accent="circuit"] [data-flavor]:not([data-accent]),
|
|
98
|
+
[data-accent] [data-accent="circuit"] [data-flavor]:not([data-accent]) {
|
|
99
|
+
--nw-accent: var(--nw-circuit);
|
|
100
|
+
}
|
|
101
|
+
[data-accent="ice"],
|
|
102
|
+
[data-accent="ice"] [data-flavor]:not([data-accent]),
|
|
103
|
+
[data-accent] [data-accent="ice"] [data-flavor]:not([data-accent]) {
|
|
104
|
+
--nw-accent: var(--nw-ice);
|
|
105
|
+
}
|
|
106
|
+
[data-accent="arc"],
|
|
107
|
+
[data-accent="arc"] [data-flavor]:not([data-accent]),
|
|
108
|
+
[data-accent] [data-accent="arc"] [data-flavor]:not([data-accent]) {
|
|
109
|
+
--nw-accent: var(--nw-arc);
|
|
110
|
+
}
|
|
111
|
+
[data-accent="steel"],
|
|
112
|
+
[data-accent="steel"] [data-flavor]:not([data-accent]),
|
|
113
|
+
[data-accent] [data-accent="steel"] [data-flavor]:not([data-accent]) {
|
|
114
|
+
--nw-accent: var(--nw-steel);
|
|
115
|
+
}
|
|
116
|
+
}
|