@seanyeh77/tokens 0.10.0 → 0.11.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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /** Generated from tokens.json by scripts/build.ts. Do not edit by hand. */
2
2
 
3
- export type ColorToken = 'bg' | 'surface' | 'surface-sub' | 'surface-chrome' | 'surface-input' | 'ink' | 'ink-muted' | 'line' | 'line-strong' | 'graph-edge' | 'graph-node' | 'code-keyword' | 'code-constant' | 'accent' | 'accent-hover' | 'accent-press' | 'accent-text' | 'accent-soft' | 'on-accent' | 'focus-ring' | 'success' | 'success-text' | 'success-soft' | 'warning' | 'warning-text' | 'warning-soft' | 'danger' | 'danger-text' | 'danger-soft' | 'info-text' | 'info-soft' | 'neutral-0' | 'neutral-50' | 'neutral-100' | 'neutral-200' | 'neutral-300' | 'neutral-400' | 'neutral-500' | 'neutral-600' | 'neutral-700' | 'neutral-800' | 'neutral-900' | 'neutral-950' | 'chart-1' | 'chart-2' | 'chart-3';
3
+ export type ColorToken = 'bg' | 'surface' | 'surface-sub' | 'surface-chrome' | 'surface-input' | 'ink' | 'ink-muted' | 'line' | 'line-strong' | 'graph-edge' | 'graph-node' | 'code-keyword' | 'code-constant' | 'accent' | 'accent-hover' | 'accent-press' | 'accent-text' | 'accent-soft' | 'on-accent' | 'focus-ring' | 'success' | 'success-text' | 'success-soft' | 'warning' | 'warning-text' | 'warning-soft' | 'danger' | 'danger-text' | 'danger-soft' | 'info-text' | 'info-soft' | 'on-solid' | 'danger-ring' | 'mark' | 'scrim' | 'scrim-strong' | 'edge-shadow' | 'file-other' | 'file-pdf' | 'file-video' | 'file-audio' | 'file-slides' | 'file-doc' | 'file-sheet' | 'file-image' | 'file-code' | 'neutral-0' | 'neutral-50' | 'neutral-100' | 'neutral-200' | 'neutral-300' | 'neutral-400' | 'neutral-500' | 'neutral-600' | 'neutral-700' | 'neutral-800' | 'neutral-900' | 'neutral-950' | 'chart-1' | 'chart-2' | 'chart-3';
4
4
  export type SpaceToken = 'space-1' | 'space-2' | 'space-3' | 'space-4' | 'space-5' | 'space-6' | 'space-8' | 'space-12';
5
5
  export type RadiusToken = 'radius-sm' | 'radius-chip' | 'radius-md' | 'radius-lg' | 'radius-full';
6
6
  export type ShadowToken = 'shadow-sm' | 'shadow-chip' | 'shadow-card' | 'shadow-card-hover' | 'shadow-overlay';
package/dist/index.js CHANGED
@@ -31,6 +31,21 @@ export const tokens = Object.freeze({
31
31
  "danger-soft": "#faeae9",
32
32
  "info-text": "#193d96",
33
33
  "info-soft": "#e9eefb",
34
+ "on-solid": "#ffffff",
35
+ "danger-ring": "rgba(205, 40, 35, 0.25)",
36
+ "mark": "#fde68a",
37
+ "scrim": "rgba(0, 0, 0, 0.2)",
38
+ "scrim-strong": "rgba(0, 0, 0, 0.55)",
39
+ "edge-shadow": "rgba(0, 0, 0, 0.18)",
40
+ "file-other": "#6d645a",
41
+ "file-pdf": "#cd2823",
42
+ "file-video": "#7a4fd6",
43
+ "file-audio": "#b0368a",
44
+ "file-slides": "#c4600f",
45
+ "file-doc": "#2457d6",
46
+ "file-sheet": "#1d7a45",
47
+ "file-image": "#0f7480",
48
+ "file-code": "#3d4552",
34
49
  "neutral-0": "#fcfbfb",
35
50
  "neutral-50": "#f6f5f4",
36
51
  "neutral-100": "#eeecea",
package/dist/tailwind.css CHANGED
@@ -32,6 +32,21 @@
32
32
  --color-danger-soft: var(--danger-soft);
33
33
  --color-info-text: var(--info-text);
34
34
  --color-info-soft: var(--info-soft);
35
+ --color-on-solid: var(--on-solid);
36
+ --color-danger-ring: var(--danger-ring);
37
+ --color-mark: var(--mark);
38
+ --color-scrim: var(--scrim);
39
+ --color-scrim-strong: var(--scrim-strong);
40
+ --color-edge-shadow: var(--edge-shadow);
41
+ --color-file-other: var(--file-other);
42
+ --color-file-pdf: var(--file-pdf);
43
+ --color-file-video: var(--file-video);
44
+ --color-file-audio: var(--file-audio);
45
+ --color-file-slides: var(--file-slides);
46
+ --color-file-doc: var(--file-doc);
47
+ --color-file-sheet: var(--file-sheet);
48
+ --color-file-image: var(--file-image);
49
+ --color-file-code: var(--file-code);
35
50
  --color-neutral-0: var(--neutral-0);
36
51
  --color-neutral-50: var(--neutral-50);
37
52
  --color-neutral-100: var(--neutral-100);
package/dist/tokens.css CHANGED
@@ -31,6 +31,21 @@
31
31
  --danger-soft: #faeae9;
32
32
  --info-text: #193d96;
33
33
  --info-soft: #e9eefb;
34
+ --on-solid: #ffffff;
35
+ --danger-ring: rgba(205, 40, 35, 0.25);
36
+ --mark: #fde68a;
37
+ --scrim: rgba(0, 0, 0, 0.2);
38
+ --scrim-strong: rgba(0, 0, 0, 0.55);
39
+ --edge-shadow: rgba(0, 0, 0, 0.18);
40
+ --file-other: #6d645a;
41
+ --file-pdf: #cd2823;
42
+ --file-video: #7a4fd6;
43
+ --file-audio: #b0368a;
44
+ --file-slides: #c4600f;
45
+ --file-doc: #2457d6;
46
+ --file-sheet: #1d7a45;
47
+ --file-image: #0f7480;
48
+ --file-code: #3d4552;
34
49
  --neutral-0: #fcfbfb;
35
50
  --neutral-50: #f6f5f4;
36
51
  --neutral-100: #eeecea;
@@ -103,6 +118,7 @@
103
118
  --danger-soft: #482a25;
104
119
  --info-text: #87a3e8;
105
120
  --info-soft: #2d3141;
121
+ --mark: #7c5d12;
106
122
  --chart-1: #819ee7;
107
123
  --chart-2: #3cc4ae;
108
124
  --chart-3: #f0a35e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seanyeh77/tokens",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Design tokens of SeanYeh's design system: CSS variables for light, dark and the teaching preset, a Tailwind v4 theme, typed token names and self-hosted fonts.",
5
5
  "license": "MIT",
6
6
  "author": "Hsiu-An Yeh",
package/tokens.json CHANGED
@@ -261,6 +261,126 @@
261
261
  },
262
262
  "usage": "Info alert fill."
263
263
  },
264
+ {
265
+ "name": "on-solid",
266
+ "value": {
267
+ "light": "#ffffff",
268
+ "dark": "#ffffff"
269
+ },
270
+ "usage": "Text and icons on fixed solid fills: the danger button, count badges, file-type labels, color swatches."
271
+ },
272
+ {
273
+ "name": "danger-ring",
274
+ "value": {
275
+ "light": "rgba(205, 40, 35, 0.25)",
276
+ "dark": "rgba(205, 40, 35, 0.25)"
277
+ },
278
+ "usage": "3px glow around a field with an error while it has focus."
279
+ },
280
+ {
281
+ "name": "mark",
282
+ "value": {
283
+ "light": "#fde68a",
284
+ "dark": "#7c5d12"
285
+ },
286
+ "usage": "Background of the matched text in search results."
287
+ },
288
+ {
289
+ "name": "scrim",
290
+ "value": {
291
+ "light": "rgba(0, 0, 0, 0.2)",
292
+ "dark": "rgba(0, 0, 0, 0.2)"
293
+ },
294
+ "usage": "Backdrop behind dialogs, drawers and the command palette (with the blur)."
295
+ },
296
+ {
297
+ "name": "scrim-strong",
298
+ "value": {
299
+ "light": "rgba(0, 0, 0, 0.55)",
300
+ "dark": "rgba(0, 0, 0, 0.55)"
301
+ },
302
+ "usage": "The page around the Tour's spotlight."
303
+ },
304
+ {
305
+ "name": "edge-shadow",
306
+ "value": {
307
+ "light": "rgba(0, 0, 0, 0.18)",
308
+ "dark": "rgba(0, 0, 0, 0.18)"
309
+ },
310
+ "usage": "Shadow on the edge of a column that stays in place while a table scrolls sideways."
311
+ },
312
+ {
313
+ "name": "file-other",
314
+ "value": {
315
+ "light": "#6d645a",
316
+ "dark": "#6d645a"
317
+ },
318
+ "usage": "Extension label of a file icon: any other file. White text (on-solid) on it."
319
+ },
320
+ {
321
+ "name": "file-pdf",
322
+ "value": {
323
+ "light": "#cd2823",
324
+ "dark": "#cd2823"
325
+ },
326
+ "usage": "Extension label of a file icon: PDF. White text (on-solid) on it."
327
+ },
328
+ {
329
+ "name": "file-video",
330
+ "value": {
331
+ "light": "#7a4fd6",
332
+ "dark": "#7a4fd6"
333
+ },
334
+ "usage": "Extension label of a file icon: video. White text (on-solid) on it."
335
+ },
336
+ {
337
+ "name": "file-audio",
338
+ "value": {
339
+ "light": "#b0368a",
340
+ "dark": "#b0368a"
341
+ },
342
+ "usage": "Extension label of a file icon: audio. White text (on-solid) on it."
343
+ },
344
+ {
345
+ "name": "file-slides",
346
+ "value": {
347
+ "light": "#c4600f",
348
+ "dark": "#c4600f"
349
+ },
350
+ "usage": "Extension label of a file icon: slides (PPTX, KEY). White text (on-solid) on it."
351
+ },
352
+ {
353
+ "name": "file-doc",
354
+ "value": {
355
+ "light": "#2457d6",
356
+ "dark": "#2457d6"
357
+ },
358
+ "usage": "Extension label of a file icon: documents (DOCX, PAGES). White text (on-solid) on it."
359
+ },
360
+ {
361
+ "name": "file-sheet",
362
+ "value": {
363
+ "light": "#1d7a45",
364
+ "dark": "#1d7a45"
365
+ },
366
+ "usage": "Extension label of a file icon: spreadsheets (XLSX, CSV). White text (on-solid) on it."
367
+ },
368
+ {
369
+ "name": "file-image",
370
+ "value": {
371
+ "light": "#0f7480",
372
+ "dark": "#0f7480"
373
+ },
374
+ "usage": "Extension label of a file icon: images. White text (on-solid) on it."
375
+ },
376
+ {
377
+ "name": "file-code",
378
+ "value": {
379
+ "light": "#3d4552",
380
+ "dark": "#3d4552"
381
+ },
382
+ "usage": "Extension label of a file icon: code and text. White text (on-solid) on it."
383
+ },
264
384
  {
265
385
  "name": "neutral-0",
266
386
  "value": "#fcfbfb",