@flairstudio/kit 0.0.0-stage → 0.2.0-beta.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/CHANGELOG.md +15 -0
- package/LICENSE +24 -0
- package/README.md +227 -2
- package/TOKENS.md +195 -0
- package/dist/fonts/OFL.txt +93 -0
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/fonts.css +19 -0
- package/dist/preview-host.d.ts +39 -0
- package/dist/preview-host.js +94 -0
- package/dist/preview.d.ts +37 -0
- package/dist/preview.js +211 -0
- package/dist/tokens.css +193 -0
- package/dist/tokens.json +602 -0
- package/package.json +25 -4
package/dist/tokens.json
ADDED
|
@@ -0,0 +1,602 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0-beta.0",
|
|
3
|
+
"colors": {
|
|
4
|
+
"names": [
|
|
5
|
+
"background",
|
|
6
|
+
"card",
|
|
7
|
+
"muted",
|
|
8
|
+
"secondary",
|
|
9
|
+
"foreground",
|
|
10
|
+
"card-foreground",
|
|
11
|
+
"muted-foreground",
|
|
12
|
+
"on-secondary",
|
|
13
|
+
"border",
|
|
14
|
+
"outline",
|
|
15
|
+
"primary",
|
|
16
|
+
"on-primary",
|
|
17
|
+
"primary-hover",
|
|
18
|
+
"primary-pressed",
|
|
19
|
+
"primary-text",
|
|
20
|
+
"ring",
|
|
21
|
+
"tertiary",
|
|
22
|
+
"on-tertiary",
|
|
23
|
+
"accent-2",
|
|
24
|
+
"glow",
|
|
25
|
+
"destructive",
|
|
26
|
+
"on-destructive",
|
|
27
|
+
"chart-1",
|
|
28
|
+
"chart-2",
|
|
29
|
+
"chart-3",
|
|
30
|
+
"chart-4",
|
|
31
|
+
"brand",
|
|
32
|
+
"gradient-1",
|
|
33
|
+
"gradient-2",
|
|
34
|
+
"gradient-3"
|
|
35
|
+
],
|
|
36
|
+
"descriptions": {
|
|
37
|
+
"background": "The page itself",
|
|
38
|
+
"card": "A raised surface on the page: cards, panels, dialogs",
|
|
39
|
+
"muted": "A quiet surface: wells, inputs, inactive tabs",
|
|
40
|
+
"secondary": "A tinted surface for bands and highlighted areas",
|
|
41
|
+
"foreground": "Body text and icons on any of the four surfaces",
|
|
42
|
+
"card-foreground": "Text on a card; the same as foreground today",
|
|
43
|
+
"muted-foreground": "Secondary text: captions, hints, metadata",
|
|
44
|
+
"on-secondary": "Text on the secondary surface",
|
|
45
|
+
"border": "Hairlines and dividers; decorative, so not held to a contrast ratio",
|
|
46
|
+
"outline": "Borders a person needs to see, such as a field’s edge, on any surface",
|
|
47
|
+
"primary": "The main accent as a fill: buttons, selected states",
|
|
48
|
+
"on-primary": "Text and icons on a primary fill",
|
|
49
|
+
"primary-hover": "A primary fill while hovered",
|
|
50
|
+
"primary-pressed": "A primary fill while pressed",
|
|
51
|
+
"primary-text": "The main accent as text and links, on any surface",
|
|
52
|
+
"ring": "The focus ring; the same as primary-text",
|
|
53
|
+
"tertiary": "A third accent, as a fill",
|
|
54
|
+
"on-tertiary": "Text on a tertiary fill",
|
|
55
|
+
"accent-2": "A second accent, as a fill or a mark",
|
|
56
|
+
"glow": "A soft decorative colour for washes and art",
|
|
57
|
+
"destructive": "Errors and destructive actions, as text or a fill",
|
|
58
|
+
"on-destructive": "Text on a destructive fill",
|
|
59
|
+
"chart-1": "The first data series",
|
|
60
|
+
"chart-2": "The second data series",
|
|
61
|
+
"chart-3": "The third data series",
|
|
62
|
+
"chart-4": "The fourth data series",
|
|
63
|
+
"brand": "The theme’s seed colour, exactly as chosen",
|
|
64
|
+
"gradient-1": "The first stop of the theme’s gradient",
|
|
65
|
+
"gradient-2": "The middle stop of the theme’s gradient",
|
|
66
|
+
"gradient-3": "The last stop of the theme’s gradient"
|
|
67
|
+
},
|
|
68
|
+
"light": {
|
|
69
|
+
"background": "#f6faf9",
|
|
70
|
+
"card": "#ffffff",
|
|
71
|
+
"muted": "#ecf2f1",
|
|
72
|
+
"secondary": "#f0e5ed",
|
|
73
|
+
"foreground": "#191f1e",
|
|
74
|
+
"card-foreground": "#191f1e",
|
|
75
|
+
"muted-foreground": "#5a6563",
|
|
76
|
+
"on-secondary": "#6f1362",
|
|
77
|
+
"border": "#ced6d5",
|
|
78
|
+
"outline": "#727e7c",
|
|
79
|
+
"primary": "#0d9488",
|
|
80
|
+
"on-primary": "#000000",
|
|
81
|
+
"primary-hover": "#14a093",
|
|
82
|
+
"primary-pressed": "#1eab9d",
|
|
83
|
+
"primary-text": "#09746a",
|
|
84
|
+
"ring": "#09746a",
|
|
85
|
+
"tertiary": "#b93008",
|
|
86
|
+
"on-tertiary": "#ffffff",
|
|
87
|
+
"accent-2": "#ec14d2",
|
|
88
|
+
"glow": "#f6b8a8",
|
|
89
|
+
"destructive": "#c6101a",
|
|
90
|
+
"on-destructive": "#ffffff",
|
|
91
|
+
"chart-1": "#0a8b80",
|
|
92
|
+
"chart-2": "#b30f9f",
|
|
93
|
+
"chart-3": "#95290c",
|
|
94
|
+
"chart-4": "#36403e",
|
|
95
|
+
"brand": "#0d9488",
|
|
96
|
+
"gradient-1": "#0d9488",
|
|
97
|
+
"gradient-2": "#ec14d2",
|
|
98
|
+
"gradient-3": "#f6b8a8"
|
|
99
|
+
},
|
|
100
|
+
"dark": {
|
|
101
|
+
"background": "#101413",
|
|
102
|
+
"card": "#191f1e",
|
|
103
|
+
"muted": "#262d2c",
|
|
104
|
+
"secondary": "#583050",
|
|
105
|
+
"foreground": "#edf1f0",
|
|
106
|
+
"card-foreground": "#edf1f0",
|
|
107
|
+
"muted-foreground": "#b1bbb9",
|
|
108
|
+
"on-secondary": "#f7e2f2",
|
|
109
|
+
"border": "#485250",
|
|
110
|
+
"outline": "#929e9c",
|
|
111
|
+
"primary": "#0d9488",
|
|
112
|
+
"on-primary": "#000000",
|
|
113
|
+
"primary-hover": "#14a093",
|
|
114
|
+
"primary-pressed": "#1eab9d",
|
|
115
|
+
"primary-text": "#30bdaf",
|
|
116
|
+
"ring": "#30bdaf",
|
|
117
|
+
"tertiary": "#f6a48f",
|
|
118
|
+
"on-tertiary": "#000000",
|
|
119
|
+
"accent-2": "#ed13d2",
|
|
120
|
+
"glow": "#f6b8a8",
|
|
121
|
+
"destructive": "#f7a39a",
|
|
122
|
+
"on-destructive": "#000000",
|
|
123
|
+
"chart-1": "#20aea0",
|
|
124
|
+
"chart-2": "#f799e3",
|
|
125
|
+
"chart-3": "#f5cbc0",
|
|
126
|
+
"chart-4": "#727f7d",
|
|
127
|
+
"brand": "#0d9488",
|
|
128
|
+
"gradient-1": "#0d9488",
|
|
129
|
+
"gradient-2": "#ed13d2",
|
|
130
|
+
"gradient-3": "#f6b8a8"
|
|
131
|
+
},
|
|
132
|
+
"gradientAngle": "110deg",
|
|
133
|
+
"source": "Flair Design default theme · DEFAULT_SPEC · seed #0d9488 · split harmony · engine version 2 · Flair commit 209d933"
|
|
134
|
+
},
|
|
135
|
+
"tokens": [
|
|
136
|
+
{
|
|
137
|
+
"name": "--space-1",
|
|
138
|
+
"category": "space",
|
|
139
|
+
"value": "0.25rem",
|
|
140
|
+
"description": "4px"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "--space-2",
|
|
144
|
+
"category": "space",
|
|
145
|
+
"value": "0.5rem",
|
|
146
|
+
"description": "8px"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "--space-3",
|
|
150
|
+
"category": "space",
|
|
151
|
+
"value": "0.75rem",
|
|
152
|
+
"description": "12px"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "--space-4",
|
|
156
|
+
"category": "space",
|
|
157
|
+
"value": "1rem",
|
|
158
|
+
"description": "16px"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "--space-5",
|
|
162
|
+
"category": "space",
|
|
163
|
+
"value": "1.25rem",
|
|
164
|
+
"description": "20px"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "--space-6",
|
|
168
|
+
"category": "space",
|
|
169
|
+
"value": "1.5rem",
|
|
170
|
+
"description": "24px"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "--space-8",
|
|
174
|
+
"category": "space",
|
|
175
|
+
"value": "2rem",
|
|
176
|
+
"description": "32px"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "--space-10",
|
|
180
|
+
"category": "space",
|
|
181
|
+
"value": "2.5rem",
|
|
182
|
+
"description": "40px"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "--space-12",
|
|
186
|
+
"category": "space",
|
|
187
|
+
"value": "3rem",
|
|
188
|
+
"description": "48px"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "--space-16",
|
|
192
|
+
"category": "space",
|
|
193
|
+
"value": "4rem",
|
|
194
|
+
"description": "64px"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "--space-gutter",
|
|
198
|
+
"category": "space",
|
|
199
|
+
"value": "clamp(1.25rem, 5vw, 5rem)",
|
|
200
|
+
"description": "Page side padding; grows with the screen from 20px to 80px"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "--space-section",
|
|
204
|
+
"category": "space",
|
|
205
|
+
"value": "clamp(3rem, 1.5rem + 5vw, 6rem)",
|
|
206
|
+
"description": "Space between page sections; grows from 48px to 96px"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "--space-section-tight",
|
|
210
|
+
"category": "space",
|
|
211
|
+
"value": "clamp(2.25rem, 1.125rem + 3.75vw, 4.5rem)",
|
|
212
|
+
"description": "Space between closely related sections; about three-quarters of --space-section"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "--text-12",
|
|
216
|
+
"category": "text",
|
|
217
|
+
"value": "0.75rem",
|
|
218
|
+
"description": "Small print, labels"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "--text-14",
|
|
222
|
+
"category": "text",
|
|
223
|
+
"value": "0.875rem",
|
|
224
|
+
"description": "Secondary text, dense UI"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "--text-16",
|
|
228
|
+
"category": "text",
|
|
229
|
+
"value": "1rem",
|
|
230
|
+
"description": "Body text"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "--text-18",
|
|
234
|
+
"category": "text",
|
|
235
|
+
"value": "1.125rem",
|
|
236
|
+
"description": "Lead paragraphs, small headings"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "--text-20",
|
|
240
|
+
"category": "text",
|
|
241
|
+
"value": "1.25rem",
|
|
242
|
+
"description": "Headings between 18 and 24"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "--text-24",
|
|
246
|
+
"category": "text",
|
|
247
|
+
"value": "1.5rem",
|
|
248
|
+
"description": "Section headings"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "--text-32",
|
|
252
|
+
"category": "text",
|
|
253
|
+
"value": "2rem",
|
|
254
|
+
"description": "Page headings; larger display sizes belong to each site"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "--radius-sm",
|
|
258
|
+
"category": "radius",
|
|
259
|
+
"value": "4px",
|
|
260
|
+
"description": "Small controls, chips"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "--radius-md",
|
|
264
|
+
"category": "radius",
|
|
265
|
+
"value": "8px",
|
|
266
|
+
"description": "Buttons, fields"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "--radius-lg",
|
|
270
|
+
"category": "radius",
|
|
271
|
+
"value": "12px",
|
|
272
|
+
"description": "Cards, panels"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "--radius-full",
|
|
276
|
+
"category": "radius",
|
|
277
|
+
"value": "9999px",
|
|
278
|
+
"description": "Pills and circles"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "--z-raised",
|
|
282
|
+
"category": "z",
|
|
283
|
+
"value": "10",
|
|
284
|
+
"description": "Content lifted above its neighbours"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "--z-sticky",
|
|
288
|
+
"category": "z",
|
|
289
|
+
"value": "20",
|
|
290
|
+
"description": "Sticky headers and bars"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "--z-overlay",
|
|
294
|
+
"category": "z",
|
|
295
|
+
"value": "40",
|
|
296
|
+
"description": "Menus, dialogs and their scrims"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "--z-toast",
|
|
300
|
+
"category": "z",
|
|
301
|
+
"value": "100",
|
|
302
|
+
"description": "Toasts and notices"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "--z-tooltip",
|
|
306
|
+
"category": "z",
|
|
307
|
+
"value": "200",
|
|
308
|
+
"description": "Tooltips, above everything"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "--dur-press",
|
|
312
|
+
"category": "dur",
|
|
313
|
+
"value": "120ms",
|
|
314
|
+
"description": "Press feedback"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "--dur-exit",
|
|
318
|
+
"category": "dur",
|
|
319
|
+
"value": "160ms",
|
|
320
|
+
"description": "Something leaving"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "--dur-state",
|
|
324
|
+
"category": "dur",
|
|
325
|
+
"value": "200ms",
|
|
326
|
+
"description": "Hover and other state changes"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "--dur-enter",
|
|
330
|
+
"category": "dur",
|
|
331
|
+
"value": "250ms",
|
|
332
|
+
"description": "Something arriving"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "--dur-theme",
|
|
336
|
+
"category": "dur",
|
|
337
|
+
"value": "200ms",
|
|
338
|
+
"description": "A fade between themes or modes, for sites that add one"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "--ease-out",
|
|
342
|
+
"category": "ease",
|
|
343
|
+
"value": "cubic-bezier(0.2, 0, 0, 1)",
|
|
344
|
+
"description": "The standard easing: fast start, gentle stop"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "--size-touch",
|
|
348
|
+
"category": "size",
|
|
349
|
+
"value": "2.75rem",
|
|
350
|
+
"description": "Main controls: 44px, comfortable to tap. The tested minimum is 24px"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "--font-sans",
|
|
354
|
+
"category": "font",
|
|
355
|
+
"value": "Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif",
|
|
356
|
+
"description": "Body and UI text; Inter ships in the opt-in fonts.css"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "--font-mono",
|
|
360
|
+
"category": "font",
|
|
361
|
+
"value": "ui-monospace, SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace",
|
|
362
|
+
"description": "Code and figures; the system’s own mono, nothing to download"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "--font-display",
|
|
366
|
+
"category": "font",
|
|
367
|
+
"value": "var(--font-sans)",
|
|
368
|
+
"description": "Headlines; follows --font-sans as set on :root, unless a site sets its own"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"pairs": [
|
|
372
|
+
{
|
|
373
|
+
"fg": "foreground",
|
|
374
|
+
"bg": "background",
|
|
375
|
+
"ratio": 4.6
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"fg": "foreground",
|
|
379
|
+
"bg": "card",
|
|
380
|
+
"ratio": 4.6
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"fg": "foreground",
|
|
384
|
+
"bg": "muted",
|
|
385
|
+
"ratio": 4.6
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"fg": "foreground",
|
|
389
|
+
"bg": "secondary",
|
|
390
|
+
"ratio": 4.6
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"fg": "muted-foreground",
|
|
394
|
+
"bg": "background",
|
|
395
|
+
"ratio": 4.6
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"fg": "muted-foreground",
|
|
399
|
+
"bg": "card",
|
|
400
|
+
"ratio": 4.6
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"fg": "muted-foreground",
|
|
404
|
+
"bg": "muted",
|
|
405
|
+
"ratio": 4.6
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"fg": "muted-foreground",
|
|
409
|
+
"bg": "secondary",
|
|
410
|
+
"ratio": 4.6
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"fg": "on-secondary",
|
|
414
|
+
"bg": "background",
|
|
415
|
+
"ratio": 4.6
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"fg": "on-secondary",
|
|
419
|
+
"bg": "card",
|
|
420
|
+
"ratio": 4.6
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"fg": "on-secondary",
|
|
424
|
+
"bg": "muted",
|
|
425
|
+
"ratio": 4.6
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"fg": "on-secondary",
|
|
429
|
+
"bg": "secondary",
|
|
430
|
+
"ratio": 4.6
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"fg": "primary-text",
|
|
434
|
+
"bg": "background",
|
|
435
|
+
"ratio": 4.6
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"fg": "primary-text",
|
|
439
|
+
"bg": "card",
|
|
440
|
+
"ratio": 4.6
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"fg": "primary-text",
|
|
444
|
+
"bg": "muted",
|
|
445
|
+
"ratio": 4.6
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"fg": "primary-text",
|
|
449
|
+
"bg": "secondary",
|
|
450
|
+
"ratio": 4.6
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"fg": "destructive",
|
|
454
|
+
"bg": "background",
|
|
455
|
+
"ratio": 4.6
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"fg": "destructive",
|
|
459
|
+
"bg": "card",
|
|
460
|
+
"ratio": 4.6
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"fg": "destructive",
|
|
464
|
+
"bg": "muted",
|
|
465
|
+
"ratio": 4.6
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"fg": "destructive",
|
|
469
|
+
"bg": "secondary",
|
|
470
|
+
"ratio": 4.6
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"fg": "outline",
|
|
474
|
+
"bg": "background",
|
|
475
|
+
"ratio": 3.1
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"fg": "outline",
|
|
479
|
+
"bg": "card",
|
|
480
|
+
"ratio": 3.1
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"fg": "outline",
|
|
484
|
+
"bg": "muted",
|
|
485
|
+
"ratio": 3.1
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"fg": "outline",
|
|
489
|
+
"bg": "secondary",
|
|
490
|
+
"ratio": 3.1
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"fg": "primary",
|
|
494
|
+
"bg": "background",
|
|
495
|
+
"ratio": 3.1
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"fg": "primary",
|
|
499
|
+
"bg": "card",
|
|
500
|
+
"ratio": 3.1
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"fg": "tertiary",
|
|
504
|
+
"bg": "background",
|
|
505
|
+
"ratio": 3.1
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"fg": "tertiary",
|
|
509
|
+
"bg": "card",
|
|
510
|
+
"ratio": 3.1
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"fg": "accent-2",
|
|
514
|
+
"bg": "background",
|
|
515
|
+
"ratio": 3.1
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"fg": "accent-2",
|
|
519
|
+
"bg": "card",
|
|
520
|
+
"ratio": 3.1
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"fg": "chart-1",
|
|
524
|
+
"bg": "background",
|
|
525
|
+
"ratio": 3.1
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"fg": "chart-1",
|
|
529
|
+
"bg": "card",
|
|
530
|
+
"ratio": 3.1
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"fg": "chart-2",
|
|
534
|
+
"bg": "background",
|
|
535
|
+
"ratio": 3.1
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"fg": "chart-2",
|
|
539
|
+
"bg": "card",
|
|
540
|
+
"ratio": 3.1
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"fg": "chart-3",
|
|
544
|
+
"bg": "background",
|
|
545
|
+
"ratio": 3.1
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"fg": "chart-3",
|
|
549
|
+
"bg": "card",
|
|
550
|
+
"ratio": 3.1
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"fg": "chart-4",
|
|
554
|
+
"bg": "background",
|
|
555
|
+
"ratio": 3.1
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"fg": "chart-4",
|
|
559
|
+
"bg": "card",
|
|
560
|
+
"ratio": 3.1
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"fg": "on-primary",
|
|
564
|
+
"bg": "primary",
|
|
565
|
+
"ratio": 4.6
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"fg": "on-primary",
|
|
569
|
+
"bg": "primary-hover",
|
|
570
|
+
"ratio": 4.6
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"fg": "on-primary",
|
|
574
|
+
"bg": "primary-pressed",
|
|
575
|
+
"ratio": 4.6
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"fg": "on-tertiary",
|
|
579
|
+
"bg": "tertiary",
|
|
580
|
+
"ratio": 4.6
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"fg": "on-destructive",
|
|
584
|
+
"bg": "destructive",
|
|
585
|
+
"ratio": 4.6
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"breakpoints": {
|
|
589
|
+
"sm": "30rem",
|
|
590
|
+
"md": "48rem",
|
|
591
|
+
"lg": "64rem"
|
|
592
|
+
},
|
|
593
|
+
"reducedMotion": {
|
|
594
|
+
"--dur-theme": "0.01ms"
|
|
595
|
+
},
|
|
596
|
+
"layers": [
|
|
597
|
+
"flair-kit.tokens",
|
|
598
|
+
"flair-kit.palette",
|
|
599
|
+
"flair-kit.components",
|
|
600
|
+
"flair-kit.preview"
|
|
601
|
+
]
|
|
602
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flairstudio/kit",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0-beta.0",
|
|
4
|
+
"description": "Design tokens as plain CSS: colours with light and dark modes, spacing, type, layers and motion.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "FlairStudio",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"files": ["dist/", "TOKENS.md", "CHANGELOG.md"],
|
|
9
|
+
"exports": {
|
|
10
|
+
"./tokens.css": "./dist/tokens.css",
|
|
11
|
+
"./fonts.css": "./dist/fonts.css",
|
|
12
|
+
"./tokens.json": "./dist/tokens.json",
|
|
13
|
+
"./preview.js": { "types": "./dist/preview.d.ts", "default": "./dist/preview.js" },
|
|
14
|
+
"./preview-host.js": { "types": "./dist/preview-host.d.ts", "default": "./dist/preview-host.js" },
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": ["**/*.css"],
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public",
|
|
20
|
+
"tag": "next"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "node scripts/build.ts",
|
|
24
|
+
"test": "node --test \"test/**/*.test.ts\"",
|
|
25
|
+
"prepublishOnly": "npm test"
|
|
26
|
+
}
|
|
27
|
+
}
|