@intinyagroup/tokens 0.2.0 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/base.css +28 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intinyagroup/tokens",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Design tokens for intinyagroup UI",
5
5
  "type": "module",
6
6
  "exports": {
package/src/base.css CHANGED
@@ -75,6 +75,17 @@
75
75
  --ui-ring: oklch(0.2 0.015 260);
76
76
  --ui-radius: 0.625rem;
77
77
 
78
+ /* Overlay and elevated-surface semantics */
79
+ --ui-overlay: color-mix(in srgb, var(--ui-foreground) 20%, transparent);
80
+ --ui-overlay-strong: color-mix(
81
+ in srgb,
82
+ var(--ui-foreground) 32%,
83
+ transparent
84
+ );
85
+ --ui-surface-elevated: color-mix(in srgb, var(--ui-card) 96%, transparent);
86
+ --ui-shadow-overlay: 0 20px 60px -32px
87
+ color-mix(in srgb, var(--ui-foreground) 35%, transparent);
88
+
78
89
  /* Semantic aliases */
79
90
  --ui-success: oklch(0.62 0.16 155);
80
91
  --ui-warning: oklch(0.75 0.18 75);
@@ -141,6 +152,23 @@
141
152
  --ui-info: oklch(0.68 0.18 245);
142
153
  }
143
154
 
155
+ /* Shared semantic overlay tokens resolve against active theme colors. */
156
+ :root,
157
+ [data-ui-theme="neutral"],
158
+ [data-ui-theme="warm"],
159
+ [data-ui-theme="dark"],
160
+ .dark {
161
+ --ui-overlay: color-mix(in srgb, var(--ui-foreground) 20%, transparent);
162
+ --ui-overlay-strong: color-mix(
163
+ in srgb,
164
+ var(--ui-foreground) 32%,
165
+ transparent
166
+ );
167
+ --ui-surface-elevated: color-mix(in srgb, var(--ui-card) 96%, transparent);
168
+ --ui-shadow-overlay: 0 20px 60px -32px
169
+ color-mix(in srgb, var(--ui-foreground) 35%, transparent);
170
+ }
171
+
144
172
  /* Spacing scale */
145
173
  :root {
146
174
  --ui-space-0: 0;