@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.
@@ -24,6 +24,7 @@
24
24
  .dark {
25
25
  color-scheme: dark;
26
26
  background-color: #181825; /* mantle: the canvas the base-coloured cards lift off */
27
+ color: #cdd6f4; /* text: the ink of a page outside AppShell */
27
28
  /* The type faces: Inter where installed, the system stack otherwise. Custom properties on the
28
29
  scope, so every `font-sans` / `font-mono` below it (AppShell's page font included) follows. */
29
30
  --font-sans:
@@ -51,6 +52,14 @@
51
52
  --hc-cat-8: #ffebb9; /* text-yellow-600 */
52
53
  }
53
54
 
55
+ /* Selected text: the primary fill under its own label, the pair the contrast contract already holds
56
+ to AA, so a highlight reads in the theme's accent rather than the browser's blue. */
57
+ .dark ::selection,
58
+ .dark::selection {
59
+ background-color: #cba6f7;
60
+ color: #11111b;
61
+ }
62
+
54
63
  /* The page canvas: AppShell paints it, so cards (base) lift off it. */
55
64
  .dark .bg-gray-50 {
56
65
  background-color: #181825; /* mantle */
@@ -105,11 +114,15 @@
105
114
  outline-color: #cdd6f4; /* text */
106
115
  }
107
116
 
108
- /* The media matte (Image framed): the white mat a QR code is scanned off. It stays white in every
117
+ /* The media matte (Image `mat="white"`): the white mat a QR code is scanned off. It stays white in every
109
118
  theme, dark ones included, as the scrim above stays black. */
110
119
  .dark .bg-white\/100 {
111
120
  background-color: #ffffff;
112
121
  }
122
+ /* The app header's ground: card. */
123
+ .dark .bg-white\/95 {
124
+ background-color: #1e1e2e;
125
+ }
113
126
 
114
127
  /* Text */
115
128
  .dark .text-slate-900,
@@ -296,13 +309,11 @@
296
309
 
297
310
  /* Coloured callouts / chips: tint backgrounds, lighten text & borders */
298
311
  .dark .bg-emerald-50,
299
- .dark .bg-emerald-50\/60,
300
- .dark .bg-emerald-100 {
312
+ .dark .bg-emerald-50\/60 {
301
313
  background-color: rgba(166, 227, 161, 0.13);
302
314
  }
303
315
  .dark .bg-amber-50,
304
- .dark .bg-amber-50\/60,
305
- .dark .bg-amber-100 {
316
+ .dark .bg-amber-50\/60 {
306
317
  background-color: rgba(249, 226, 175, 0.13);
307
318
  }
308
319
  .dark .bg-red-50 {
@@ -384,12 +395,10 @@
384
395
  .dark .text-yellow-600 {
385
396
  color: #ffebb9; /* cat8: yellow */
386
397
  }
387
- .dark .border-emerald-200,
388
- .dark .border-emerald-300 {
398
+ .dark .border-emerald-200 {
389
399
  border-color: rgba(166, 227, 161, 0.4);
390
400
  }
391
- .dark .border-amber-200,
392
- .dark .border-amber-300 {
401
+ .dark .border-amber-200 {
393
402
  border-color: rgba(249, 226, 175, 0.4);
394
403
  }
395
404
  .dark .border-amber-600 {
@@ -397,6 +406,8 @@
397
406
  }
398
407
  .dark .border-red-200,
399
408
  .dark .aria-invalid\:border-red-200[aria-invalid="true"],
409
+ .dark .user-invalid\:border-red-200:user-invalid,
410
+ .dark .has-user-invalid\:border-red-200:has(:user-invalid),
400
411
  .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,8 +417,7 @@
406
417
  .dark .border-red-400 {
407
418
  border-color: rgba(243, 139, 168, 0.45);
408
419
  }
409
- .dark .border-blue-200,
410
- .dark .border-blue-300 {
420
+ .dark .border-blue-200 {
411
421
  border-color: rgba(137, 180, 250, 0.4);
412
422
  }
413
423
 
@@ -443,3 +453,52 @@
443
453
  .dark .bg-red-50 .text-red-700 {
444
454
  color: #f7b5c7;
445
455
  }
456
+
457
+ /* Peer hues (Card hue): a set of peer cards, one hue each, told apart by hue, not status.
458
+ Each hue is this theme's own remap of the family's identity fill (bg-orange-600, bg-violet-600,
459
+ bg-sky-600, bg-emerald-600, bg-amber-600; blue is text-blue-700). The fill is 30% of it over
460
+ the card (bg-white); the edge is it mixed 50% with the line (border-slate-200). sRGB mix.
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
+ .dark .bg-orange-100 {
464
+ background-color: #4a3c40; /* orange: bg-orange-600 #fab387 at 20%, lowered from 30% so the ink keeps 4.5:1 */
465
+ }
466
+ .dark .bg-violet-100 {
467
+ background-color: #413956; /* violet: bg-violet-600 #cba6f7 at 20%, lowered from 30% so the ink keeps 4.5:1 */
468
+ }
469
+ .dark .bg-sky-100 {
470
+ background-color: #3c3e58; /* sky: bg-sky-600 #b4befe at 20%, lowered from 30% so the ink keeps 4.5:1 */
471
+ }
472
+ .dark .bg-emerald-100 {
473
+ background-color: #323c3f; /* green: bg-emerald-600 #a6e3a1 at 15%, lowered from 30% so the ink keeps 4.5:1 */
474
+ }
475
+ .dark .bg-amber-100 {
476
+ background-color: #3f3b41; /* yellow: bg-amber-600 #f9e2af at 15%, lowered from 30% so the ink keeps 4.5:1 */
477
+ }
478
+ .dark .bg-blue-100 {
479
+ background-color: #333c57; /* blue: text-blue-700 #89b4fa at 20%, lowered from 30% so the ink keeps 4.5:1 */
480
+ }
481
+ .dark .border-orange-300 {
482
+ border-color: #a07d71; /* orange */
483
+ }
484
+ .dark .border-violet-300 {
485
+ border-color: #8877a9; /* violet */
486
+ }
487
+ .dark .border-sky-300 {
488
+ border-color: #7d83ac; /* sky */
489
+ }
490
+ .dark .border-emerald-300 {
491
+ border-color: #76957e; /* green */
492
+ }
493
+ .dark .border-amber-300 {
494
+ border-color: #9f9585; /* yellow */
495
+ }
496
+ .dark .border-blue-300 {
497
+ border-color: #677eaa; /* 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
+ .dark .bg-zinc-50 {
503
+ background-color: #11111b; /* crust, a step below the mantle canvas */
504
+ }
@@ -0,0 +1,450 @@
1
+ {
2
+ "id": "catppuccin-mocha",
3
+ "scope": "dark",
4
+ "scheme": "dark",
5
+ "statusBar": "light-content",
6
+ "base": {
7
+ "backgroundColor": "#181825",
8
+ "color": "#cdd6f4",
9
+ "fontFamily": "Inter",
10
+ "headingFontFamily": null
11
+ },
12
+ "selection": {
13
+ "backgroundColor": "#cba6f7",
14
+ "color": "#11111b"
15
+ },
16
+ "utilities": {
17
+ "bg-gray-50": {
18
+ "backgroundColor": "#181825"
19
+ },
20
+ "bg-white": {
21
+ "backgroundColor": "#1e1e2e"
22
+ },
23
+ "bg-white/80": {
24
+ "backgroundColor": "rgba(30, 30, 46, 0.85)"
25
+ },
26
+ "bg-slate-50": {
27
+ "backgroundColor": "#313244"
28
+ },
29
+ "bg-slate-50/50": {
30
+ "backgroundColor": "#313244"
31
+ },
32
+ "bg-slate-50/60": {
33
+ "backgroundColor": "#313244"
34
+ },
35
+ "bg-slate-50/70": {
36
+ "backgroundColor": "#313244"
37
+ },
38
+ "bg-slate-100": {
39
+ "backgroundColor": "#3b3d50"
40
+ },
41
+ "bg-slate-200": {
42
+ "backgroundColor": "#45475a"
43
+ },
44
+ "bg-slate-900": {
45
+ "backgroundColor": "#313244"
46
+ },
47
+ "bg-black/90": {
48
+ "backgroundColor": "rgba(17, 17, 27, 0.94)"
49
+ },
50
+ "text-white": {
51
+ "color": "#cdd6f4"
52
+ },
53
+ "text-white/70": {
54
+ "color": "#a6adc8"
55
+ },
56
+ "bg-white/100": {
57
+ "backgroundColor": "#ffffff"
58
+ },
59
+ "bg-white/95": {
60
+ "backgroundColor": "#1e1e2e"
61
+ },
62
+ "text-slate-900": {
63
+ "color": "#cdd6f4"
64
+ },
65
+ "text-slate-800": {
66
+ "color": "#cdd6f4"
67
+ },
68
+ "text-slate-700": {
69
+ "color": "#bac2de"
70
+ },
71
+ "text-slate-600": {
72
+ "color": "#bac2de"
73
+ },
74
+ "text-slate-500": {
75
+ "color": "#a6adc8"
76
+ },
77
+ "text-slate-400": {
78
+ "color": "#969cb5"
79
+ },
80
+ "text-slate-300": {
81
+ "color": "#6c7086"
82
+ },
83
+ "border-slate-100": {
84
+ "borderColor": "#282839"
85
+ },
86
+ "border-slate-50": {
87
+ "borderColor": "#313244"
88
+ },
89
+ "border-slate-200": {
90
+ "borderColor": "#45475a"
91
+ },
92
+ "border-slate-200/70": {
93
+ "borderColor": "#45475a"
94
+ },
95
+ "border-slate-300": {
96
+ "borderColor": "#7f849c"
97
+ },
98
+ "border-slate-900": {
99
+ "borderColor": "#cdd6f4"
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": "#585b70"
115
+ },
116
+ "bg-violet-600": {
117
+ "backgroundColor": "#cba6f7"
118
+ },
119
+ "text-violet-50": {
120
+ "color": "#11111b"
121
+ },
122
+ "border-violet-600": {
123
+ "borderColor": "#cba6f7"
124
+ },
125
+ "outline-violet-600": {
126
+ "outlineColor": "#cba6f7"
127
+ },
128
+ "accent-violet-600": {
129
+ "accentColor": "#cba6f7"
130
+ },
131
+ "bg-red-600": {
132
+ "backgroundColor": "#f38ba8"
133
+ },
134
+ "text-red-50": {
135
+ "color": "#11111b"
136
+ },
137
+ "border-red-600": {
138
+ "borderColor": "#f38ba8"
139
+ },
140
+ "text-emerald-50": {
141
+ "color": "#11111b"
142
+ },
143
+ "border-emerald-600": {
144
+ "borderColor": "#a6e3a1"
145
+ },
146
+ "bg-orange-600": {
147
+ "backgroundColor": "#fab387"
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(203, 166, 247, 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": "#dfc9fa"
226
+ },
227
+ "text-violet-700": {
228
+ "color": "#dfc9fa"
229
+ },
230
+ "text-sky-700": {
231
+ "color": "#89dceb"
232
+ },
233
+ "text-neutral-500": {
234
+ "color": "#7f849c"
235
+ },
236
+ "text-purple-700": {
237
+ "color": "#cba6f7"
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": "#dfc9fa",
286
+ "fontWeight": "500"
287
+ },
288
+ "bg-indigo-400/25": {
289
+ "backgroundColor": "rgba(203, 166, 247, 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": "#4a3c40"
299
+ },
300
+ "bg-violet-100": {
301
+ "backgroundColor": "#413956"
302
+ },
303
+ "bg-sky-100": {
304
+ "backgroundColor": "#3c3e58"
305
+ },
306
+ "bg-emerald-100": {
307
+ "backgroundColor": "#323c3f"
308
+ },
309
+ "bg-amber-100": {
310
+ "backgroundColor": "#3f3b41"
311
+ },
312
+ "bg-blue-100": {
313
+ "backgroundColor": "#333c57"
314
+ },
315
+ "border-orange-300": {
316
+ "borderColor": "#a07d71"
317
+ },
318
+ "border-violet-300": {
319
+ "borderColor": "#8877a9"
320
+ },
321
+ "border-sky-300": {
322
+ "borderColor": "#7d83ac"
323
+ },
324
+ "border-emerald-300": {
325
+ "borderColor": "#76957e"
326
+ },
327
+ "border-amber-300": {
328
+ "borderColor": "#9f9585"
329
+ },
330
+ "border-blue-300": {
331
+ "borderColor": "#677eaa"
332
+ },
333
+ "bg-zinc-50": {
334
+ "backgroundColor": "#11111b"
335
+ }
336
+ },
337
+ "states": {
338
+ "pressed": {
339
+ "bg-white/10": {
340
+ "backgroundColor": "rgba(205, 214, 244, 0.1)"
341
+ },
342
+ "bg-violet-700": {
343
+ "backgroundColor": "#b4befe"
344
+ },
345
+ "text-violet-700": {
346
+ "color": "#b7c0fe"
347
+ },
348
+ "bg-violet-50": {
349
+ "backgroundColor": "rgba(203, 166, 247, 0.14)"
350
+ },
351
+ "border-violet-400": {
352
+ "borderColor": "rgba(203, 166, 247, 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": "#262739"
368
+ },
369
+ "bg-slate-100": {
370
+ "backgroundColor": "#313244"
371
+ },
372
+ "link": {
373
+ "color": "#b7c0fe"
374
+ }
375
+ },
376
+ "focused": {
377
+ "outline-white": {
378
+ "outlineColor": "#cdd6f4"
379
+ },
380
+ "outline-violet-600": {
381
+ "outlineColor": "#cba6f7"
382
+ }
383
+ },
384
+ "placeholderTextColor": {
385
+ "text-slate-400": {
386
+ "placeholderTextColor": "#969cb5"
387
+ }
388
+ },
389
+ "scrim": {
390
+ "bg-slate-900/35": {
391
+ "backgroundColor": "rgba(17, 17, 27, 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": "#cba6f7"
403
+ }
404
+ }
405
+ },
406
+ "within": {
407
+ "bg-slate-50": {
408
+ "text-red-700": {
409
+ "color": "#f7b5c7"
410
+ }
411
+ },
412
+ "bg-blue-50": {
413
+ "text-red-700": {
414
+ "color": "#f7b5c7"
415
+ }
416
+ },
417
+ "bg-emerald-50": {
418
+ "text-red-700": {
419
+ "color": "#f7b5c7"
420
+ }
421
+ },
422
+ "bg-amber-50": {
423
+ "text-red-700": {
424
+ "color": "#f7b5c7"
425
+ }
426
+ },
427
+ "bg-red-50": {
428
+ "text-red-700": {
429
+ "color": "#f7b5c7"
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": "#45475a",
445
+ "borderColor": "#313244",
446
+ "color": "#9399b2"
447
+ }
448
+ }
449
+ ]
450
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slashsuite/themes",
3
- "version": "0.4.1",
3
+ "version": "0.5.1",
4
4
  "description": "The UISlash themes: one CSS file per theme, each remapping the Tailwind utilities @slashsuite/ui-react is written against.",
5
5
  "keywords": [
6
6
  "dark-mode",
@@ -27,6 +27,7 @@
27
27
  },
28
28
  "files": [
29
29
  "*.css",
30
+ "*.native.json",
30
31
  "NOTICE",
31
32
  "LICENSE"
32
33
  ],
@@ -36,13 +37,15 @@
36
37
  ],
37
38
  "exports": {
38
39
  "./*.css": "./*.css",
40
+ "./*.native.json": "./*.native.json",
39
41
  "./package.json": "./package.json"
40
42
  },
41
43
  "scripts": {
42
44
  "typecheck": "tsc --noEmit",
43
45
  "lint": "oxlint -c ../.oxlintrc.json --type-aware --deny-warnings && bun ../scripts/check-slop.ts",
44
46
  "test": "vitest run",
45
- "pack-check": "npm pack --dry-run --json --ignore-scripts | bun scripts/pack-files.ts"
47
+ "pack-check": "npm pack --dry-run --json --ignore-scripts | bun scripts/pack-files.ts",
48
+ "theme-native": "bun scripts/theme-native.ts"
46
49
  },
47
50
  "devDependencies": {
48
51
  "@types/bun": "1.4.4",