@uncinq/design-tokens 0.1.6 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinq/design-tokens",
3
- "version": "0.1.6",
3
+ "version": "0.2.1",
4
4
  "description": "Framework-agnostic CSS design tokens — primitive and semantic layers.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,6 +22,10 @@
22
22
  --input-color-text: var(--form-color-text);
23
23
  --input-padding: var(--form-padding);
24
24
 
25
+ /* ── File button ───────────────────────────────────────────────────── */
26
+ --file-button-margin-end: var(--spacing-12);
27
+ --file-button-padding: var(--spacing-8) var(--spacing-12);
28
+
25
29
  /* ── Textarea ──────────────────────────────────────────────────────── */
26
30
  --textarea-border-radius: var(--form-border-radius);
27
31
  --textarea-border-width: var(--form-border-width);
@@ -42,7 +46,7 @@
42
46
  --select-color-optgroup: var(--color-text-muted);
43
47
  --select-color-text: var(--form-color-text);
44
48
  --select-icon: var(--icon-chevron);
45
- --select-icon-size: var(--size-16);
49
+ --select-icon-size: var(--icon-size);
46
50
  --select-padding: var(--form-padding);
47
51
  --select-padding-end: 2rem;
48
52
 
@@ -72,18 +76,23 @@
72
76
  --checkbox-color-border: var(--form-color-border);
73
77
  --checkbox-color-border-checked: var(--checkable-color);
74
78
  --checkbox-color-border-hover: var(--form-color-border-hover);
79
+ --checkbox-label-padding: 0 0 0 .3125rem;
75
80
  --checkbox-mask-checked: var(--icon-tick) center no-repeat;
76
81
  --checkbox-mask-indeterminate: var(--icon-dash) center no-repeat;
82
+ --checkbox-scale-checked: 0.7;
77
83
 
78
84
  /* ── Radio ─────────────────────────────────────────────────────────── */
79
85
  --radio-border-radius: var(--radius-pill);
80
86
  --radio-border-width: var(--form-border-width);
87
+ --radio-border-width-checked: var(--border-width-large);
81
88
  --radio-color-bg: var(--form-color-bg);
82
89
  --radio-color-bg-checked: var(--checkable-color);
83
90
  --radio-color-bg-hover: var(--form-color-bg);
84
91
  --radio-color-border: var(--form-color-border);
85
92
  --radio-color-border-checked: var(--checkable-color);
86
93
  --radio-color-border-hover: var(--form-color-border-hover);
94
+ --radio-label-padding: 0 0 0 .3125rem;
95
+ --radio-scale-checked: 0.5;
87
96
 
88
97
  /* ── Range ─────────────────────────────────────────────────────────── */
89
98
  --range-color-accent: var(--form-color-accent);
@@ -1,6 +1,8 @@
1
1
  /* semantic/icon.css */
2
2
  @layer config {
3
3
  :root {
4
+ --icon-size: var(--size-16);
5
+
4
6
  --icon-chevron: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="%23000000" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><polyline points="2 5 8 11 14 5"/></svg>');
5
7
  --icon-close: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="%23000000" stroke-width="1" stroke-linecap="round"><line x1="3" y1="3" x2="13" y2="13"/><line x1="13" y1="3" x2="3" y2="13"/></svg>');
6
8
  --icon-dash: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="16" width="14" viewBox="0 0 448 512"><path d="M431 256c0 17.7-14.3 32-32 32H49c-17.7 0-32-14.3-32-32s14.3-32 32-32h350c17.7 0 32 14.3 32 32z"/></svg>');
@@ -6,7 +6,7 @@
6
6
  --z-index-raised: 10; /* cards, sticky elements within flow */
7
7
  --z-index-dropdown: 100; /* dropdowns, popovers */
8
8
  --z-index-sticky: 200; /* sticky header/sidebar */
9
- --z-index-offcanvas: 300; /* drawer, side panel */
9
+ --z-index-drawer: 300; /* drawer, side panel */
10
10
  --z-index-modal: 400; /* modal dialogs */
11
11
  --z-index-toast: 500; /* notifications, toasts */
12
12
  --z-index-tooltip: 600; /* tooltips (always on top) */