@slashsuite/themes 0.0.0-stage → 0.3.2

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.
@@ -0,0 +1,445 @@
1
+ /*! Catppuccin Mocha palette © 2021 Catppuccin, MIT license: https://github.com/catppuccin/catppuccin (full notice in NOTICE) */
2
+ /* ---------------------------------------------------------------------------
3
+ Slash suite dark: the dark theme of the Slash suite, on the Slash Night ground.
4
+ ---------------------------------------------------------------------------
5
+ The @slashsuite/ui-react components are written against Tailwind's slate/colour
6
+ utilities directly (bg-white, text-slate-900, …) rather than carrying `dark:`
7
+ variants. This file is what makes them dark: it remaps those core utilities
8
+ under `.slash-suite-dark`. The rules are unlayered, so they override
9
+ Tailwind's (layered) utilities.
10
+
11
+ Consumers import it AFTER `@import "tailwindcss"` and put `.slash-suite-dark`
12
+ on <html> (see the README for the import line).
13
+
14
+ Built from Catppuccin Mocha. The neutrals are the Slash Night ground, a deep
15
+ navy; the accent is the suite's peach pastel #fab387 throughout, with crust
16
+ labels on its fills. The status tones stay Mocha's.
17
+
18
+ Palette (Mocha's role names, which the comments below use, on the Night values):
19
+ crust #080d1c · mantle (canvas) #0d1326 · base (card) #19233e · surface0 #25304d
20
+ surface1 #374463 · surface2 #485574 · text #e2e8fc · subtext1 #ccd4ee
21
+ subtext0 #c6cce2 · overlay2 #b1b8d0 · overlay1 #7f849c · overlay0 #6c7086
22
+ peach #fab387 · green #a6e3a1 · red #f38ba8 · yellow #f9e2af · blue #89b4fa
23
+ --------------------------------------------------------------------------- */
24
+
25
+ /* Class-based dark mode (toggle adds `.slash-suite-dark` to <html>). */
26
+ @custom-variant dark (&:where(.slash-suite-dark, .slash-suite-dark *));
27
+
28
+ .slash-suite-dark {
29
+ color-scheme: dark;
30
+ background-color: #0d1326; /* mantle: the canvas the base-coloured cards lift off */
31
+ /* The type faces: Inter, headings included, and JetBrains Mono after the platform's own
32
+ ui-monospace, which the consuming site loads (this package ships no font file); the system
33
+ stack otherwise. Custom properties on the scope,
34
+ so every `font-sans` / `font-mono` below it (AppShell's page font included) follows. */
35
+ --font-sans:
36
+ Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
37
+ sans-serif;
38
+ --font-mono:
39
+ ui-monospace, "JetBrains Mono", "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono",
40
+ monospace;
41
+ font-family: var(--font-sans);
42
+ /* Colours for chrome the kit cannot draw (a MapLibre popup, a map marker): the value each named
43
+ utility paints under this scope. A consumer's own CSS reads them with var(--hc-…, fallback). */
44
+ --hc-surface: #19233e; /* bg-white */
45
+ --hc-subtle: #25304d; /* bg-slate-50 */
46
+ --hc-line: #374463; /* border-slate-200 */
47
+ --hc-ink: #e2e8fc; /* text-slate-900 */
48
+ --hc-mute: #c6cce2; /* text-slate-500 */
49
+ --hc-accent: #fbc5a1; /* text-violet-600 */
50
+ --hc-cat-1: #72b6f5; /* text-indigo-600 */
51
+ --hc-cat-2: #ebb589; /* text-orange-600 */
52
+ --hc-cat-3: #8be0e7; /* text-teal-600 */
53
+ --hc-cat-4: #f8caf6; /* text-pink-600 */
54
+ --hc-cat-5: #ace188; /* text-lime-600 */
55
+ --hc-cat-6: #d09cfb; /* text-fuchsia-600 */
56
+ --hc-cat-7: #f080a3; /* text-rose-600 */
57
+ --hc-cat-8: #ffebb9; /* text-yellow-600 */
58
+ }
59
+
60
+ /* The page canvas: AppShell paints it, so cards (base) lift off it. */
61
+ .slash-suite-dark .bg-gray-50 {
62
+ background-color: #0d1326; /* mantle */
63
+ }
64
+
65
+ /* Surfaces: cards (base) lift off the mantle canvas. */
66
+ .slash-suite-dark .bg-white {
67
+ background-color: #19233e; /* base */
68
+ }
69
+ .slash-suite-dark .bg-white\/80 {
70
+ background-color: rgba(25, 35, 62, 0.85);
71
+ }
72
+ .slash-suite-dark .bg-slate-50,
73
+ .slash-suite-dark .bg-slate-50\/50,
74
+ .slash-suite-dark .bg-slate-50\/60,
75
+ .slash-suite-dark .bg-slate-50\/70 {
76
+ background-color: #25304d; /* surface0 */
77
+ }
78
+ .slash-suite-dark .bg-slate-100 {
79
+ /* Between surface0 and surface1 (surface1 is #374463). The fill under an active row, a Pill or a
80
+ Code span carries muted text (subtext0), which needs AA 4.5:1 on it (the contrast contract,
81
+ themes/themes.test.ts). */
82
+ background-color: #2b3757;
83
+ }
84
+ /* A loading bone (the skeleton role): opaque, held apart from the canvas, a card and the subtle
85
+ strip by the distinction contract.
86
+ Surface1: the line colour, a shape on mantle, base and crust. */
87
+ .slash-suite-dark .bg-slate-200 {
88
+ background-color: #374463;
89
+ }
90
+ .slash-suite-dark .bg-slate-900 {
91
+ background-color: #25304d; /* surface0: e.g. the brand badge */
92
+ }
93
+ .slash-suite-dark .backdrop\:bg-slate-900\/35::backdrop {
94
+ background-color: rgba(8, 13, 28, 0.6); /* crust: the modal scrim */
95
+ }
96
+
97
+ /* The media scrim (Lightbox's full-screen viewer): near-black crust with light text. */
98
+ .slash-suite-dark .bg-black\/90 {
99
+ background-color: rgba(8, 13, 28, 0.94); /* crust */
100
+ }
101
+ .slash-suite-dark .text-white {
102
+ color: #e2e8fc; /* text */
103
+ }
104
+ .slash-suite-dark .text-white\/70 {
105
+ color: #c6cce2; /* subtext0 */
106
+ }
107
+ .slash-suite-dark .hover\:bg-white\/10:hover {
108
+ background-color: rgba(226, 232, 252, 0.1); /* text/10 */
109
+ }
110
+ .slash-suite-dark .focus-visible\:outline-white:focus-visible {
111
+ outline-color: #e2e8fc; /* text */
112
+ }
113
+
114
+ /* The media matte (Image framed): the white mat a QR code is scanned off. It stays white in every
115
+ theme, dark ones included, as the scrim above stays black. */
116
+ .slash-suite-dark .bg-white\/100 {
117
+ background-color: #ffffff;
118
+ }
119
+
120
+ /* Text */
121
+ .slash-suite-dark .text-slate-900,
122
+ .slash-suite-dark .text-slate-800 {
123
+ color: #e2e8fc; /* text: incl. bold totals/footers */
124
+ }
125
+ .slash-suite-dark .text-slate-700,
126
+ .slash-suite-dark .text-slate-600 {
127
+ color: #ccd4ee; /* subtext1 */
128
+ }
129
+ .slash-suite-dark .text-slate-500 {
130
+ color: #c6cce2; /* subtext0 */
131
+ }
132
+ .slash-suite-dark .text-slate-400 {
133
+ /* overlay2 (#b1b8d0) lifted a few steps, as Mocha lifts its own: muted text on surface0, where a
134
+ table header or a toned panel puts it, needs 4.5:1. */
135
+ color: #bcc2da; /* overlay2, lifted: legible muted/headers */
136
+ }
137
+ .slash-suite-dark .text-slate-300 {
138
+ color: #6c7086; /* overlay0: dimmed (days outside the month); inactive, so under no contrast bar */
139
+ }
140
+ .slash-suite-dark .placeholder\:text-slate-400::placeholder {
141
+ color: #bcc2da; /* as muted text: overlay1 (#7f849c) is under 4.5:1 here */
142
+ }
143
+
144
+ /* Borders */
145
+ .slash-suite-dark .border-slate-100 {
146
+ border-color: #1d2744;
147
+ }
148
+ .slash-suite-dark .border-slate-50 {
149
+ border-color: #25304d; /* same as bg-slate-50: the ring takes the page colour */
150
+ }
151
+ .slash-suite-dark .border-slate-200,
152
+ .slash-suite-dark .border-slate-200\/70 {
153
+ /* surface1, not surface0 (#25304d): surface0 is the fill of bg-slate-50, so a neutral Callout's
154
+ edge would vanish on it. A decorative edge, not a control's (that is border-slate-300), and the
155
+ kit's everyday line, so no heavier than this. */
156
+ border-color: #374463; /* surface1 */
157
+ }
158
+ .slash-suite-dark .border-slate-300 {
159
+ /* overlay1, not surface1 (#374463): this is the edge of an input, a select, a neutral button,
160
+ the one thing that shows where a control is, so it needs 3:1 against the surface it sits on
161
+ (WCAG 1.4.11); surface1 is far under that. */
162
+ border-color: #7f849c; /* overlay1 */
163
+ }
164
+ /* "emphasis" / active borders flip to light so they stay visible */
165
+ .slash-suite-dark .border-slate-900 {
166
+ border-color: #e2e8fc;
167
+ }
168
+
169
+ /* Money + accent text */
170
+ .slash-suite-dark .text-emerald-600 {
171
+ color: #a6e3a1; /* green */
172
+ }
173
+ .slash-suite-dark .text-red-600 {
174
+ color: #f38ba8; /* red */
175
+ }
176
+
177
+ /* Stat-card accent bars */
178
+ .slash-suite-dark .bg-emerald-500 {
179
+ background-color: #a6e3a1;
180
+ }
181
+ .slash-suite-dark .bg-red-500 {
182
+ background-color: #f38ba8;
183
+ }
184
+ .slash-suite-dark .bg-slate-300 {
185
+ background-color: #485574; /* surface2 */
186
+ }
187
+
188
+ /* Accent: buttons, focus, controls */
189
+ .slash-suite-dark .bg-violet-600 {
190
+ background-color: #fab387; /* peach */
191
+ }
192
+ .slash-suite-dark .hover\:bg-violet-700:hover {
193
+ background-color: #ef9f6e; /* peach, one step darker; the crust label keeps 4.5:1 */
194
+ }
195
+ .slash-suite-dark .text-violet-50 {
196
+ color: #080d1c; /* crust: text on the peach button */
197
+ }
198
+ .slash-suite-dark .hover\:text-violet-700:hover {
199
+ color: #fdc9a8; /* peach, lifted: the hovered link */
200
+ }
201
+ .slash-suite-dark .hover\:bg-violet-50:hover {
202
+ background-color: rgba(250, 179, 135, 0.14); /* peach tint */
203
+ }
204
+ .slash-suite-dark .border-violet-600 {
205
+ border-color: #fab387; /* peach */
206
+ }
207
+ .slash-suite-dark .hover\:border-violet-400:hover {
208
+ border-color: rgba(250, 179, 135, 0.6); /* peach/60: a hovered field edge needs 3:1 */
209
+ }
210
+ .slash-suite-dark .outline-violet-600 {
211
+ outline-color: #fab387; /* peach */
212
+ }
213
+ .slash-suite-dark .target\:outline-violet-600:target {
214
+ outline-color: #fab387; /* peach */
215
+ }
216
+ .slash-suite-dark .focus-visible\:outline-violet-600:focus-visible {
217
+ outline-color: #fab387; /* peach */
218
+ }
219
+ .slash-suite-dark .has-focus-visible\:outline-violet-600:has(:focus-visible) {
220
+ outline-color: #fab387; /* peach */
221
+ }
222
+ .slash-suite-dark .accent-violet-600 {
223
+ accent-color: #fab387; /* peach */
224
+ }
225
+
226
+ /* Danger button (Button tone="danger"): solid, outline and ghost */
227
+ .slash-suite-dark .bg-red-600 {
228
+ background-color: #f38ba8; /* red */
229
+ }
230
+ .slash-suite-dark .hover\:bg-red-700:hover {
231
+ background-color: #eba0ac; /* maroon */
232
+ }
233
+ .slash-suite-dark .text-red-50 {
234
+ color: #080d1c; /* crust: text on the red button */
235
+ }
236
+ .slash-suite-dark .border-red-600 {
237
+ border-color: #f38ba8; /* red */
238
+ }
239
+ .slash-suite-dark .hover\:bg-red-50:hover {
240
+ background-color: rgba(
241
+ 243,
242
+ 139,
243
+ 168,
244
+ 0.1
245
+ ); /* red tint: Mocha's 0.1, so red text keeps 4.5:1 on it */
246
+ }
247
+
248
+ /* Positive button (Button tone="positive"): solid, outline, ghost and the pressed tint.
249
+ bg-emerald-600 is the green mapped below with the avatar colours. */
250
+ .slash-suite-dark .hover\:bg-emerald-700:hover {
251
+ background-color: #94e2d5; /* teal */
252
+ }
253
+ .slash-suite-dark .text-emerald-50 {
254
+ color: #080d1c; /* crust: text on the green button */
255
+ }
256
+ .slash-suite-dark .border-emerald-600 {
257
+ border-color: #a6e3a1; /* green */
258
+ }
259
+ .slash-suite-dark .hover\:bg-emerald-50:hover {
260
+ background-color: rgba(166, 227, 161, 0.14); /* green tint */
261
+ }
262
+
263
+ /* A plain-disabled solid Button (every tone). Half opacity on a pastel fill goes muddy under the
264
+ dark crust label, so it flattens to the same look as a blocked Button (surface1 fill, overlay2
265
+ label) instead. `.disabled\:opacity-50` is the plain-disabled marker: busy keeps its colour and
266
+ blocked is already flat. */
267
+ .slash-suite-dark .disabled\:opacity-50:disabled:is(.bg-violet-600, .bg-emerald-600, .bg-red-600) {
268
+ opacity: 1;
269
+ background-color: #374463; /* surface1 */
270
+ border-color: #25304d; /* surface0 */
271
+ color: #b1b8d0; /* overlay2 */
272
+ }
273
+
274
+ /* Avatar identity colours: violet-600 is the peach accent above; the rest sit on the theme. */
275
+ .slash-suite-dark .bg-orange-600 {
276
+ background-color: #cba6f7; /* mauve: peach is the accent's own fill */
277
+ }
278
+ .slash-suite-dark .bg-cyan-600 {
279
+ background-color: #74c7ec; /* sapphire */
280
+ }
281
+ .slash-suite-dark .bg-emerald-600 {
282
+ background-color: #a6e3a1; /* green */
283
+ }
284
+ .slash-suite-dark .bg-sky-600 {
285
+ background-color: #b4befe; /* lavender */
286
+ }
287
+ .slash-suite-dark .bg-pink-600 {
288
+ background-color: #f5c2e7; /* pink */
289
+ }
290
+ .slash-suite-dark .bg-amber-600 {
291
+ background-color: #f9e2af; /* yellow */
292
+ }
293
+
294
+ /* Hover states */
295
+ .slash-suite-dark .hover\:bg-slate-50:hover {
296
+ background-color: #1d2845;
297
+ }
298
+ .slash-suite-dark .hover\:bg-slate-100:hover {
299
+ background-color: #25304d;
300
+ }
301
+
302
+ /* Coloured callouts / chips: tint backgrounds, lighten text & borders */
303
+ .slash-suite-dark .bg-emerald-50,
304
+ .slash-suite-dark .bg-emerald-50\/60,
305
+ .slash-suite-dark .bg-emerald-100 {
306
+ background-color: rgba(166, 227, 161, 0.13);
307
+ }
308
+ .slash-suite-dark .bg-amber-50,
309
+ .slash-suite-dark .bg-amber-50\/60,
310
+ .slash-suite-dark .bg-amber-100 {
311
+ background-color: rgba(249, 226, 175, 0.13);
312
+ }
313
+ .slash-suite-dark .bg-red-50 {
314
+ background-color: rgba(243, 139, 168, 0.1); /* as Mocha: red text keeps 4.5:1 on it */
315
+ }
316
+ .slash-suite-dark .bg-blue-50 {
317
+ background-color: rgba(137, 180, 250, 0.13);
318
+ }
319
+ .slash-suite-dark .bg-violet-50 {
320
+ background-color: rgba(250, 179, 135, 0.14); /* peach tint */
321
+ }
322
+ .slash-suite-dark .bg-sky-50 {
323
+ background-color: rgba(137, 220, 235, 0.13); /* sky tint */
324
+ }
325
+ .slash-suite-dark .text-emerald-700,
326
+ .slash-suite-dark .text-emerald-800 {
327
+ color: #aae4a5; /* green, as Mocha */
328
+ }
329
+ .slash-suite-dark .text-amber-700,
330
+ .slash-suite-dark .text-amber-800,
331
+ .slash-suite-dark .text-amber-900 {
332
+ color: #f9e2af; /* yellow */
333
+ }
334
+ .slash-suite-dark .text-red-700,
335
+ .slash-suite-dark .text-red-800,
336
+ .slash-suite-dark .text-red-900 {
337
+ color: #f38ba8; /* red */
338
+ }
339
+ .slash-suite-dark .text-blue-600,
340
+ .slash-suite-dark .text-blue-700,
341
+ .slash-suite-dark .text-blue-800,
342
+ .slash-suite-dark .text-blue-900 {
343
+ color: #89b4fa; /* blue */
344
+ }
345
+ .slash-suite-dark .text-violet-600,
346
+ .slash-suite-dark .text-violet-700 {
347
+ color: #fbc5a1; /* peach */
348
+ }
349
+ .slash-suite-dark .text-sky-700 {
350
+ color: #89dceb; /* sky */
351
+ }
352
+ /* Chart-only tones (StackedBar, Legend): neutral is a grey apart from muted, violet is the peach
353
+ of the accent. */
354
+ .slash-suite-dark .text-neutral-500 {
355
+ color: #7f849c; /* overlay1: overlay0 is under 3:1 on surface0, and a chart mark needs 3:1 */
356
+ }
357
+ .slash-suite-dark .text-purple-700 {
358
+ color: #fab387; /* peach */
359
+ }
360
+ /* The categorical scale (cat1 to cat8): one colour per category where the colour carries no
361
+ meaning, for a chart and its key. Each starts from this theme's own hue and moved only as far as
362
+ 3:1 on every surface and 0.12 apart in OKLab need. */
363
+ .slash-suite-dark .text-indigo-600 {
364
+ color: #72b6f5; /* cat1: blue */
365
+ }
366
+ .slash-suite-dark .text-orange-600 {
367
+ color: #ebb589; /* cat2: peach */
368
+ }
369
+ .slash-suite-dark .text-teal-600 {
370
+ color: #8be0e7; /* cat3: teal */
371
+ }
372
+ .slash-suite-dark .text-pink-600 {
373
+ color: #f8caf6; /* cat4: pink */
374
+ }
375
+ .slash-suite-dark .text-lime-600 {
376
+ color: #ace188; /* cat5: green */
377
+ }
378
+ .slash-suite-dark .text-fuchsia-600 {
379
+ color: #d09cfb; /* cat6: mauve */
380
+ }
381
+ .slash-suite-dark .text-rose-600 {
382
+ color: #f080a3; /* cat7: red */
383
+ }
384
+ .slash-suite-dark .text-yellow-600 {
385
+ color: #ffebb9; /* cat8: yellow */
386
+ }
387
+ .slash-suite-dark .border-emerald-200,
388
+ .slash-suite-dark .border-emerald-300 {
389
+ border-color: rgba(166, 227, 161, 0.4);
390
+ }
391
+ .slash-suite-dark .border-amber-200,
392
+ .slash-suite-dark .border-amber-300 {
393
+ border-color: rgba(249, 226, 175, 0.4);
394
+ }
395
+ .slash-suite-dark .border-amber-600 {
396
+ border-color: #f9e2af; /* yellow: the strong warn edge (Card attention) */
397
+ }
398
+ .slash-suite-dark .border-red-200,
399
+ .slash-suite-dark .aria-invalid\:border-red-200[aria-invalid="true"],
400
+ .slash-suite-dark .has-aria-invalid\:border-red-200:has([aria-invalid="true"]) {
401
+ /* The invalid field's edge (and an `aria-invalid` control's edge), the only sign of the error besides the message: red/65, 3:1 or more
402
+ on every surface (red/45 was 2.25:1 on surface0). */
403
+ border-color: rgba(243, 139, 168, 0.65);
404
+ }
405
+ .slash-suite-dark .border-red-300,
406
+ .slash-suite-dark .border-red-400 {
407
+ border-color: rgba(243, 139, 168, 0.45);
408
+ }
409
+ .slash-suite-dark .border-blue-200,
410
+ .slash-suite-dark .border-blue-300 {
411
+ border-color: rgba(137, 180, 250, 0.4);
412
+ }
413
+
414
+ /* Inline links: peach (green is reserved for positive values). Alias of @slashsuite/ui-react's
415
+ TextLink (text-violet-600, hover:text-violet-700, remapped above), kept for consumers that still
416
+ write class="link" on a bare <a>. */
417
+ .slash-suite-dark .link {
418
+ color: #fbc5a1; /* peach */
419
+ font-weight: 500;
420
+ text-underline-offset: 2px;
421
+ transition: color 0.12s ease;
422
+ }
423
+ .slash-suite-dark .link:hover {
424
+ color: #fdc9a8; /* peach, lifted: the hovered link */
425
+ }
426
+
427
+ /* The hero glow (Hero): three ribbons behind a landing page's title, a soft wash of peach, teal and
428
+ pink on the mantle. Decoration: the contrast contract holds the hero's text over all three at once. */
429
+ .slash-suite-dark .bg-indigo-400\/25 {
430
+ background-color: rgba(250, 179, 135, 0.09); /* peach */
431
+ }
432
+ .slash-suite-dark .bg-teal-400\/25 {
433
+ background-color: rgba(148, 226, 213, 0.065); /* teal */
434
+ }
435
+ .slash-suite-dark .bg-rose-400\/25 {
436
+ background-color: rgba(245, 194, 231, 0.06); /* pink */
437
+ }
438
+ /* The danger text drawn on a Callout tint (HC-442): lifted there only, so danger keeps its red everywhere else. */
439
+ .slash-suite-dark .bg-slate-50 .text-red-700,
440
+ .slash-suite-dark .bg-blue-50 .text-red-700,
441
+ .slash-suite-dark .bg-emerald-50 .text-red-700,
442
+ .slash-suite-dark .bg-amber-50 .text-red-700,
443
+ .slash-suite-dark .bg-red-50 .text-red-700 {
444
+ color: #f7b0c4;
445
+ }