@noix-dev/brix-tokens 0.0.0-stage → 0.2.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/src/index.css ADDED
@@ -0,0 +1,125 @@
1
+ @import 'tailwindcss';
2
+
3
+ /* Tailwind v4 only auto-scans the tree of the application it runs in, which does not
4
+ reach an installed package. Any class that exists only inside a component of this
5
+ design system — a dialog overlay's `fixed`/`z-50`, say — therefore never compiles,
6
+ silently: the markup ships, the rule does not. A package whose classes must survive
7
+ that declares its own component files with `@source`, with a path relative to the
8
+ file that declares it.
9
+
10
+ That declaration is deliberately not here. `@source` resolves against its own file,
11
+ and the distance from this file to the components is not the same in both layouts:
12
+ inside this repository they are at ../../ui/src, while under an install they are at
13
+ ../../brix/src. No single path is right in both, and a wrong `@source` path fails
14
+ exactly as quietly as a missing one. So the component package declares its own
15
+ sources, beside them, as `./components`: see `@noix-dev/brix-vue/styles.css`, which a
16
+ consuming application imports next to this file. */
17
+
18
+ @import 'tw-animate-css';
19
+
20
+ @import './variants.css';
21
+ @import './density.css';
22
+
23
+ /* A descendant variant, like shadcn's: `dark:bg-card` fires on anything *under* the
24
+ element carrying `class="dark"`, never on that element itself. Harmless in practice,
25
+ because the class goes on the document root and the markup is below it — but it is the
26
+ same mirror trap the theme rules have to solve, and it is why each theme's dark rule
27
+ carries both `.dark [data-brix-theme=…]` and `[data-brix-theme=…].dark`: a theme bound only
28
+ as a descendant would never match the root it is set on. */
29
+ @custom-variant dark (&:is(.dark *));
30
+
31
+ /* The Tailwind wiring for the token contract. Every entry is `inline`, so Tailwind puts
32
+ the reference into the utility rather than resolving it once at build time — which is
33
+ what lets a theme, a mode and an accent set all change the same utility's colour at
34
+ runtime. The role tokens themselves are not declared here: a theme declares them, and
35
+ this package ships no default theme, so an application picks one deliberately. */
36
+ @theme inline {
37
+ /* Surfaces and ink. */
38
+ --color-background: var(--background);
39
+ --color-foreground: var(--foreground);
40
+ --color-card: var(--card);
41
+ --color-card-foreground: var(--card-foreground);
42
+ --color-popover: var(--popover);
43
+ --color-popover-foreground: var(--popover-foreground);
44
+ --color-muted: var(--muted);
45
+ --color-muted-foreground: var(--muted-foreground);
46
+ --color-secondary: var(--secondary);
47
+ --color-secondary-foreground: var(--secondary-foreground);
48
+ --color-accent: var(--accent);
49
+ --color-accent-foreground: var(--accent-foreground);
50
+ --color-border: var(--border);
51
+ --color-input: var(--input);
52
+
53
+ /* The brand ramp. It is part of the contract rather than an implementation detail
54
+ because these become utilities (`text-brand`, `bg-brand-alt`, …) that application
55
+ code uses directly, most often as a light/dark pair. A theme that bound only
56
+ `--primary` would leave every one of those sites unthemed. */
57
+ --color-brand: var(--brand);
58
+ --color-brand-light: var(--brand-light);
59
+ --color-brand-dark: var(--brand-dark);
60
+ --color-brand-deep: var(--brand-deep);
61
+ --color-brand-alt: var(--brand-alt);
62
+ --color-brand-alt-light: var(--brand-alt-light);
63
+ --color-brand-alt-dark: var(--brand-alt-dark);
64
+ --color-brand-ink: var(--brand-ink);
65
+
66
+ /* State. */
67
+ --color-primary: var(--primary);
68
+ --color-primary-foreground: var(--primary-foreground);
69
+ --color-ring: var(--ring);
70
+ --color-primary-on-wash: var(--primary-on-wash);
71
+ --color-destructive: var(--destructive);
72
+ --color-destructive-on-wash: var(--destructive-on-wash);
73
+ --color-warning: var(--warning);
74
+ --color-warning-foreground: var(--warning-foreground);
75
+ --color-warning-on-wash: var(--warning-on-wash);
76
+ --color-success: var(--success);
77
+ --color-success-foreground: var(--success-foreground);
78
+ --color-success-on-wash: var(--success-on-wash);
79
+
80
+ /* Section accents, rebound under `[data-brix-accent]`. `--accent-base` is the bar and
81
+ the group dot, `--accent-tint` the wash behind a table header. */
82
+ --color-accent-base: var(--accent-base);
83
+ --color-accent-tint: var(--accent-tint);
84
+
85
+ /* Charts. */
86
+ --color-chart-1: var(--chart-1);
87
+ --color-chart-2: var(--chart-2);
88
+ --color-chart-3: var(--chart-3);
89
+ --color-chart-4: var(--chart-4);
90
+ --color-chart-5: var(--chart-5);
91
+
92
+ /* Sidebar. */
93
+ --color-sidebar: var(--sidebar);
94
+ --color-sidebar-foreground: var(--sidebar-foreground);
95
+ --color-sidebar-primary: var(--sidebar-primary);
96
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
97
+ --color-sidebar-accent: var(--sidebar-accent);
98
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
99
+ --color-sidebar-border: var(--sidebar-border);
100
+ --color-sidebar-ring: var(--sidebar-ring);
101
+
102
+ /* Shape. One theme token, four radii derived from it. */
103
+ --radius-sm: calc(var(--radius) - 4px);
104
+ --radius-md: calc(var(--radius) - 2px);
105
+ --radius-lg: var(--radius);
106
+ --radius-xl: calc(var(--radius) + 4px);
107
+ }
108
+
109
+ /* Tailwind already turns its own `--font-sans` theme variable into `font-sans`, so a
110
+ theme that declares `--font-sans` redirects that utility by itself. There is no
111
+ `font-heading` counterpart, and it cannot be declared in `@theme` without a variable
112
+ referring to itself, so the utility is written out instead. */
113
+ @utility font-heading {
114
+ font-family: var(--font-heading);
115
+ }
116
+
117
+ @layer base {
118
+ * {
119
+ @apply border-border outline-ring/50;
120
+ }
121
+ body {
122
+ @apply bg-background text-foreground;
123
+ @apply font-sans;
124
+ }
125
+ }
@@ -0,0 +1,99 @@
1
+ /**
2
+ * The colour maths behind the chart-series gate: how far apart two colours look, and how far
3
+ * apart they still look to someone whose vision lacks one cone type. WCAG contrast is a
4
+ * luminance measure and says nothing about hue (a teal and a violet can sit at 1.05 and be
5
+ * plainly different), so a gate on whether two series stay tellable apart needs a distance in
6
+ * a perceptual space instead. That space is OKLab, and the distance is Euclidean in it.
7
+ *
8
+ * It is shipped source (`@noix-dev/brix-tokens/perceptual`) and sits beside `./contrast`, which
9
+ * reads the colour values; like it, it is written out rather than taken from a library, and the
10
+ * test file pins it on values that can be checked by hand.
11
+ *
12
+ * The dichromacy simulation uses the matrices of Machado, Oliveira and Fernandes, "A
13
+ * Physiologically-based Model for Simulation of Color Vision Deficiency", IEEE Transactions on
14
+ * Visualization and Computer Graphics 15(6), 2009, at severity 1.0, applied to linear RGB. It
15
+ * is an approximation used to find collapses, a pair of colours that stops being tellable
16
+ * apart, and not a claim about any individual's vision.
17
+ */
18
+
19
+ import { clampChannel, parseColor, toLinear } from './contrast';
20
+
21
+ /** A colour in OKLab: lightness, and the green-red and blue-yellow axes. */
22
+ export interface Oklab {
23
+ L: number;
24
+ a: number;
25
+ b: number;
26
+ }
27
+
28
+ export type Vision = 'normal' | 'deuteranopia' | 'protanopia' | 'tritanopia';
29
+
30
+ type Matrix = readonly [number, number, number, number, number, number, number, number, number];
31
+
32
+ /** Machado et al. (2009), severity 1.0, row-major, for linear RGB. */
33
+ const VISION_MATRICES: Record<Exclude<Vision, 'normal'>, Matrix> = {
34
+ deuteranopia: [
35
+ 0.367322, 0.860646, -0.227968, 0.280085, 0.672501, 0.047413, -0.01182, 0.04294, 0.968881,
36
+ ],
37
+ protanopia: [
38
+ 0.152286, 1.052583, -0.204868, 0.114503, 0.786281, 0.099216, -0.003882, -0.048116, 1.051998,
39
+ ],
40
+ tritanopia: [
41
+ 1.255528, -0.076749, -0.178779, -0.078411, 0.930809, 0.147602, 0.004733, 0.691367, 0.3039,
42
+ ],
43
+ };
44
+
45
+ /** A colour, as written, in OKLab. A translucent colour is refused, as in `./contrast`. */
46
+ export function oklabOf(value: string): Oklab {
47
+ const { r, g, b, alpha } = parseColor(value);
48
+ if (alpha !== 1) {
49
+ throw new Error(
50
+ `"${value}" is translucent, and a translucent colour has no perceptual position of its ` +
51
+ `own: composite it over its surface with wash() first`,
52
+ );
53
+ }
54
+ return linearToOklab(toLinear(r), toLinear(g), toLinear(b));
55
+ }
56
+
57
+ /**
58
+ * The colour as someone with the given vision would see it, in OKLab. `'normal'` is the
59
+ * identity, so every distance can be taken the same way whichever vision it is for.
60
+ *
61
+ * The matrix is applied to linear RGB and the result clamped to 0..1, which is what
62
+ * re-encoding to sRGB with a clamp and linearising again comes to; the encode is skipped
63
+ * because it would only be undone.
64
+ */
65
+ export function simulate(value: string, vision: Vision): Oklab {
66
+ if (vision === 'normal') {
67
+ return oklabOf(value);
68
+ }
69
+ const { r, g, b, alpha } = parseColor(value);
70
+ if (alpha !== 1) {
71
+ throw new Error(
72
+ `"${value}" is translucent: composite it over its surface with wash() first`,
73
+ );
74
+ }
75
+ const m = VISION_MATRICES[vision];
76
+ const lin = [toLinear(r), toLinear(g), toLinear(b)] as const;
77
+ const row = (i: number): number =>
78
+ clampChannel(m[i]! * lin[0] + m[i + 1]! * lin[1] + m[i + 2]! * lin[2]);
79
+ return linearToOklab(row(0), row(3), row(6));
80
+ }
81
+
82
+ /** Euclidean distance in OKLab, the two colours seen with the given vision. */
83
+ export function perceptualDistance(a: string, b: string, vision: Vision = 'normal'): number {
84
+ const first = simulate(a, vision);
85
+ const second = simulate(b, vision);
86
+ return Math.hypot(first.L - second.L, first.a - second.a, first.b - second.b);
87
+ }
88
+
89
+ /** Linear sRGB to OKLab: Ottosson's two matrices, with a cube root between them. */
90
+ function linearToOklab(r: number, g: number, b: number): Oklab {
91
+ const long = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);
92
+ const medium = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);
93
+ const short = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);
94
+ return {
95
+ L: 0.2104542553 * long + 0.793617785 * medium - 0.0040720468 * short,
96
+ a: 1.9779984951 * long - 2.428592205 * medium + 0.4505937099 * short,
97
+ b: 0.0259040371 * long + 0.7827717662 * medium - 0.808675766 * short,
98
+ };
99
+ }
@@ -0,0 +1,265 @@
1
+ /* ---------------------------------------------------------------------------
2
+ graphite — neutral greys with one blue-grey accent, the colour of pencil on
3
+ paper. The reference theme: it belongs to no product, so it is what a new
4
+ tool starts from, and it is the proof that the contract is not shaped around
5
+ one palette.
6
+
7
+ The greys are a cool near-neutral ramp: every one of them sits around hue
8
+ 248 with a chroma under 0.016, which is a trace of blue and no more, so the
9
+ one accent is still the only colour on the screen. The accent is the
10
+ blue-grey ramp around #37474f; the second accent the ramp asks for is a
11
+ cooler steel blue, far enough away to tell two series apart and still in the
12
+ same cold family.
13
+
14
+ Every role in contract.json is bound in both modes. The dark rule carries two
15
+ selectors because the mode class and `data-brix-theme` normally land on the same
16
+ element (the document root), while a preview can put the theme on a subtree
17
+ under a dark page; one block serves both.
18
+ --------------------------------------------------------------------------- */
19
+
20
+ [data-brix-theme='graphite'] {
21
+ /* Surfaces and ink: paper white down to a near-black with a trace of blue in it
22
+ (chroma 0.005), never a warm grey. */
23
+ --background: #ffffff;
24
+ --foreground: #16181a;
25
+ --card: #ffffff;
26
+ --card-foreground: #16181a;
27
+ --popover: #ffffff;
28
+ --popover-foreground: #16181a;
29
+ --muted: #f4f5f6;
30
+ --muted-foreground: #606970;
31
+ --secondary: #f4f5f6;
32
+ --secondary-foreground: #26292c;
33
+ --accent: #eef0f2;
34
+ --accent-foreground: #26292c;
35
+ --border: #e1e4e7;
36
+ --input: #e1e4e7;
37
+
38
+ /* The brand ramp. One ramp serves both modes: application code picks the rung
39
+ per mode (`text-brand dark:text-brand-light`), so the rungs themselves do not
40
+ change when the mode does. The blue-grey carries the brand, the steel blue is
41
+ the second accent; `--brand-ink` is a grey for the caps field labels on
42
+ sign-in and account screens, a touch darker than --muted-foreground (6.6:1 on
43
+ the background against 5.6:1) so a 10px label still reads.
44
+
45
+ Seven of the eight rungs are identical in the dark block. --brand-ink is the
46
+ exception, and it is the only rung that is ink rather than a hue: there is no
47
+ light/dark pair of it for code to choose between, so this grey — 6.6:1 here —
48
+ would arrive on the dark ground at 2.8:1 if it were restated unchanged. */
49
+ --brand: #37474f;
50
+ --brand-light: #90a4ae;
51
+ --brand-dark: #263238;
52
+ --brand-deep: #192228;
53
+ --brand-alt: #3d6b8e;
54
+ --brand-alt-light: #8fb6d1;
55
+ --brand-alt-dark: #2f5470;
56
+ --brand-ink: #565e64;
57
+
58
+ /* State. The brand is dark enough to carry white text: 9.6:1. */
59
+ --primary: var(--brand);
60
+ --primary-foreground: #ffffff;
61
+ --ring: var(--brand);
62
+ /* The primary hue as TEXT on a 10% wash of itself — an active filter chip, and
63
+ anything else that tints its own background. A hue that merely clears WCAG AA
64
+ on the background does not clear it on that wash, so this is a separate token
65
+ rather than --primary; here the brand is dark enough that it serves as both,
66
+ at 8.2:1 on its own wash. */
67
+ --primary-on-wash: var(--primary);
68
+ --destructive: #b42318;
69
+ --destructive-on-wash: var(--destructive);
70
+ --warning: #b45309;
71
+ --warning-foreground: #ffffff;
72
+ --warning-on-wash: #7c4206;
73
+ /* Success: "saved", "done", "connected". A status colour is meaning, so it is a role
74
+ and not a fixed palette hue. The fill clears 3:1 on --background (it is read as a
75
+ state, WCAG 1.4.11); the ink on the fill and on a 10% wash of it clear 4.5:1. All
76
+ three are in-gamut hex, so none is a boundary clamp. */
77
+ --success: #047857;
78
+ --success-foreground: #ffffff;
79
+ --success-on-wash: #065f46;
80
+
81
+ /* Progress bands (high >= 70, mid >= 30, low below), read as an inline
82
+ `var(--progress-*)` so one inline style serves both modes. Literal values, not
83
+ references: a band hue computed in script is invisible to a grep, so these two
84
+ blocks are the only place one is written down. Light: the steel blue, a mid
85
+ blue-grey and a deep red, each of which also reads as a label (5.7 / 5.0 /
86
+ 6.6:1 on the background). */
87
+ --progress-high: #3d6b8e;
88
+ --progress-mid: #5d7380;
89
+ --progress-low: #b42318;
90
+
91
+ /* Shape and type. A theme only names the family; delivering the webfont stays
92
+ the application's choice (see fonts.css). The reference theme names no
93
+ webfont at all — the system stack costs nothing and reaches no network, which
94
+ is the right default for a tool that has not chosen a typeface yet. */
95
+ --radius: 0.5rem;
96
+ --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
97
+ --font-heading: var(--font-sans);
98
+
99
+ /* Charts: one steel ramp, dark to light, so series stay apart in print and for
100
+ anyone who cannot separate them by hue. */
101
+ --chart-1: #2f4a57;
102
+ --chart-2: #3d6b8e;
103
+ --chart-3: #5f8ca5;
104
+ --chart-4: #8aacbe;
105
+ --chart-5: #b5ccd8;
106
+
107
+ /* Series roles for charts with several series, read from the document by the
108
+ chart family. One set per mode, shared by every theme: lightness steps of about
109
+ 0.10 in OKLab L plus a hue spread, chroma fitted per hue to stay inside sRGB. The
110
+ contrast test holds them 3:1 off --card and 0.09 apart under every vision. */
111
+ --series-1: #460011;
112
+ --series-2: #4d3a05;
113
+ --series-3: #096c45;
114
+ --series-4: #0985b2;
115
+ --series-5: #b575ff;
116
+
117
+ /* Code editor. One syntax set serves every theme and both modes, because the editor
118
+ is a dark surface even under a light page: the surface and ink are this theme's own
119
+ dark card and foreground, restated in both blocks. The gate holds each syntax role
120
+ 4.5:1 off --code-surface and 0.08 apart under every vision. --code-selection is
121
+ this theme's --brand-light at 40%. It is bound to that rung rather than to a role,
122
+ because a role follows the mode and this surface does not, and it is written out as
123
+ a literal because the gate reads declared values and cannot parse a color-mix. */
124
+ --syntax-tag: oklch(0.7 0.15 278);
125
+ --syntax-attribute: oklch(0.82 0.16 76);
126
+ --syntax-string: oklch(0.84 0.19 154);
127
+ --syntax-keyword: oklch(0.78 0.1 298);
128
+ --syntax-number: oklch(0.7 0.11 62);
129
+ --syntax-comment: oklch(0.62 0.025 60);
130
+ --syntax-meta: oklch(0.74 0.13 178);
131
+ --syntax-invalid: oklch(0.66 0.27 344);
132
+ --code-surface: #1b1e21;
133
+ --code-foreground: #e9ecee;
134
+ --code-selection: #90a4ae66;
135
+
136
+ --sidebar: #f7f8f9;
137
+ --sidebar-foreground: #16181a;
138
+ --sidebar-primary: #37474f;
139
+ --sidebar-primary-foreground: #ffffff;
140
+ --sidebar-accent: #eceef0;
141
+ --sidebar-accent-foreground: #26292c;
142
+ --sidebar-border: #e1e4e7;
143
+ --sidebar-ring: #90a4ae;
144
+
145
+ /* Neutral fallback for everything outside an accent set, so the accent utilities
146
+ resolve on a page that sets no [data-brix-accent]. This theme ships no accent sets:
147
+ a theme may leave them out, and these two are then what the utilities read. */
148
+ --accent-base: var(--brand);
149
+ --accent-tint: #ebeded;
150
+ }
151
+
152
+ .dark [data-brix-theme='graphite'],
153
+ [data-brix-theme='graphite'].dark {
154
+ --background: #141618;
155
+ --foreground: #e9ecee;
156
+ --card: #1b1e21;
157
+ --card-foreground: #e9ecee;
158
+ --popover: #1b1e21;
159
+ --popover-foreground: #e9ecee;
160
+ --muted: #262a2e;
161
+ --muted-foreground: #a3abb2;
162
+ --secondary: #262a2e;
163
+ --secondary-foreground: #e9ecee;
164
+ --accent: #2b3035;
165
+ --accent-foreground: #e9ecee;
166
+ --border: #2f3439;
167
+ --input: #363c42;
168
+
169
+ /* The ramp is restated, not inherited: the light rule matches this same element
170
+ and its declarations would beat anything inherited from an ancestor. Same
171
+ rungs, same values — what changes in dark mode is which rung a utility picks. */
172
+ --brand: #37474f;
173
+ --brand-light: #90a4ae;
174
+ --brand-dark: #263238;
175
+ --brand-deep: #192228;
176
+ --brand-alt: #3d6b8e;
177
+ --brand-alt-light: #8fb6d1;
178
+ --brand-alt-dark: #2f5470;
179
+ /* The one rung that changes with the mode, because it is the one rung that is
180
+ ink: the light grey at 9.6:1, where the light block's 6.6:1 grey would have
181
+ arrived here at 2.8:1. It stays a step clearer than --muted-foreground (7.8:1),
182
+ which is what it is for. */
183
+ --brand-ink: #b6bec4;
184
+
185
+ /* The light rungs carry the brand on the dark ground, and the deep rung becomes
186
+ the ink on top of them (6.2:1). */
187
+ --primary: var(--brand-light);
188
+ --primary-foreground: var(--brand-deep);
189
+ --ring: var(--brand-light);
190
+ /* On the dark ground the wash darkens nothing the text has to fight: the light
191
+ rung stands as it is, at 6.0:1 on a 10% wash of itself. */
192
+ --primary-on-wash: var(--brand-light);
193
+ --destructive: #f27163;
194
+ --destructive-on-wash: var(--destructive);
195
+ --warning: #f0b429;
196
+ --warning-foreground: #1a1205;
197
+ --warning-on-wash: #fbbf24;
198
+ /* Light rung on a dark ground, like the warning family. The ink on the fill is the
199
+ deepest emerald rather than black, so the pair reads as one hue. */
200
+ --success: #34d399;
201
+ --success-foreground: #052e1f;
202
+ --success-on-wash: #6ee7b7;
203
+
204
+ /* The light bands do not survive the dark ground (the steel blue is 3.2:1 on
205
+ --background, the red 2.8:1), so each is lightened: the light rung of the brand,
206
+ a light grey and a light red. Measured against --background / --card / --muted
207
+ (the bar track and a hovered row): 8.5 / 7.8 / 6.7, 7.8 / 7.2 / 6.2 and
208
+ 6.3 / 5.8 / 5.0. */
209
+ --progress-high: #8fb6d1;
210
+ --progress-mid: #a3abb2;
211
+ --progress-low: #f27163;
212
+
213
+ --radius: 0.5rem;
214
+ --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
215
+ --font-heading: var(--font-sans);
216
+
217
+ /* The chart ramp is reversed for the dark ground: series 1 is the lightest, and
218
+ the darkest rung of the light ramp would have been invisible here. */
219
+ --chart-1: #cfdce3;
220
+ --chart-2: #a9c2cf;
221
+ --chart-3: #83a9bf;
222
+ --chart-4: #5f8ca5;
223
+ --chart-5: #3d6b8e;
224
+
225
+ /* Series roles for charts with several series, read from the document by the
226
+ chart family. One set per mode, shared by every theme: lightness steps of about
227
+ 0.10 in OKLab L plus a hue spread, chroma fitted per hue to stay inside sRGB. The
228
+ contrast test holds them 3:1 off --card and 0.09 apart under every vision. */
229
+ --series-1: #916748;
230
+ --series-2: #82986a;
231
+ --series-3: #77bcc0;
232
+ --series-4: #becbfc;
233
+ --series-5: #fee7f3;
234
+
235
+ /* Code editor. One syntax set serves every theme and both modes, because the editor
236
+ is a dark surface even under a light page: the surface and ink are this theme's own
237
+ dark card and foreground, restated in both blocks. The gate holds each syntax role
238
+ 4.5:1 off --code-surface and 0.08 apart under every vision. --code-selection is
239
+ this theme's --brand-light at 40%. It is bound to that rung rather than to a role,
240
+ because a role follows the mode and this surface does not, and it is written out as
241
+ a literal because the gate reads declared values and cannot parse a color-mix. */
242
+ --syntax-tag: oklch(0.7 0.15 278);
243
+ --syntax-attribute: oklch(0.82 0.16 76);
244
+ --syntax-string: oklch(0.84 0.19 154);
245
+ --syntax-keyword: oklch(0.78 0.1 298);
246
+ --syntax-number: oklch(0.7 0.11 62);
247
+ --syntax-comment: oklch(0.62 0.025 60);
248
+ --syntax-meta: oklch(0.74 0.13 178);
249
+ --syntax-invalid: oklch(0.66 0.27 344);
250
+ --code-surface: #1b1e21;
251
+ --code-foreground: #e9ecee;
252
+ --code-selection: #90a4ae66;
253
+
254
+ --sidebar: #1b1e21;
255
+ --sidebar-foreground: #e9ecee;
256
+ --sidebar-primary: #90a4ae;
257
+ --sidebar-primary-foreground: #192228;
258
+ --sidebar-accent: #262a2e;
259
+ --sidebar-accent-foreground: #e9ecee;
260
+ --sidebar-border: #2f3439;
261
+ --sidebar-ring: #6b8c9b;
262
+
263
+ --accent-base: var(--brand-light);
264
+ --accent-tint: #202427;
265
+ }