@slashsuite/themes 0.5.0 → 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.
package/README.md CHANGED
@@ -4,6 +4,12 @@ The UISlash themes, all in one package. Each theme is one CSS file with its own
4
4
  each remaps the Tailwind slate/colour utilities that `@slashsuite/ui-react` is written against to its
5
5
  own colours. Each also ships a `.link` class.
6
6
 
7
+ Beside each CSS file is `<id>.native.json`, the same theme for the native renderer: every palette
8
+ utility mapped to its colours, the pressed, focused, placeholder and scrim slots, the heading face and
9
+ any colour a heading takes, and the status bar style per scheme. It is generated from the CSS file (`bunx moon run themes:theme-native`) and never
10
+ edited by hand; `themes.test.ts` fails on a stale one. Import it as
11
+ `@slashsuite/themes/<id>.native.json`.
12
+
7
13
  | Theme | File | Scope | |
8
14
  | --- | --- | --- | --- |
9
15
  | Catppuccin Mocha | `catppuccin-mocha.css` | `.dark` | dark; also declares the class-based `dark` variant |
@@ -49,7 +55,7 @@ in its mono stack; the site that installs it loads those font files itself, as f
49
55
 
50
56
  ## How to add a theme
51
57
 
52
- Add one CSS file here, `<id>.css`. Its file name is the theme's id, and the id never changes once it
58
+ Add one CSS file here, `<id>.css`, and generate its `<id>.native.json` beside it. Its file name is the theme's id, and the id never changes once it
53
59
  has baselines. Nothing else registers it: the package's exports and `files` are globs, and Storybook,
54
60
  the docs and the e2e all read this folder. `themes.test.ts` is the contract, and it reads every CSS
55
61
  file here. Run it with `bunx moon run themes:test`. The repo's
@@ -0,0 +1,454 @@
1
+ {
2
+ "id": "catppuccin-latte",
3
+ "scope": "latte",
4
+ "scheme": "light",
5
+ "statusBar": "dark-content",
6
+ "base": {
7
+ "backgroundColor": "#eff1f5",
8
+ "color": "#4c4f69",
9
+ "fontFamily": "Inter",
10
+ "headingFontFamily": null
11
+ },
12
+ "selection": {
13
+ "backgroundColor": "#8839ef",
14
+ "color": "#ffffff"
15
+ },
16
+ "utilities": {
17
+ "bg-gray-50": {
18
+ "backgroundColor": "#eff1f5"
19
+ },
20
+ "bg-white": {
21
+ "backgroundColor": "#ffffff"
22
+ },
23
+ "bg-white/80": {
24
+ "backgroundColor": "rgba(255, 255, 255, 0.85)"
25
+ },
26
+ "bg-slate-50": {
27
+ "backgroundColor": "#e6e9ef"
28
+ },
29
+ "bg-slate-50/50": {
30
+ "backgroundColor": "#e6e9ef"
31
+ },
32
+ "bg-slate-50/60": {
33
+ "backgroundColor": "#e6e9ef"
34
+ },
35
+ "bg-slate-50/70": {
36
+ "backgroundColor": "#e6e9ef"
37
+ },
38
+ "bg-slate-100": {
39
+ "backgroundColor": "#dce0e8"
40
+ },
41
+ "bg-slate-200": {
42
+ "backgroundColor": "#ccd0da"
43
+ },
44
+ "bg-slate-900": {
45
+ "backgroundColor": "#4c4f69"
46
+ },
47
+ "bg-black/90": {
48
+ "backgroundColor": "rgba(17, 17, 27, 0.94)"
49
+ },
50
+ "text-white": {
51
+ "color": "#eff1f5"
52
+ },
53
+ "text-white/70": {
54
+ "color": "rgba(239, 241, 245, 0.72)"
55
+ },
56
+ "bg-white/100": {
57
+ "backgroundColor": "#ffffff"
58
+ },
59
+ "bg-white/95": {
60
+ "backgroundColor": "#ffffff"
61
+ },
62
+ "text-slate-900": {
63
+ "color": "#4c4f69"
64
+ },
65
+ "text-slate-800": {
66
+ "color": "#4c4f69"
67
+ },
68
+ "text-slate-700": {
69
+ "color": "#5c5f77"
70
+ },
71
+ "text-slate-600": {
72
+ "color": "#5c5f77"
73
+ },
74
+ "text-slate-500": {
75
+ "color": "#616277"
76
+ },
77
+ "text-slate-400": {
78
+ "color": "#64677d"
79
+ },
80
+ "text-slate-300": {
81
+ "color": "#8c8fa1"
82
+ },
83
+ "border-slate-50": {
84
+ "borderColor": "#e6e9ef"
85
+ },
86
+ "border-slate-100": {
87
+ "borderColor": "#dce0e8"
88
+ },
89
+ "border-slate-200": {
90
+ "borderColor": "#ccd0da"
91
+ },
92
+ "border-slate-200/70": {
93
+ "borderColor": "#ccd0da"
94
+ },
95
+ "border-slate-300": {
96
+ "borderColor": "#828597"
97
+ },
98
+ "border-slate-900": {
99
+ "borderColor": "#4c4f69"
100
+ },
101
+ "text-emerald-600": {
102
+ "color": "#40a02b"
103
+ },
104
+ "text-red-600": {
105
+ "color": "#d20f39"
106
+ },
107
+ "bg-emerald-500": {
108
+ "backgroundColor": "#40a02b"
109
+ },
110
+ "bg-red-500": {
111
+ "backgroundColor": "#d20f39"
112
+ },
113
+ "bg-slate-300": {
114
+ "backgroundColor": "#bcc0cc"
115
+ },
116
+ "bg-violet-600": {
117
+ "backgroundColor": "#8839ef"
118
+ },
119
+ "text-violet-50": {
120
+ "color": "#ffffff"
121
+ },
122
+ "border-violet-600": {
123
+ "borderColor": "#8839ef"
124
+ },
125
+ "outline-violet-600": {
126
+ "outlineColor": "#8839ef"
127
+ },
128
+ "accent-violet-600": {
129
+ "accentColor": "#8839ef"
130
+ },
131
+ "bg-red-600": {
132
+ "backgroundColor": "#d20f39"
133
+ },
134
+ "text-red-50": {
135
+ "color": "#ffffff"
136
+ },
137
+ "border-red-600": {
138
+ "borderColor": "#d20f39"
139
+ },
140
+ "text-emerald-50": {
141
+ "color": "#ffffff"
142
+ },
143
+ "border-emerald-600": {
144
+ "borderColor": "#3c9827"
145
+ },
146
+ "bg-orange-600": {
147
+ "backgroundColor": "#c5530b"
148
+ },
149
+ "bg-cyan-600": {
150
+ "backgroundColor": "#208192"
151
+ },
152
+ "bg-emerald-600": {
153
+ "backgroundColor": "#338621"
154
+ },
155
+ "bg-sky-600": {
156
+ "backgroundColor": "#5e6dd1"
157
+ },
158
+ "bg-pink-600": {
159
+ "backgroundColor": "#ad5996"
160
+ },
161
+ "bg-amber-600": {
162
+ "backgroundColor": "#a6681d"
163
+ },
164
+ "bg-emerald-50": {
165
+ "backgroundColor": "rgba(64, 160, 43, 0.06)"
166
+ },
167
+ "bg-emerald-50/60": {
168
+ "backgroundColor": "rgba(64, 160, 43, 0.06)"
169
+ },
170
+ "bg-amber-50": {
171
+ "backgroundColor": "rgba(223, 142, 29, 0.06)"
172
+ },
173
+ "bg-amber-50/60": {
174
+ "backgroundColor": "rgba(223, 142, 29, 0.06)"
175
+ },
176
+ "bg-red-50": {
177
+ "backgroundColor": "rgba(210, 15, 57, 0.06)"
178
+ },
179
+ "bg-blue-50": {
180
+ "backgroundColor": "rgba(30, 102, 245, 0.06)"
181
+ },
182
+ "bg-violet-50": {
183
+ "backgroundColor": "rgba(136, 57, 239, 0.06)"
184
+ },
185
+ "bg-sky-50": {
186
+ "backgroundColor": "rgba(4, 165, 229, 0.06)"
187
+ },
188
+ "text-emerald-700": {
189
+ "color": "#276c1f"
190
+ },
191
+ "text-emerald-800": {
192
+ "color": "#276c1f"
193
+ },
194
+ "text-amber-700": {
195
+ "color": "#8c591d"
196
+ },
197
+ "text-amber-800": {
198
+ "color": "#8c591d"
199
+ },
200
+ "text-amber-900": {
201
+ "color": "#8c591d"
202
+ },
203
+ "text-red-700": {
204
+ "color": "#c00f33"
205
+ },
206
+ "text-red-800": {
207
+ "color": "#c00f33"
208
+ },
209
+ "text-red-900": {
210
+ "color": "#c00f33"
211
+ },
212
+ "text-blue-600": {
213
+ "color": "#1e5bd4"
214
+ },
215
+ "text-blue-700": {
216
+ "color": "#1e5bd4"
217
+ },
218
+ "text-blue-800": {
219
+ "color": "#1e5bd4"
220
+ },
221
+ "text-blue-900": {
222
+ "color": "#1e5bd4"
223
+ },
224
+ "text-violet-600": {
225
+ "color": "#7828df"
226
+ },
227
+ "text-violet-700": {
228
+ "color": "#7828df"
229
+ },
230
+ "text-sky-700": {
231
+ "color": "#046b96"
232
+ },
233
+ "text-neutral-500": {
234
+ "color": "#828597"
235
+ },
236
+ "text-purple-700": {
237
+ "color": "#8839ef"
238
+ },
239
+ "text-indigo-600": {
240
+ "color": "#1a60f8"
241
+ },
242
+ "text-orange-600": {
243
+ "color": "#e94e05"
244
+ },
245
+ "text-teal-600": {
246
+ "color": "#2a8c98"
247
+ },
248
+ "text-pink-600": {
249
+ "color": "#c959a3"
250
+ },
251
+ "text-lime-600": {
252
+ "color": "#429305"
253
+ },
254
+ "text-fuchsia-600": {
255
+ "color": "#892bef"
256
+ },
257
+ "text-rose-600": {
258
+ "color": "#cb023e"
259
+ },
260
+ "text-yellow-600": {
261
+ "color": "#b07704"
262
+ },
263
+ "border-emerald-200": {
264
+ "borderColor": "rgba(64, 160, 43, 0.4)"
265
+ },
266
+ "border-amber-200": {
267
+ "borderColor": "rgba(223, 142, 29, 0.4)"
268
+ },
269
+ "border-amber-600": {
270
+ "borderColor": "#bb761d"
271
+ },
272
+ "border-red-200": {
273
+ "borderColor": "rgba(210, 15, 57, 0.65)"
274
+ },
275
+ "border-red-300": {
276
+ "borderColor": "rgba(210, 15, 57, 0.45)"
277
+ },
278
+ "border-red-400": {
279
+ "borderColor": "rgba(210, 15, 57, 0.45)"
280
+ },
281
+ "border-blue-200": {
282
+ "borderColor": "rgba(30, 102, 245, 0.4)"
283
+ },
284
+ "link": {
285
+ "color": "#7828df",
286
+ "fontWeight": "500"
287
+ },
288
+ "bg-indigo-400/25": {
289
+ "backgroundColor": "rgba(136, 57, 239, 0.05)"
290
+ },
291
+ "bg-teal-400/25": {
292
+ "backgroundColor": "rgba(23, 146, 153, 0.045)"
293
+ },
294
+ "bg-rose-400/25": {
295
+ "backgroundColor": "rgba(234, 118, 203, 0.05)"
296
+ },
297
+ "bg-orange-100": {
298
+ "backgroundColor": "#f3ddce"
299
+ },
300
+ "bg-violet-100": {
301
+ "backgroundColor": "#ede1fd"
302
+ },
303
+ "bg-sky-100": {
304
+ "backgroundColor": "#dfe2f6"
305
+ },
306
+ "bg-emerald-100": {
307
+ "backgroundColor": "#d6e7d3"
308
+ },
309
+ "bg-amber-100": {
310
+ "backgroundColor": "#ede1d2"
311
+ },
312
+ "bg-blue-100": {
313
+ "backgroundColor": "#dde6f9"
314
+ },
315
+ "border-orange-300": {
316
+ "borderColor": "#a15227"
317
+ },
318
+ "border-violet-300": {
319
+ "borderColor": "#7640c7"
320
+ },
321
+ "border-sky-300": {
322
+ "borderColor": "#5964b2"
323
+ },
324
+ "border-emerald-300": {
325
+ "borderColor": "#3b7637"
326
+ },
327
+ "border-amber-300": {
328
+ "borderColor": "#8b6134"
329
+ },
330
+ "border-blue-300": {
331
+ "borderColor": "#2c57b4"
332
+ },
333
+ "bg-zinc-50": {
334
+ "backgroundColor": "#ffffff"
335
+ }
336
+ },
337
+ "states": {
338
+ "pressed": {
339
+ "bg-white/10": {
340
+ "backgroundColor": "rgba(239, 241, 245, 0.12)"
341
+ },
342
+ "bg-violet-700": {
343
+ "backgroundColor": "#5e6dd1"
344
+ },
345
+ "text-violet-700": {
346
+ "color": "#515bab"
347
+ },
348
+ "bg-violet-50": {
349
+ "backgroundColor": "rgba(136, 57, 239, 0.06)"
350
+ },
351
+ "border-violet-400": {
352
+ "borderColor": "rgba(136, 57, 239, 0.75)"
353
+ },
354
+ "bg-red-700": {
355
+ "backgroundColor": "#d43f4d"
356
+ },
357
+ "bg-red-50": {
358
+ "backgroundColor": "rgba(210, 15, 57, 0.06)"
359
+ },
360
+ "bg-emerald-700": {
361
+ "backgroundColor": "#178289"
362
+ },
363
+ "bg-emerald-50": {
364
+ "backgroundColor": "rgba(64, 160, 43, 0.06)"
365
+ },
366
+ "bg-slate-50": {
367
+ "backgroundColor": "#e6e9ef"
368
+ },
369
+ "bg-slate-100": {
370
+ "backgroundColor": "#dce0e8"
371
+ },
372
+ "link": {
373
+ "color": "#515bab"
374
+ }
375
+ },
376
+ "focused": {
377
+ "outline-white": {
378
+ "outlineColor": "#eff1f5"
379
+ },
380
+ "outline-violet-600": {
381
+ "outlineColor": "#8839ef"
382
+ }
383
+ },
384
+ "placeholderTextColor": {
385
+ "text-slate-400": {
386
+ "placeholderTextColor": "#64677d"
387
+ }
388
+ },
389
+ "scrim": {
390
+ "bg-slate-900/35": {
391
+ "backgroundColor": "rgba(76, 79, 105, 0.35)"
392
+ }
393
+ },
394
+ "disabled": {},
395
+ "invalid": {
396
+ "border-red-200": {
397
+ "borderColor": "rgba(210, 15, 57, 0.65)"
398
+ }
399
+ },
400
+ "target": {
401
+ "outline-violet-600": {
402
+ "outlineColor": "#8839ef"
403
+ }
404
+ }
405
+ },
406
+ "within": {
407
+ "bg-slate-50": {
408
+ "text-red-700": {
409
+ "color": "#b90e31"
410
+ }
411
+ },
412
+ "bg-blue-50": {
413
+ "text-red-700": {
414
+ "color": "#b90e31"
415
+ }
416
+ },
417
+ "bg-emerald-50": {
418
+ "text-red-700": {
419
+ "color": "#b90e31"
420
+ }
421
+ },
422
+ "bg-amber-50": {
423
+ "text-red-700": {
424
+ "color": "#b90e31"
425
+ }
426
+ },
427
+ "bg-red-50": {
428
+ "text-red-700": {
429
+ "color": "#b90e31"
430
+ }
431
+ }
432
+ },
433
+ "headings": {
434
+ "text-slate-900": {
435
+ "color": "#232634"
436
+ }
437
+ },
438
+ "compounds": [
439
+ {
440
+ "utility": "disabled:opacity-50",
441
+ "requiresAny": [
442
+ "bg-violet-600",
443
+ "bg-emerald-600",
444
+ "bg-red-600"
445
+ ],
446
+ "style": {
447
+ "opacity": 1,
448
+ "backgroundColor": "#ccd0da",
449
+ "borderColor": "#bcc0cc",
450
+ "color": "#6c6f85"
451
+ }
452
+ }
453
+ ]
454
+ }