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