@voila.dev/ui-tokens 0.0.8 → 1.1.10
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 +1 -1
- package/src/design-tokens.css +19 -20
package/package.json
CHANGED
package/src/design-tokens.css
CHANGED
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Roles (shadcn convention - each is a `color` + `-foreground` pair):
|
|
13
13
|
* --primary indigo - the neutral brand identity; admin UI + default CTAs.
|
|
14
|
-
* --
|
|
15
|
-
* --
|
|
14
|
+
* --brand violet - a first product surface.
|
|
15
|
+
* --highlight teal - a second product surface.
|
|
16
16
|
* --secondary neutral gray (the standard shadcn role; not a brand color).
|
|
17
|
-
* `--
|
|
17
|
+
* `--brand` and `--highlight` exist for products that need two distinct
|
|
18
18
|
* workspace identities; drop or rename them if yours does not. Lighter/tinted
|
|
19
|
-
* use is an opacity modifier (`bg-
|
|
19
|
+
* use is an opacity modifier (`bg-brand/10 text-brand`), never an extra
|
|
20
20
|
* token. Remaining neutrals (`muted`, `accent`) follow the shadcn OKLch system,
|
|
21
21
|
* with a full `.dark` palette.
|
|
22
22
|
*/
|
|
@@ -36,19 +36,18 @@
|
|
|
36
36
|
|
|
37
37
|
/* Primary - deep indigo #151B77 (neutral brand identity; admin UI + default
|
|
38
38
|
* CTAs). Replaces a flat black so primary buttons, progress fills and active
|
|
39
|
-
* states read as branded rather than "default shadcn black"
|
|
40
|
-
*
|
|
41
|
-
* on #151B77 ~= 11:1). */
|
|
39
|
+
* states read as branded rather than "default shadcn black". Foreground stays
|
|
40
|
+
* white (AA: white on #151B77 ~= 11:1). */
|
|
42
41
|
--primary: oklch(0.3 0.13 269);
|
|
43
42
|
--primary-foreground: oklch(0.985 0 0);
|
|
44
43
|
--secondary: oklch(0.97 0 0);
|
|
45
44
|
--secondary-foreground: oklch(0.205 0 0);
|
|
46
45
|
|
|
47
|
-
/* Brand surfaces - provider (
|
|
48
|
-
--
|
|
49
|
-
--
|
|
50
|
-
--
|
|
51
|
-
--
|
|
46
|
+
/* Brand surfaces - provider (violet) & organization (teal) */
|
|
47
|
+
--brand: oklch(0.541 0.245 293);
|
|
48
|
+
--brand-foreground: oklch(1 0 0);
|
|
49
|
+
--highlight: oklch(0.6 0.118 184.7);
|
|
50
|
+
--highlight-foreground: oklch(1 0 0);
|
|
52
51
|
|
|
53
52
|
/* Neutral roles */
|
|
54
53
|
--muted: oklch(0.97 0 0);
|
|
@@ -153,10 +152,10 @@
|
|
|
153
152
|
--primary-foreground: oklch(0.205 0 0);
|
|
154
153
|
--secondary: oklch(0.269 0 0);
|
|
155
154
|
--secondary-foreground: oklch(0.985 0 0);
|
|
156
|
-
--
|
|
157
|
-
--
|
|
158
|
-
--
|
|
159
|
-
--
|
|
155
|
+
--brand: oklch(0.65 0.21 293);
|
|
156
|
+
--brand-foreground: oklch(1 0 0);
|
|
157
|
+
--highlight: oklch(0.704 0.14 182.5);
|
|
158
|
+
--highlight-foreground: oklch(1 0 0);
|
|
160
159
|
--muted: oklch(0.269 0 0);
|
|
161
160
|
--muted-foreground: oklch(0.708 0 0);
|
|
162
161
|
--accent: oklch(0.269 0 0);
|
|
@@ -244,10 +243,10 @@
|
|
|
244
243
|
--color-primary-foreground: var(--primary-foreground);
|
|
245
244
|
--color-secondary: var(--secondary);
|
|
246
245
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
247
|
-
--color-
|
|
248
|
-
--color-
|
|
249
|
-
--color-
|
|
250
|
-
--color-
|
|
246
|
+
--color-brand: var(--brand);
|
|
247
|
+
--color-brand-foreground: var(--brand-foreground);
|
|
248
|
+
--color-highlight: var(--highlight);
|
|
249
|
+
--color-highlight-foreground: var(--highlight-foreground);
|
|
251
250
|
--color-muted: var(--muted);
|
|
252
251
|
--color-muted-foreground: var(--muted-foreground);
|
|
253
252
|
--color-accent: var(--accent);
|