@neovici/cosmoz-tokens 4.1.0 → 4.3.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/README.md CHANGED
@@ -124,7 +124,7 @@ document.documentElement.dataset.theme = 'dark';
124
124
 
125
125
  | Token | Description |
126
126
  | --------------------------------- | ------------------------------- |
127
- | `--cz-font-body` | Body font (Inter) |
127
+ | `--cz-font-body` | Body font (Geist) |
128
128
  | `--cz-font-display` | Display font (DM Sans) |
129
129
  | `--cz-font-mono` | Monospace font |
130
130
  | `--cz-text-{xs-xl}` | Text sizes with line heights |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-tokens",
3
- "version": "4.1.0",
3
+ "version": "4.3.0",
4
4
  "description": "Design tokens for Cosmoz web components based on Untitled UI",
5
5
  "keywords": [
6
6
  "design-tokens",
package/src/fallback.css CHANGED
@@ -70,6 +70,12 @@
70
70
  --cz-color-border-brand-alt: var(--cz-color-brand-600);
71
71
  --cz-color-border-info: var(--cz-color-info-500);
72
72
  --cz-color-border-info-subtle: var(--cz-color-info-300);
73
+ --cz-color-border-warning: var(--cz-color-warning-500);
74
+ --cz-color-border-warning-subtle: var(--cz-color-warning-300);
75
+ --cz-color-border-success: var(--cz-color-success-500);
76
+ --cz-color-border-success-subtle: var(--cz-color-success-300);
77
+ --cz-color-border-processing: var(--cz-color-indigo-500);
78
+ --cz-color-border-processing-subtle: var(--cz-color-indigo-300);
73
79
  --cz-color-fg-primary: var(--cz-color-gray-900);
74
80
  --cz-color-fg-secondary: var(--cz-color-gray-700);
75
81
  --cz-color-fg-secondary-hover: var(--cz-color-gray-800);
@@ -101,5 +107,7 @@
101
107
  --cz-shadow-xs-skeumorphic:
102
108
  var(--cz-shadow-skeumorphic), var(--cz-shadow-xs);
103
109
  --skeumorphic-color: rgba(255, 255, 255, 0.12);
110
+ --cz-shadow-pressed-3d: 0px 2px 3px 0px rgba(10, 13, 18, 0.12) inset;
111
+ --cz-shadow-pressed-3d-solid: 0px 2px 3px 0px rgba(10, 13, 18, 0.2) inset;
104
112
  }
105
113
  }
package/src/semantic.css CHANGED
@@ -280,6 +280,30 @@
280
280
  var(--cz-color-info-300),
281
281
  var(--cz-color-info-500)
282
282
  );
283
+ --cz-color-border-warning: light-dark(
284
+ var(--cz-color-warning-500),
285
+ var(--cz-color-warning-400)
286
+ );
287
+ --cz-color-border-warning-subtle: light-dark(
288
+ var(--cz-color-warning-300),
289
+ var(--cz-color-warning-500)
290
+ );
291
+ --cz-color-border-success: light-dark(
292
+ var(--cz-color-success-500),
293
+ var(--cz-color-success-400)
294
+ );
295
+ --cz-color-border-success-subtle: light-dark(
296
+ var(--cz-color-success-300),
297
+ var(--cz-color-success-500)
298
+ );
299
+ --cz-color-border-processing: light-dark(
300
+ var(--cz-color-indigo-500),
301
+ var(--cz-color-indigo-400)
302
+ );
303
+ --cz-color-border-processing-subtle: light-dark(
304
+ var(--cz-color-indigo-300),
305
+ var(--cz-color-indigo-500)
306
+ );
283
307
 
284
308
  /* Foreground colors (icons, decorative elements) */
285
309
  --cz-color-fg-primary: light-dark(
package/src/shadows.css CHANGED
@@ -2,9 +2,9 @@
2
2
  * Cosmoz Design Tokens - Shadows
3
3
  * Shadow tokens from Untitled UI
4
4
  *
5
- * Non-color shadow/focus-ring values cannot use light-dark() directly
6
- * (it only accepts colors), so the theme-varying parts are split into
7
- * color tokens which are assembled into static shadow values.
5
+ * Shadow and focus-ring values can't hold light-dark() directly (it only
6
+ * accepts colors), so theme-varying parts are split into color tokens
7
+ * and assembled into the static values below.
8
8
  */
9
9
 
10
10
  :root {
@@ -30,9 +30,7 @@
30
30
  0px 32px 64px -12px rgba(10, 13, 18, 0.14),
31
31
  0px 5px 5px -2.5px rgba(10, 13, 18, 0.04);
32
32
 
33
- /* Skeumorphic shadows (for buttons) — ring and highlight colors flip
34
- with color-scheme via the light-dark() color tokens above the
35
- assembled shadow values. */
33
+ /* Skeumorphic shadows (for buttons) */
36
34
  --cz-color-skeumorphic-ring: light-dark(
37
35
  rgba(10, 13, 18, 0.18),
38
36
  rgba(255, 255, 255, 0.12)
@@ -46,15 +44,26 @@
46
44
  0px -2px 0px 0px var(--cz-color-skeumorphic-highlight) inset;
47
45
  --cz-shadow-xs-skeumorphic: var(--cz-shadow-skeumorphic), var(--cz-shadow-xs);
48
46
 
47
+ /* Pressed / selected 3D sink (for buttons) */
48
+ --cz-color-pressed-shade: light-dark(
49
+ rgba(10, 13, 18, 0.12),
50
+ rgba(0, 0, 0, 0.4)
51
+ );
52
+ --cz-color-pressed-shade-strong: light-dark(
53
+ rgba(10, 13, 18, 0.2),
54
+ rgba(0, 0, 0, 0.55)
55
+ );
56
+ --cz-shadow-pressed-3d: 0px 2px 3px 0px var(--cz-color-pressed-shade) inset;
57
+ --cz-shadow-pressed-3d-solid: 0px 2px 3px 0px
58
+ var(--cz-color-pressed-shade-strong) inset;
59
+
49
60
  /*
50
- * The light-theme skeumorphic ring is near-black, so on a dark surface it
51
- * disappears and the ::before highlight is left acting as the border. Flip
52
- * the highlight border color to light and drop it in dark mode, where it
53
- * would otherwise draw a second border just inside the ring.
61
+ * Border color for the ::before highlight; light in light mode, off in
62
+ * dark mode where it would double up the ring.
54
63
  */
55
64
  --skeumorphic-color: light-dark(rgba(255, 255, 255, 0.12), transparent);
56
65
 
57
- /* Focus ring shadows — colors are theme-varying, shapes are static */
66
+ /* Focus ring shadows */
58
67
  --cz-color-focus-ring: light-dark(
59
68
  var(--cz-color-brand-100),
60
69
  var(--cz-color-brand-800)
@@ -6,8 +6,8 @@
6
6
  :root {
7
7
  /* Font families */
8
8
  --cz-font-body:
9
- var(--font-inter, 'Inter'), -apple-system, 'Segoe UI', Roboto, Arial,
10
- sans-serif;
9
+ var(--font-geist, 'Geist Variable'), 'Geist', -apple-system, 'Segoe UI',
10
+ Roboto, Arial, sans-serif;
11
11
  --cz-font-display:
12
12
  'DM Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
13
13
  --cz-font-mono: