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