@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,403 @@
1
+ /*! Thrifty Paper palette from Thrifty's light theme (cream paper, ink text, clay accent) */
2
+ /* ---------------------------------------------------------------------------
3
+ Thrifty Paper: a light theme for the UISlash design system.
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 to Thrifty's light colours under `.thrifty-paper`. The rules are
8
+ unlayered, so they override Tailwind's (layered) utilities.
9
+
10
+ Consumers import it AFTER `@import "tailwindcss"` and put `.thrifty-paper`
11
+ on <html> (see the README for the import line). It is light, so it declares
12
+ no `dark` variant.
13
+
14
+ Palette (Thrifty's @theme block):
15
+ canvas #fdfbf7 · surface #ffffff · subtle #f7f2e9 · line #ece3d4
16
+ ink #1c1917 · ink-body #3b342e · ink-mute #6b6259
17
+ accent #c2410c · accent-hover #9a3412 · accent-soft #fdf5f0
18
+ positive #047857 / #ecfdf5 · warn #b45309 / #fffbeb · note #0f766e / #f0fdfa
19
+ danger #7a1220 / #fdf2f4
20
+ Added for 3:1 control edges (not in Thrifty's block): edge #948a7c
21
+ Added for the two tones the clay alone cannot carry: accent-ink #9a3412, with accent-ink-hover
22
+ #7c2d12, is the deeper clay the accent's text takes (a link, an outline button's label) while its
23
+ fills stay #c2410c, so a page of links reads as quiet text and not as a wall of the primary
24
+ button; and danger is a deep wine red, clear of the clay rather than an orange-red beside it.
25
+
26
+ --------------------------------------------------------------------------- */
27
+
28
+ /* The scope: the page is cream canvas with ink text. */
29
+ .thrifty-paper {
30
+ color-scheme: light;
31
+ background-color: #fdfbf7; /* canvas */
32
+ color: #1c1917; /* ink */
33
+ /* The type faces: Thrifty's Inter where installed, the system stack otherwise. Custom properties
34
+ on the scope, 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: #ffffff; /* bg-white */
45
+ --hc-subtle: #f7f2e9; /* bg-slate-50 */
46
+ --hc-line: #ece3d4; /* border-slate-200 */
47
+ --hc-ink: #1c1917; /* text-slate-900 */
48
+ --hc-mute: #6b6259; /* text-slate-500 */
49
+ --hc-accent: #9a3412; /* text-violet-600 */
50
+ --hc-cat-1: #1b6096; /* text-indigo-600 */
51
+ --hc-cat-2: #d2391a; /* text-orange-600 */
52
+ --hc-cat-3: #1b8177; /* text-teal-600 */
53
+ --hc-cat-4: #c4096e; /* text-pink-600 */
54
+ --hc-cat-5: #438700; /* text-lime-600 */
55
+ --hc-cat-6: #7633b9; /* text-fuchsia-600 */
56
+ --hc-cat-7: #910922; /* text-rose-600 */
57
+ --hc-cat-8: #946231; /* text-yellow-600 */
58
+ }
59
+
60
+ /* The page canvas: AppShell paints it; white cards lift off the cream. */
61
+ .thrifty-paper .bg-gray-50 {
62
+ background-color: #fdfbf7; /* canvas */
63
+ }
64
+
65
+ /* Surfaces: white cards on the cream canvas, cream insets. */
66
+ .thrifty-paper .bg-white {
67
+ background-color: #ffffff; /* surface */
68
+ }
69
+ .thrifty-paper .bg-white\/80 {
70
+ background-color: rgba(255, 255, 255, 0.85);
71
+ }
72
+ .thrifty-paper .bg-slate-50,
73
+ .thrifty-paper .bg-slate-50\/50,
74
+ .thrifty-paper .bg-slate-50\/60,
75
+ .thrifty-paper .bg-slate-50\/70 {
76
+ background-color: #f7f2e9; /* subtle */
77
+ }
78
+ .thrifty-paper .bg-slate-100 {
79
+ background-color: #ece3d4; /* line: one step deeper than subtle */
80
+ }
81
+ /* A loading bone (the skeleton role): opaque, held apart from the canvas, a card and the subtle
82
+ strip by the distinction contract.
83
+ A step darker than the line (#ece3d4), which sits too close to the subtle strip. */
84
+ .thrifty-paper .bg-slate-200 {
85
+ background-color: #e2d6c2;
86
+ }
87
+ .thrifty-paper .bg-slate-900 {
88
+ background-color: #1c1917; /* ink: e.g. the brand badge */
89
+ }
90
+ .thrifty-paper .backdrop\:bg-slate-900\/35::backdrop {
91
+ background-color: rgba(28, 25, 23, 0.35); /* ink: the modal scrim */
92
+ }
93
+
94
+ /* The media scrim: Lightbox's full-screen viewer. It stays near-black with light text in this light
95
+ theme too, so a photo or a video reads against it as it would in any viewer. */
96
+ .thrifty-paper .bg-black\/90 {
97
+ background-color: rgba(28, 25, 23, 0.94); /* ink */
98
+ }
99
+ .thrifty-paper .text-white {
100
+ color: #fdfbf7; /* canvas */
101
+ }
102
+ .thrifty-paper .text-white\/70 {
103
+ color: rgba(253, 251, 247, 0.72); /* canvas/72 */
104
+ }
105
+ .thrifty-paper .hover\:bg-white\/10:hover {
106
+ background-color: rgba(253, 251, 247, 0.12); /* canvas/12 */
107
+ }
108
+ .thrifty-paper .focus-visible\:outline-white:focus-visible {
109
+ outline-color: #fdfbf7; /* canvas: the accent is 2.4:1 on the scrim */
110
+ }
111
+
112
+ /* The media matte (Image framed): the white mat a QR code is scanned off. It stays white in every
113
+ theme, dark ones included, as the scrim above stays black. */
114
+ .thrifty-paper .bg-white\/100 {
115
+ background-color: #ffffff;
116
+ }
117
+
118
+ /* Text */
119
+ .thrifty-paper .text-slate-900,
120
+ .thrifty-paper .text-slate-800 {
121
+ color: #1c1917; /* ink */
122
+ }
123
+ .thrifty-paper .text-slate-700,
124
+ .thrifty-paper .text-slate-600 {
125
+ color: #3b342e; /* ink-body */
126
+ }
127
+ .thrifty-paper .text-slate-500,
128
+ .thrifty-paper .text-slate-400 {
129
+ color: #6b6259; /* ink-mute: Thrifty's lightest text */
130
+ }
131
+ .thrifty-paper .text-slate-300 {
132
+ color: #6b6259; /* ink-mute, days outside the month: 5.97:1 on white (ink-mute/50 was 2.15:1) */
133
+ }
134
+ .thrifty-paper .placeholder\:text-slate-400::placeholder {
135
+ color: #736a60; /* ink-mute, a step lighter than the text it sits beside: ink-mute/70 was 2.9:1 to 3.1:1, and AA text needs 4.5:1 */
136
+ }
137
+
138
+ /* Borders */
139
+ .thrifty-paper .border-slate-50 {
140
+ border-color: #f7f2e9; /* same as bg-slate-50: the ring takes the page colour */
141
+ }
142
+ .thrifty-paper .border-slate-100,
143
+ .thrifty-paper .border-slate-200,
144
+ .thrifty-paper .border-slate-200\/70 {
145
+ border-color: #ece3d4; /* line */
146
+ }
147
+ .thrifty-paper .border-slate-300 {
148
+ border-color: #948a7c; /* control edge: 3.39:1 on white, 3.28:1 on canvas (line was 1.27:1) */
149
+ }
150
+ .thrifty-paper .border-slate-900 {
151
+ border-color: #1c1917; /* ink */
152
+ }
153
+
154
+ /* Money + accent text */
155
+ .thrifty-paper .text-emerald-600 {
156
+ color: #047857; /* positive */
157
+ }
158
+
159
+ /* Stat-card accent bars */
160
+ .thrifty-paper .bg-emerald-500 {
161
+ background-color: #047857; /* positive */
162
+ }
163
+ .thrifty-paper .bg-slate-300 {
164
+ background-color: #ece3d4; /* line */
165
+ }
166
+
167
+ /* Accent: buttons, focus, controls. The fills are the bright clay; the text is the deeper clay, so
168
+ a page of links stays quieter than the one primary button (see accent-ink in the banner). */
169
+ .thrifty-paper .bg-violet-600 {
170
+ background-color: #c2410c; /* accent */
171
+ }
172
+ .thrifty-paper .hover\:bg-violet-700:hover {
173
+ background-color: #9a3412; /* accent-hover */
174
+ }
175
+ .thrifty-paper .text-violet-50 {
176
+ color: #ffffff; /* text on the accent button */
177
+ }
178
+ .thrifty-paper .hover\:text-violet-700:hover {
179
+ color: #7c2d12; /* accent-ink-hover */
180
+ }
181
+ .thrifty-paper .hover\:bg-violet-50:hover {
182
+ background-color: #fdf5f0; /* accent-soft */
183
+ }
184
+ .thrifty-paper .border-violet-600 {
185
+ border-color: #c2410c; /* accent */
186
+ }
187
+ .thrifty-paper .hover\:border-violet-400:hover {
188
+ border-color: #c2410c; /* accent: 5.18:1 on white, darker than the resting edge (was accent/40, 1.85:1) */
189
+ }
190
+ .thrifty-paper .outline-violet-600 {
191
+ outline-color: #c2410c; /* accent */
192
+ }
193
+ .thrifty-paper .target\:outline-violet-600:target {
194
+ outline-color: #c2410c; /* accent */
195
+ }
196
+ .thrifty-paper .focus-visible\:outline-violet-600:focus-visible {
197
+ outline-color: #c2410c; /* accent */
198
+ }
199
+ .thrifty-paper .has-focus-visible\:outline-violet-600:has(:focus-visible) {
200
+ outline-color: #c2410c; /* accent */
201
+ }
202
+ .thrifty-paper .accent-violet-600 {
203
+ accent-color: #c2410c; /* accent */
204
+ }
205
+
206
+ /* Danger button (Button tone="danger"): solid, outline and ghost. A deep wine red, so the
207
+ destructive button never reads as the primary clay beside it and still reads as a hazard. */
208
+ .thrifty-paper .bg-red-600 {
209
+ background-color: #7a1220; /* danger */
210
+ }
211
+ .thrifty-paper .hover\:bg-red-700:hover {
212
+ background-color: #5f0e1a; /* danger-hover */
213
+ }
214
+ .thrifty-paper .text-red-50 {
215
+ color: #ffffff; /* text on the danger button */
216
+ }
217
+ .thrifty-paper .border-red-600 {
218
+ border-color: #7a1220; /* danger */
219
+ }
220
+ .thrifty-paper .hover\:bg-red-50:hover {
221
+ background-color: #fdf2f4; /* danger-soft */
222
+ }
223
+
224
+ /* Positive button (Button tone="positive"): solid, outline, ghost and the pressed tint */
225
+ .thrifty-paper .hover\:bg-emerald-700:hover {
226
+ background-color: #065f46; /* positive-hover */
227
+ }
228
+ .thrifty-paper .text-emerald-50 {
229
+ color: #ffffff; /* text on the positive button */
230
+ }
231
+ .thrifty-paper .border-emerald-600 {
232
+ border-color: #047857; /* positive */
233
+ }
234
+ .thrifty-paper .hover\:bg-emerald-50:hover {
235
+ background-color: #ecfdf5; /* positive-soft */
236
+ }
237
+
238
+ /* Avatar identity colours: violet-600 is the accent above; the rest sit on the theme. */
239
+ .thrifty-paper .bg-orange-600 {
240
+ background-color: #8c5a2b; /* brown */
241
+ }
242
+ .thrifty-paper .bg-cyan-600 {
243
+ background-color: #0e7490; /* cyan */
244
+ }
245
+ .thrifty-paper .bg-emerald-600 {
246
+ background-color: #047857; /* positive */
247
+ }
248
+ .thrifty-paper .bg-sky-600 {
249
+ background-color: #1e6a8f; /* steel blue */
250
+ }
251
+ .thrifty-paper .bg-pink-600 {
252
+ background-color: #a8325e; /* berry */
253
+ }
254
+ .thrifty-paper .bg-amber-600 {
255
+ background-color: #7a6a1a; /* olive */
256
+ }
257
+
258
+ /* Hover states */
259
+ .thrifty-paper .hover\:bg-slate-50:hover {
260
+ background-color: #f7f2e9; /* subtle */
261
+ }
262
+ .thrifty-paper .hover\:bg-slate-100:hover {
263
+ background-color: #ece3d4; /* line */
264
+ }
265
+
266
+ /* Coloured callouts / chips: the soft fills, the full-strength text. */
267
+ .thrifty-paper .bg-emerald-50,
268
+ .thrifty-paper .bg-emerald-50\/60,
269
+ .thrifty-paper .bg-emerald-100 {
270
+ background-color: #ecfdf5; /* positive-soft */
271
+ }
272
+ .thrifty-paper .bg-amber-50,
273
+ .thrifty-paper .bg-amber-50\/60,
274
+ .thrifty-paper .bg-amber-100 {
275
+ background-color: #fffbeb; /* warn-soft */
276
+ }
277
+ .thrifty-paper .bg-blue-50 {
278
+ background-color: #f0fdfa; /* note-soft */
279
+ }
280
+ .thrifty-paper .bg-violet-50 {
281
+ background-color: #fdf5f0; /* accent-soft */
282
+ }
283
+ .thrifty-paper .bg-sky-50 {
284
+ background-color: #eff6fa; /* steel blue, soft */
285
+ }
286
+ .thrifty-paper .bg-red-50 {
287
+ background-color: #fdf2f4; /* danger-soft */
288
+ }
289
+ .thrifty-paper .text-emerald-700,
290
+ .thrifty-paper .text-emerald-800 {
291
+ color: #047857; /* positive */
292
+ }
293
+ .thrifty-paper .text-amber-700,
294
+ .thrifty-paper .text-amber-800,
295
+ .thrifty-paper .text-amber-900 {
296
+ color: #b45309; /* warn */
297
+ }
298
+ .thrifty-paper .text-blue-600,
299
+ .thrifty-paper .text-blue-700,
300
+ .thrifty-paper .text-blue-800,
301
+ .thrifty-paper .text-blue-900 {
302
+ color: #0f766e; /* note */
303
+ }
304
+ .thrifty-paper .text-violet-600 {
305
+ color: #9a3412; /* accent-ink */
306
+ }
307
+ .thrifty-paper .text-violet-700 {
308
+ color: #9a3412; /* accent-ink, as text-violet-600 and as it was: the darker step is the hover */
309
+ }
310
+ .thrifty-paper .text-sky-700 {
311
+ color: #1e6a8f; /* steel blue */
312
+ }
313
+ /* Chart-only tones (StackedBar, Legend): neutral is a warm grey lighter than muted (ink-mute),
314
+ violet a plum, because the accent here is clay and would sit beside warn and danger. */
315
+ .thrifty-paper .text-neutral-500 {
316
+ color: #8f857b; /* 3.24:1 on subtle, the darkest surface a chart sits on (#9a9086 was 2.80:1; a chart mark needs 3:1) */
317
+ }
318
+ .thrifty-paper .text-purple-700 {
319
+ color: #7e3fb0; /* plum, 6.51:1 on white */
320
+ }
321
+ /* The categorical scale (cat1 to cat8): one colour per category where the colour carries no
322
+ meaning, for a chart and its key. Each starts from this theme's own hue and moved only as far as
323
+ 3:1 on every surface and 0.12 apart in OKLab need. */
324
+ .thrifty-paper .text-indigo-600 {
325
+ color: #1b6096; /* cat1: steel */
326
+ }
327
+ .thrifty-paper .text-orange-600 {
328
+ color: #d2391a; /* cat2: brick */
329
+ }
330
+ .thrifty-paper .text-teal-600 {
331
+ color: #1b8177; /* cat3: teal */
332
+ }
333
+ .thrifty-paper .text-pink-600 {
334
+ color: #c4096e; /* cat4: berry */
335
+ }
336
+ .thrifty-paper .text-lime-600 {
337
+ color: #438700; /* cat5: olive */
338
+ }
339
+ .thrifty-paper .text-fuchsia-600 {
340
+ color: #7633b9; /* cat6: plum */
341
+ }
342
+ .thrifty-paper .text-rose-600 {
343
+ color: #910922; /* cat7: oxblood */
344
+ }
345
+ .thrifty-paper .text-yellow-600 {
346
+ color: #946231; /* cat8: ochre */
347
+ }
348
+ .thrifty-paper .text-red-700,
349
+ .thrifty-paper .text-red-800,
350
+ .thrifty-paper .text-red-900 {
351
+ color: #7a1220; /* danger */
352
+ }
353
+ .thrifty-paper .border-emerald-200,
354
+ .thrifty-paper .border-emerald-300 {
355
+ border-color: rgba(4, 120, 87, 0.3); /* positive */
356
+ }
357
+ .thrifty-paper .border-amber-200,
358
+ .thrifty-paper .border-amber-300 {
359
+ border-color: rgba(180, 83, 9, 0.3); /* warn */
360
+ }
361
+ .thrifty-paper .border-amber-600 {
362
+ border-color: #b45309; /* warn: the strong edge (Card attention) */
363
+ }
364
+ .thrifty-paper .border-red-200,
365
+ .thrifty-paper .aria-invalid\:border-red-200[aria-invalid="true"],
366
+ .thrifty-paper .has-aria-invalid\:border-red-200:has([aria-invalid="true"]) {
367
+ border-color: rgba(
368
+ 122,
369
+ 18,
370
+ 32,
371
+ 0.7
372
+ ); /* danger/70: an invalid field's edge, and an `aria-invalid` control's edge, 5.06:1 on white and 4.77:1 on subtle (danger/30 was 1.67:1) */
373
+ }
374
+ .thrifty-paper .border-blue-200,
375
+ .thrifty-paper .border-blue-300 {
376
+ border-color: rgba(15, 118, 110, 0.3); /* note */
377
+ }
378
+
379
+ /* Inline links: the deep clay accent ink, a step darker than the primary button's fill. Alias of
380
+ @slashsuite/ui-react's TextLink (text-violet-600, hover:text-violet-700, remapped above), kept for
381
+ consumers that still write class="link" on a bare <a>. */
382
+ .thrifty-paper .link {
383
+ color: #9a3412; /* accent-ink */
384
+ font-weight: 500;
385
+ text-underline-offset: 2px;
386
+ transition: color 0.12s ease;
387
+ }
388
+ .thrifty-paper .link:hover {
389
+ color: #7c2d12; /* accent-ink-hover */
390
+ }
391
+
392
+ /* The hero glow (Hero): three ribbons behind a landing page's title. On paper they are light, warm
393
+ tints, so the cream reads as lit rather than smudged: clay, sage and blush, all paler than the ink
394
+ could muddy. Decoration: the contrast contract holds the hero's text over all three at once. */
395
+ .thrifty-paper .bg-indigo-400\/25 {
396
+ background-color: rgba(249, 198, 168, 0.3); /* soft clay */
397
+ }
398
+ .thrifty-paper .bg-teal-400\/25 {
399
+ background-color: rgba(185, 220, 207, 0.26); /* sage */
400
+ }
401
+ .thrifty-paper .bg-rose-400\/25 {
402
+ background-color: rgba(244, 194, 207, 0.26); /* blush */
403
+ }