@slashsuite/themes 0.4.1 → 0.5.1

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.
@@ -28,6 +28,7 @@
28
28
  .slash-suite-dark {
29
29
  color-scheme: dark;
30
30
  background-color: #0d1326; /* mantle: the canvas the base-coloured cards lift off */
31
+ color: #e2e8fc; /* text: the ink of a page outside AppShell */
31
32
  /* The type faces: Inter, headings included, and JetBrains Mono after the platform's own
32
33
  ui-monospace, which the consuming site loads (this package ships no font file); the system
33
34
  stack otherwise. Custom properties on the scope,
@@ -57,6 +58,14 @@
57
58
  --hc-cat-8: #ffebb9; /* text-yellow-600 */
58
59
  }
59
60
 
61
+ /* Selected text: the primary fill under its own label, the pair the contrast contract already holds
62
+ to AA, so a highlight reads in the theme's accent rather than the browser's blue. */
63
+ .slash-suite-dark ::selection,
64
+ .slash-suite-dark::selection {
65
+ background-color: #fab387;
66
+ color: #080d1c;
67
+ }
68
+
60
69
  /* The page canvas: AppShell paints it, so cards (base) lift off it. */
61
70
  .slash-suite-dark .bg-gray-50 {
62
71
  background-color: #0d1326; /* mantle */
@@ -111,11 +120,15 @@
111
120
  outline-color: #e2e8fc; /* text */
112
121
  }
113
122
 
114
- /* The media matte (Image framed): the white mat a QR code is scanned off. It stays white in every
123
+ /* The media matte (Image `mat="white"`): the white mat a QR code is scanned off. It stays white in every
115
124
  theme, dark ones included, as the scrim above stays black. */
116
125
  .slash-suite-dark .bg-white\/100 {
117
126
  background-color: #ffffff;
118
127
  }
128
+ /* The app header's ground: the page ground. */
129
+ .slash-suite-dark .bg-white\/95 {
130
+ background-color: #0d1326;
131
+ }
119
132
 
120
133
  /* Text */
121
134
  .slash-suite-dark .text-slate-900,
@@ -271,9 +284,9 @@
271
284
  color: #b1b8d0; /* overlay2 */
272
285
  }
273
286
 
274
- /* Avatar identity colours: violet-600 is the peach accent above; the rest sit on the theme. */
287
+ /* Avatar identity colours: violet-600 is the accent above; the rest sit on the theme. */
275
288
  .slash-suite-dark .bg-orange-600 {
276
- background-color: #cba6f7; /* mauve: peach is the accent's own fill */
289
+ background-color: #cba6f7; /* mauve */
277
290
  }
278
291
  .slash-suite-dark .bg-cyan-600 {
279
292
  background-color: #74c7ec; /* sapphire */
@@ -301,13 +314,11 @@
301
314
 
302
315
  /* Coloured callouts / chips: tint backgrounds, lighten text & borders */
303
316
  .slash-suite-dark .bg-emerald-50,
304
- .slash-suite-dark .bg-emerald-50\/60,
305
- .slash-suite-dark .bg-emerald-100 {
317
+ .slash-suite-dark .bg-emerald-50\/60 {
306
318
  background-color: rgba(166, 227, 161, 0.13);
307
319
  }
308
320
  .slash-suite-dark .bg-amber-50,
309
- .slash-suite-dark .bg-amber-50\/60,
310
- .slash-suite-dark .bg-amber-100 {
321
+ .slash-suite-dark .bg-amber-50\/60 {
311
322
  background-color: rgba(249, 226, 175, 0.13);
312
323
  }
313
324
  .slash-suite-dark .bg-red-50 {
@@ -349,8 +360,8 @@
349
360
  .slash-suite-dark .text-sky-700 {
350
361
  color: #89dceb; /* sky */
351
362
  }
352
- /* Chart-only tones (StackedBar, Legend): neutral is a grey apart from muted, violet is the peach
353
- of the accent. */
363
+ /* Chart-only tones (StackedBar, Legend): neutral is a grey apart from muted, violet is the accent's
364
+ pastel. */
354
365
  .slash-suite-dark .text-neutral-500 {
355
366
  color: #7f849c; /* overlay1: overlay0 is under 3:1 on surface0, and a chart mark needs 3:1 */
356
367
  }
@@ -384,12 +395,10 @@
384
395
  .slash-suite-dark .text-yellow-600 {
385
396
  color: #ffebb9; /* cat8: yellow */
386
397
  }
387
- .slash-suite-dark .border-emerald-200,
388
- .slash-suite-dark .border-emerald-300 {
398
+ .slash-suite-dark .border-emerald-200 {
389
399
  border-color: rgba(166, 227, 161, 0.4);
390
400
  }
391
- .slash-suite-dark .border-amber-200,
392
- .slash-suite-dark .border-amber-300 {
401
+ .slash-suite-dark .border-amber-200 {
393
402
  border-color: rgba(249, 226, 175, 0.4);
394
403
  }
395
404
  .slash-suite-dark .border-amber-600 {
@@ -397,6 +406,8 @@
397
406
  }
398
407
  .slash-suite-dark .border-red-200,
399
408
  .slash-suite-dark .aria-invalid\:border-red-200[aria-invalid="true"],
409
+ .slash-suite-dark .user-invalid\:border-red-200:user-invalid,
410
+ .slash-suite-dark .has-user-invalid\:border-red-200:has(:user-invalid),
400
411
  .slash-suite-dark .has-aria-invalid\:border-red-200:has([aria-invalid="true"]) {
401
412
  /* 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
413
  on every surface (red/45 was 2.25:1 on surface0). */
@@ -406,12 +417,11 @@
406
417
  .slash-suite-dark .border-red-400 {
407
418
  border-color: rgba(243, 139, 168, 0.45);
408
419
  }
409
- .slash-suite-dark .border-blue-200,
410
- .slash-suite-dark .border-blue-300 {
420
+ .slash-suite-dark .border-blue-200 {
411
421
  border-color: rgba(137, 180, 250, 0.4);
412
422
  }
413
423
 
414
- /* Inline links: peach (green is reserved for positive values). Alias of @slashsuite/ui-react's
424
+ /* Inline links: the accent (green is reserved for positive values). Alias of @slashsuite/ui-react's
415
425
  TextLink (text-violet-600, hover:text-violet-700, remapped above), kept for consumers that still
416
426
  write class="link" on a bare <a>. */
417
427
  .slash-suite-dark .link {
@@ -424,8 +434,8 @@
424
434
  color: #fdc9a8; /* peach, lifted: the hovered link */
425
435
  }
426
436
 
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. */
437
+ /* The hero glow (Hero): three ribbons behind a landing page's title, a soft wash of the accent, teal
438
+ and pink on the mantle. Decoration: the contrast contract holds the hero's text over all three at once. */
429
439
  .slash-suite-dark .bg-indigo-400\/25 {
430
440
  background-color: rgba(250, 179, 135, 0.09); /* peach */
431
441
  }
@@ -443,3 +453,52 @@
443
453
  .slash-suite-dark .bg-red-50 .text-red-700 {
444
454
  color: #f7b0c4;
445
455
  }
456
+
457
+ /* Peer hues (Card hue): a set of peer cards, one hue each, told apart by hue, not status.
458
+ Slash Night, as the Slash suite's tool cards: each hue is its Catppuccin Mocha pastel. The fill is a
459
+ 30% wash of it over the card (bg-white); the edge is it mixed 65% with the line (border-slate-200,
460
+ the s1 line). Mixed in OKLab, as the suite's own cards are.
461
+ A fill is lowered in 5% steps where the card's ink would miss 4.5:1 on it, and says so. The edge
462
+ is decoration (the contrast contract exempts it): the title and the fill carry the card. */
463
+ .slash-suite-dark .bg-orange-100 {
464
+ background-color: #564c57; /* orange: peach #fab387 at 30% */
465
+ }
466
+ .slash-suite-dark .bg-violet-100 {
467
+ background-color: #494771; /* violet: mauve #cba6f7 at 30% */
468
+ }
469
+ .slash-suite-dark .bg-sky-100 {
470
+ background-color: #37556e; /* sky: sky #89dceb at 30% */
471
+ }
472
+ .slash-suite-dark .bg-emerald-100 {
473
+ background-color: #3e585d; /* green: green #a6e3a1 at 30% */
474
+ }
475
+ .slash-suite-dark .bg-amber-100 {
476
+ background-color: #494f5b; /* yellow: yellow #f9e2af at 25%, lowered from 30% so the ink keeps 4.5:1 */
477
+ }
478
+ .slash-suite-dark .bg-blue-100 {
479
+ background-color: #374a72; /* blue: blue #89b4fa at 30% */
480
+ }
481
+ .slash-suite-dark .border-orange-300 {
482
+ border-color: #b28c7e; /* orange */
483
+ }
484
+ .slash-suite-dark .border-violet-300 {
485
+ border-color: #9582c1; /* violet */
486
+ }
487
+ .slash-suite-dark .border-sky-300 {
488
+ border-color: #6ba4b9; /* sky */
489
+ }
490
+ .slash-suite-dark .border-emerald-300 {
491
+ border-color: #7ca98e; /* green */
492
+ }
493
+ .slash-suite-dark .border-amber-300 {
494
+ border-color: #b0a897; /* yellow */
495
+ }
496
+ .slash-suite-dark .border-blue-300 {
497
+ border-color: #6b8bc2; /* blue */
498
+ }
499
+
500
+ /* The page mat (the media-mat role): the mat under a screenshot on a page, the theme's own ground.
501
+ The white media matte above stays white for a code. */
502
+ .slash-suite-dark .bg-zinc-50 {
503
+ background-color: #080d1c; /* Slash Night crust, a step below the canvas */
504
+ }
@@ -0,0 +1,450 @@
1
+ {
2
+ "id": "slash-suite-dark",
3
+ "scope": "slash-suite-dark",
4
+ "scheme": "dark",
5
+ "statusBar": "light-content",
6
+ "base": {
7
+ "backgroundColor": "#0d1326",
8
+ "color": "#e2e8fc",
9
+ "fontFamily": "Inter",
10
+ "headingFontFamily": null
11
+ },
12
+ "selection": {
13
+ "backgroundColor": "#fab387",
14
+ "color": "#080d1c"
15
+ },
16
+ "utilities": {
17
+ "bg-gray-50": {
18
+ "backgroundColor": "#0d1326"
19
+ },
20
+ "bg-white": {
21
+ "backgroundColor": "#19233e"
22
+ },
23
+ "bg-white/80": {
24
+ "backgroundColor": "rgba(25, 35, 62, 0.85)"
25
+ },
26
+ "bg-slate-50": {
27
+ "backgroundColor": "#25304d"
28
+ },
29
+ "bg-slate-50/50": {
30
+ "backgroundColor": "#25304d"
31
+ },
32
+ "bg-slate-50/60": {
33
+ "backgroundColor": "#25304d"
34
+ },
35
+ "bg-slate-50/70": {
36
+ "backgroundColor": "#25304d"
37
+ },
38
+ "bg-slate-100": {
39
+ "backgroundColor": "#2b3757"
40
+ },
41
+ "bg-slate-200": {
42
+ "backgroundColor": "#374463"
43
+ },
44
+ "bg-slate-900": {
45
+ "backgroundColor": "#25304d"
46
+ },
47
+ "bg-black/90": {
48
+ "backgroundColor": "rgba(8, 13, 28, 0.94)"
49
+ },
50
+ "text-white": {
51
+ "color": "#e2e8fc"
52
+ },
53
+ "text-white/70": {
54
+ "color": "#c6cce2"
55
+ },
56
+ "bg-white/100": {
57
+ "backgroundColor": "#ffffff"
58
+ },
59
+ "bg-white/95": {
60
+ "backgroundColor": "#0d1326"
61
+ },
62
+ "text-slate-900": {
63
+ "color": "#e2e8fc"
64
+ },
65
+ "text-slate-800": {
66
+ "color": "#e2e8fc"
67
+ },
68
+ "text-slate-700": {
69
+ "color": "#ccd4ee"
70
+ },
71
+ "text-slate-600": {
72
+ "color": "#ccd4ee"
73
+ },
74
+ "text-slate-500": {
75
+ "color": "#c6cce2"
76
+ },
77
+ "text-slate-400": {
78
+ "color": "#bcc2da"
79
+ },
80
+ "text-slate-300": {
81
+ "color": "#6c7086"
82
+ },
83
+ "border-slate-100": {
84
+ "borderColor": "#1d2744"
85
+ },
86
+ "border-slate-50": {
87
+ "borderColor": "#25304d"
88
+ },
89
+ "border-slate-200": {
90
+ "borderColor": "#374463"
91
+ },
92
+ "border-slate-200/70": {
93
+ "borderColor": "#374463"
94
+ },
95
+ "border-slate-300": {
96
+ "borderColor": "#7f849c"
97
+ },
98
+ "border-slate-900": {
99
+ "borderColor": "#e2e8fc"
100
+ },
101
+ "text-emerald-600": {
102
+ "color": "#a6e3a1"
103
+ },
104
+ "text-red-600": {
105
+ "color": "#f38ba8"
106
+ },
107
+ "bg-emerald-500": {
108
+ "backgroundColor": "#a6e3a1"
109
+ },
110
+ "bg-red-500": {
111
+ "backgroundColor": "#f38ba8"
112
+ },
113
+ "bg-slate-300": {
114
+ "backgroundColor": "#485574"
115
+ },
116
+ "bg-violet-600": {
117
+ "backgroundColor": "#fab387"
118
+ },
119
+ "text-violet-50": {
120
+ "color": "#080d1c"
121
+ },
122
+ "border-violet-600": {
123
+ "borderColor": "#fab387"
124
+ },
125
+ "outline-violet-600": {
126
+ "outlineColor": "#fab387"
127
+ },
128
+ "accent-violet-600": {
129
+ "accentColor": "#fab387"
130
+ },
131
+ "bg-red-600": {
132
+ "backgroundColor": "#f38ba8"
133
+ },
134
+ "text-red-50": {
135
+ "color": "#080d1c"
136
+ },
137
+ "border-red-600": {
138
+ "borderColor": "#f38ba8"
139
+ },
140
+ "text-emerald-50": {
141
+ "color": "#080d1c"
142
+ },
143
+ "border-emerald-600": {
144
+ "borderColor": "#a6e3a1"
145
+ },
146
+ "bg-orange-600": {
147
+ "backgroundColor": "#cba6f7"
148
+ },
149
+ "bg-cyan-600": {
150
+ "backgroundColor": "#74c7ec"
151
+ },
152
+ "bg-emerald-600": {
153
+ "backgroundColor": "#a6e3a1"
154
+ },
155
+ "bg-sky-600": {
156
+ "backgroundColor": "#b4befe"
157
+ },
158
+ "bg-pink-600": {
159
+ "backgroundColor": "#f5c2e7"
160
+ },
161
+ "bg-amber-600": {
162
+ "backgroundColor": "#f9e2af"
163
+ },
164
+ "bg-emerald-50": {
165
+ "backgroundColor": "rgba(166, 227, 161, 0.13)"
166
+ },
167
+ "bg-emerald-50/60": {
168
+ "backgroundColor": "rgba(166, 227, 161, 0.13)"
169
+ },
170
+ "bg-amber-50": {
171
+ "backgroundColor": "rgba(249, 226, 175, 0.13)"
172
+ },
173
+ "bg-amber-50/60": {
174
+ "backgroundColor": "rgba(249, 226, 175, 0.13)"
175
+ },
176
+ "bg-red-50": {
177
+ "backgroundColor": "rgba(243, 139, 168, 0.1)"
178
+ },
179
+ "bg-blue-50": {
180
+ "backgroundColor": "rgba(137, 180, 250, 0.13)"
181
+ },
182
+ "bg-violet-50": {
183
+ "backgroundColor": "rgba(250, 179, 135, 0.14)"
184
+ },
185
+ "bg-sky-50": {
186
+ "backgroundColor": "rgba(137, 220, 235, 0.13)"
187
+ },
188
+ "text-emerald-700": {
189
+ "color": "#aae4a5"
190
+ },
191
+ "text-emerald-800": {
192
+ "color": "#aae4a5"
193
+ },
194
+ "text-amber-700": {
195
+ "color": "#f9e2af"
196
+ },
197
+ "text-amber-800": {
198
+ "color": "#f9e2af"
199
+ },
200
+ "text-amber-900": {
201
+ "color": "#f9e2af"
202
+ },
203
+ "text-red-700": {
204
+ "color": "#f38ba8"
205
+ },
206
+ "text-red-800": {
207
+ "color": "#f38ba8"
208
+ },
209
+ "text-red-900": {
210
+ "color": "#f38ba8"
211
+ },
212
+ "text-blue-600": {
213
+ "color": "#89b4fa"
214
+ },
215
+ "text-blue-700": {
216
+ "color": "#89b4fa"
217
+ },
218
+ "text-blue-800": {
219
+ "color": "#89b4fa"
220
+ },
221
+ "text-blue-900": {
222
+ "color": "#89b4fa"
223
+ },
224
+ "text-violet-600": {
225
+ "color": "#fbc5a1"
226
+ },
227
+ "text-violet-700": {
228
+ "color": "#fbc5a1"
229
+ },
230
+ "text-sky-700": {
231
+ "color": "#89dceb"
232
+ },
233
+ "text-neutral-500": {
234
+ "color": "#7f849c"
235
+ },
236
+ "text-purple-700": {
237
+ "color": "#fab387"
238
+ },
239
+ "text-indigo-600": {
240
+ "color": "#72b6f5"
241
+ },
242
+ "text-orange-600": {
243
+ "color": "#ebb589"
244
+ },
245
+ "text-teal-600": {
246
+ "color": "#8be0e7"
247
+ },
248
+ "text-pink-600": {
249
+ "color": "#f8caf6"
250
+ },
251
+ "text-lime-600": {
252
+ "color": "#ace188"
253
+ },
254
+ "text-fuchsia-600": {
255
+ "color": "#d09cfb"
256
+ },
257
+ "text-rose-600": {
258
+ "color": "#f080a3"
259
+ },
260
+ "text-yellow-600": {
261
+ "color": "#ffebb9"
262
+ },
263
+ "border-emerald-200": {
264
+ "borderColor": "rgba(166, 227, 161, 0.4)"
265
+ },
266
+ "border-amber-200": {
267
+ "borderColor": "rgba(249, 226, 175, 0.4)"
268
+ },
269
+ "border-amber-600": {
270
+ "borderColor": "#f9e2af"
271
+ },
272
+ "border-red-200": {
273
+ "borderColor": "rgba(243, 139, 168, 0.65)"
274
+ },
275
+ "border-red-300": {
276
+ "borderColor": "rgba(243, 139, 168, 0.45)"
277
+ },
278
+ "border-red-400": {
279
+ "borderColor": "rgba(243, 139, 168, 0.45)"
280
+ },
281
+ "border-blue-200": {
282
+ "borderColor": "rgba(137, 180, 250, 0.4)"
283
+ },
284
+ "link": {
285
+ "color": "#fbc5a1",
286
+ "fontWeight": "500"
287
+ },
288
+ "bg-indigo-400/25": {
289
+ "backgroundColor": "rgba(250, 179, 135, 0.09)"
290
+ },
291
+ "bg-teal-400/25": {
292
+ "backgroundColor": "rgba(148, 226, 213, 0.065)"
293
+ },
294
+ "bg-rose-400/25": {
295
+ "backgroundColor": "rgba(245, 194, 231, 0.06)"
296
+ },
297
+ "bg-orange-100": {
298
+ "backgroundColor": "#564c57"
299
+ },
300
+ "bg-violet-100": {
301
+ "backgroundColor": "#494771"
302
+ },
303
+ "bg-sky-100": {
304
+ "backgroundColor": "#37556e"
305
+ },
306
+ "bg-emerald-100": {
307
+ "backgroundColor": "#3e585d"
308
+ },
309
+ "bg-amber-100": {
310
+ "backgroundColor": "#494f5b"
311
+ },
312
+ "bg-blue-100": {
313
+ "backgroundColor": "#374a72"
314
+ },
315
+ "border-orange-300": {
316
+ "borderColor": "#b28c7e"
317
+ },
318
+ "border-violet-300": {
319
+ "borderColor": "#9582c1"
320
+ },
321
+ "border-sky-300": {
322
+ "borderColor": "#6ba4b9"
323
+ },
324
+ "border-emerald-300": {
325
+ "borderColor": "#7ca98e"
326
+ },
327
+ "border-amber-300": {
328
+ "borderColor": "#b0a897"
329
+ },
330
+ "border-blue-300": {
331
+ "borderColor": "#6b8bc2"
332
+ },
333
+ "bg-zinc-50": {
334
+ "backgroundColor": "#080d1c"
335
+ }
336
+ },
337
+ "states": {
338
+ "pressed": {
339
+ "bg-white/10": {
340
+ "backgroundColor": "rgba(226, 232, 252, 0.1)"
341
+ },
342
+ "bg-violet-700": {
343
+ "backgroundColor": "#ef9f6e"
344
+ },
345
+ "text-violet-700": {
346
+ "color": "#fdc9a8"
347
+ },
348
+ "bg-violet-50": {
349
+ "backgroundColor": "rgba(250, 179, 135, 0.14)"
350
+ },
351
+ "border-violet-400": {
352
+ "borderColor": "rgba(250, 179, 135, 0.6)"
353
+ },
354
+ "bg-red-700": {
355
+ "backgroundColor": "#eba0ac"
356
+ },
357
+ "bg-red-50": {
358
+ "backgroundColor": "rgba(243, 139, 168, 0.1)"
359
+ },
360
+ "bg-emerald-700": {
361
+ "backgroundColor": "#94e2d5"
362
+ },
363
+ "bg-emerald-50": {
364
+ "backgroundColor": "rgba(166, 227, 161, 0.14)"
365
+ },
366
+ "bg-slate-50": {
367
+ "backgroundColor": "#1d2845"
368
+ },
369
+ "bg-slate-100": {
370
+ "backgroundColor": "#25304d"
371
+ },
372
+ "link": {
373
+ "color": "#fdc9a8"
374
+ }
375
+ },
376
+ "focused": {
377
+ "outline-white": {
378
+ "outlineColor": "#e2e8fc"
379
+ },
380
+ "outline-violet-600": {
381
+ "outlineColor": "#fab387"
382
+ }
383
+ },
384
+ "placeholderTextColor": {
385
+ "text-slate-400": {
386
+ "placeholderTextColor": "#bcc2da"
387
+ }
388
+ },
389
+ "scrim": {
390
+ "bg-slate-900/35": {
391
+ "backgroundColor": "rgba(8, 13, 28, 0.6)"
392
+ }
393
+ },
394
+ "disabled": {},
395
+ "invalid": {
396
+ "border-red-200": {
397
+ "borderColor": "rgba(243, 139, 168, 0.65)"
398
+ }
399
+ },
400
+ "target": {
401
+ "outline-violet-600": {
402
+ "outlineColor": "#fab387"
403
+ }
404
+ }
405
+ },
406
+ "within": {
407
+ "bg-slate-50": {
408
+ "text-red-700": {
409
+ "color": "#f7b0c4"
410
+ }
411
+ },
412
+ "bg-blue-50": {
413
+ "text-red-700": {
414
+ "color": "#f7b0c4"
415
+ }
416
+ },
417
+ "bg-emerald-50": {
418
+ "text-red-700": {
419
+ "color": "#f7b0c4"
420
+ }
421
+ },
422
+ "bg-amber-50": {
423
+ "text-red-700": {
424
+ "color": "#f7b0c4"
425
+ }
426
+ },
427
+ "bg-red-50": {
428
+ "text-red-700": {
429
+ "color": "#f7b0c4"
430
+ }
431
+ }
432
+ },
433
+ "headings": {},
434
+ "compounds": [
435
+ {
436
+ "utility": "disabled:opacity-50",
437
+ "requiresAny": [
438
+ "bg-violet-600",
439
+ "bg-emerald-600",
440
+ "bg-red-600"
441
+ ],
442
+ "style": {
443
+ "opacity": 1,
444
+ "backgroundColor": "#374463",
445
+ "borderColor": "#25304d",
446
+ "color": "#b1b8d0"
447
+ }
448
+ }
449
+ ]
450
+ }