@eluan/tokens 0.4.0 → 0.5.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/modes.css +34 -4
- package/dist/spacing.css +63 -1
- package/dist/themes.css +4 -3
- package/package.json +1 -1
package/dist/modes.css
CHANGED
|
@@ -27,6 +27,21 @@
|
|
|
27
27
|
* aliases, and modes.css is imported first, so a theme-layer declaration
|
|
28
28
|
* would win the cascade over any mode override. */
|
|
29
29
|
--tooltip-bg: var(--backgrounds-primary);
|
|
30
|
+
/* Scrim behind Dialog and Sheet (applied at 0.8 opacity) — mode-aware for
|
|
31
|
+
* the same reason as --tooltip-bg. It must stay dark in every mode: the
|
|
32
|
+
* --container-fg it used to borrow is near-white in dark mode, which washed
|
|
33
|
+
* the page out behind a dark dialog. */
|
|
34
|
+
--overlay-bg: var(--foregrounds-primary);
|
|
35
|
+
/* Keyboard focus outline — mode-aware for the same reason as --tooltip-bg.
|
|
36
|
+
* The mid-ramp step that clears 3:1 (WCAG 1.4.11) on every page and panel
|
|
37
|
+
* ground while staying distinct from the near-black pressed fill
|
|
38
|
+
* (--interactive-bg-active), so focus never reads as pressed. */
|
|
39
|
+
--focus-ring: var(--foregrounds-quaternary);
|
|
40
|
+
/* Outline and Ghost button text (and Toast cancel) — mode-aware for the
|
|
41
|
+
* same reason as --tooltip-bg: dim needs a deeper step than
|
|
42
|
+
* --mono-background gives it. */
|
|
43
|
+
--action-secondary-fg: var(--mono-background);
|
|
44
|
+
--action-tertiary-fg: var(--mono-background);
|
|
30
45
|
--maitai-main: var(--color-maitai-500);
|
|
31
46
|
--maitai-background: var(--color-maitai-50);
|
|
32
47
|
--maitai-tint: var(--color-maitai-100);
|
|
@@ -95,7 +110,7 @@
|
|
|
95
110
|
--seagreen-main: var(--color-seagreen-400);
|
|
96
111
|
--seagreen-background: var(--color-seagreen-50);
|
|
97
112
|
--seagreen-tint: var(--color-seagreen-100);
|
|
98
|
-
--seagreen-foreground: var(--color-seagreen-
|
|
113
|
+
--seagreen-foreground: var(--color-seagreen-700);
|
|
99
114
|
--seagreen-shade: var(--color-seagreen-800);
|
|
100
115
|
--forestgreen-main: var(--color-seagreen-400);
|
|
101
116
|
--forestgreen-background: var(--color-seagreen-50);
|
|
@@ -114,7 +129,7 @@
|
|
|
114
129
|
--torchred-main: var(--color-torchred-500);
|
|
115
130
|
--torchred-background: var(--color-torchred-50);
|
|
116
131
|
--torchred-tint: var(--color-torchred-100);
|
|
117
|
-
--torchred-foreground: var(--color-torchred-
|
|
132
|
+
--torchred-foreground: var(--color-torchred-700);
|
|
118
133
|
--torchred-shade: var(--color-torchred-800);
|
|
119
134
|
--blazeorange-main: var(--color-blazeorange-500);
|
|
120
135
|
--blazeorange-background: var(--color-blazeorange-50);
|
|
@@ -135,6 +150,13 @@
|
|
|
135
150
|
--foregrounds-quaternary: var(--color-teak-700);
|
|
136
151
|
--foregrounds-quinary: var(--color-teak-600);
|
|
137
152
|
--tooltip-bg: var(--backgrounds-primary);
|
|
153
|
+
--overlay-bg: var(--foregrounds-primary);
|
|
154
|
+
--focus-ring: var(--foregrounds-quaternary);
|
|
155
|
+
/* teak-700 (--mono-background) is 4.36:1 on the dim panel ground, below AA
|
|
156
|
+
* for Outline and Ghost button text; teak-800 clears 6:1 on the page and
|
|
157
|
+
* panel. */
|
|
158
|
+
--action-secondary-fg: var(--foregrounds-tertiary);
|
|
159
|
+
--action-tertiary-fg: var(--foregrounds-tertiary);
|
|
138
160
|
--maitai-main: var(--color-maitai-600);
|
|
139
161
|
--maitai-background: var(--color-maitai-100);
|
|
140
162
|
--maitai-tint: var(--color-maitai-200);
|
|
@@ -203,7 +225,7 @@
|
|
|
203
225
|
--seagreen-main: var(--color-seagreen-500);
|
|
204
226
|
--seagreen-background: var(--color-seagreen-100);
|
|
205
227
|
--seagreen-tint: var(--color-seagreen-200);
|
|
206
|
-
--seagreen-foreground: var(--color-seagreen-
|
|
228
|
+
--seagreen-foreground: var(--color-seagreen-800);
|
|
207
229
|
--seagreen-shade: var(--color-seagreen-900);
|
|
208
230
|
--forestgreen-main: var(--color-seagreen-500);
|
|
209
231
|
--forestgreen-background: var(--color-seagreen-100);
|
|
@@ -222,7 +244,7 @@
|
|
|
222
244
|
--torchred-main: var(--color-torchred-700);
|
|
223
245
|
--torchred-background: var(--color-torchred-100);
|
|
224
246
|
--torchred-tint: var(--color-torchred-200);
|
|
225
|
-
--torchred-foreground: var(--color-torchred-
|
|
247
|
+
--torchred-foreground: var(--color-torchred-800);
|
|
226
248
|
--torchred-shade: var(--color-torchred-900);
|
|
227
249
|
--blazeorange-main: var(--color-blazeorange-600);
|
|
228
250
|
--blazeorange-background: var(--color-blazeorange-100);
|
|
@@ -244,6 +266,14 @@
|
|
|
244
266
|
--foregrounds-quinary: var(--color-neutral-400);
|
|
245
267
|
/* Same value as --container-border, so the tooltip border disappears. */
|
|
246
268
|
--tooltip-bg: var(--backgrounds-tertiary);
|
|
269
|
+
/* The darkest step of the ramp, so the scrim dims the page rather than
|
|
270
|
+
* lifting it. */
|
|
271
|
+
--overlay-bg: var(--backgrounds-tertiary);
|
|
272
|
+
/* One step lighter than in light mode: --foregrounds-quaternary is too
|
|
273
|
+
* close to the white pressed fill here, quinary still clears 3:1. */
|
|
274
|
+
--focus-ring: var(--foregrounds-quinary);
|
|
275
|
+
--action-secondary-fg: var(--mono-background);
|
|
276
|
+
--action-tertiary-fg: var(--mono-background);
|
|
247
277
|
--maitai-main: var(--color-maitai-500);
|
|
248
278
|
--maitai-background: var(--color-maitai-950);
|
|
249
279
|
--maitai-tint: var(--color-maitai-900);
|
package/dist/spacing.css
CHANGED
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
*
|
|
18
18
|
* Per-step line-height and letter-spacing live alongside the sizes as
|
|
19
19
|
* --line-height-step-* / --letter-spacing-step-*; components that opt into a
|
|
20
|
-
* step (see the Typography component) should take all three together.
|
|
20
|
+
* step (see the Typography component) should take all three together. Each
|
|
21
|
+
* --font-size-* alias has --line-height-* and --letter-spacing-* companions
|
|
22
|
+
* on the same step, so a density-aware size can do the same.
|
|
21
23
|
* ============================================ */
|
|
22
24
|
|
|
23
25
|
[data-spacing="compact"] {
|
|
@@ -51,6 +53,26 @@
|
|
|
51
53
|
--font-size-3xl: var(--font-size-step-3);
|
|
52
54
|
--font-size-4xl: var(--font-size-step-4);
|
|
53
55
|
--font-size-5xl: var(--font-size-step-5);
|
|
56
|
+
|
|
57
|
+
/* Line height and tracking follow the same steps as the sizes */
|
|
58
|
+
--line-height-xs: var(--line-height-step-neg3);
|
|
59
|
+
--line-height-sm: var(--line-height-step-neg2);
|
|
60
|
+
--line-height-base: var(--line-height-step-neg1);
|
|
61
|
+
--line-height-lg: var(--line-height-step-0);
|
|
62
|
+
--line-height-xl: var(--line-height-step-1);
|
|
63
|
+
--line-height-2xl: var(--line-height-step-2);
|
|
64
|
+
--line-height-3xl: var(--line-height-step-3);
|
|
65
|
+
--line-height-4xl: var(--line-height-step-4);
|
|
66
|
+
--line-height-5xl: var(--line-height-step-5);
|
|
67
|
+
--letter-spacing-xs: var(--letter-spacing-step-neg3);
|
|
68
|
+
--letter-spacing-sm: var(--letter-spacing-step-neg2);
|
|
69
|
+
--letter-spacing-base: var(--letter-spacing-step-neg1);
|
|
70
|
+
--letter-spacing-lg: var(--letter-spacing-step-0);
|
|
71
|
+
--letter-spacing-xl: var(--letter-spacing-step-1);
|
|
72
|
+
--letter-spacing-2xl: var(--letter-spacing-step-2);
|
|
73
|
+
--letter-spacing-3xl: var(--letter-spacing-step-3);
|
|
74
|
+
--letter-spacing-4xl: var(--letter-spacing-step-4);
|
|
75
|
+
--letter-spacing-5xl: var(--letter-spacing-step-5);
|
|
54
76
|
}
|
|
55
77
|
|
|
56
78
|
[data-spacing="standard"] {
|
|
@@ -84,6 +106,26 @@
|
|
|
84
106
|
--font-size-3xl: var(--font-size-step-4);
|
|
85
107
|
--font-size-4xl: var(--font-size-step-5);
|
|
86
108
|
--font-size-5xl: var(--font-size-step-6);
|
|
109
|
+
|
|
110
|
+
/* Line height and tracking follow the same steps as the sizes */
|
|
111
|
+
--line-height-xs: var(--line-height-step-neg2);
|
|
112
|
+
--line-height-sm: var(--line-height-step-neg1);
|
|
113
|
+
--line-height-base: var(--line-height-step-0);
|
|
114
|
+
--line-height-lg: var(--line-height-step-1);
|
|
115
|
+
--line-height-xl: var(--line-height-step-2);
|
|
116
|
+
--line-height-2xl: var(--line-height-step-3);
|
|
117
|
+
--line-height-3xl: var(--line-height-step-4);
|
|
118
|
+
--line-height-4xl: var(--line-height-step-5);
|
|
119
|
+
--line-height-5xl: var(--line-height-step-6);
|
|
120
|
+
--letter-spacing-xs: var(--letter-spacing-step-neg2);
|
|
121
|
+
--letter-spacing-sm: var(--letter-spacing-step-neg1);
|
|
122
|
+
--letter-spacing-base: var(--letter-spacing-step-0);
|
|
123
|
+
--letter-spacing-lg: var(--letter-spacing-step-1);
|
|
124
|
+
--letter-spacing-xl: var(--letter-spacing-step-2);
|
|
125
|
+
--letter-spacing-2xl: var(--letter-spacing-step-3);
|
|
126
|
+
--letter-spacing-3xl: var(--letter-spacing-step-4);
|
|
127
|
+
--letter-spacing-4xl: var(--letter-spacing-step-5);
|
|
128
|
+
--letter-spacing-5xl: var(--letter-spacing-step-6);
|
|
87
129
|
}
|
|
88
130
|
|
|
89
131
|
[data-spacing="wide"] {
|
|
@@ -117,4 +159,24 @@
|
|
|
117
159
|
--font-size-3xl: var(--font-size-step-5);
|
|
118
160
|
--font-size-4xl: var(--font-size-step-6);
|
|
119
161
|
--font-size-5xl: var(--font-size-step-6);
|
|
162
|
+
|
|
163
|
+
/* Line height and tracking follow the same steps as the sizes */
|
|
164
|
+
--line-height-xs: var(--line-height-step-neg1);
|
|
165
|
+
--line-height-sm: var(--line-height-step-0);
|
|
166
|
+
--line-height-base: var(--line-height-step-1);
|
|
167
|
+
--line-height-lg: var(--line-height-step-2);
|
|
168
|
+
--line-height-xl: var(--line-height-step-3);
|
|
169
|
+
--line-height-2xl: var(--line-height-step-4);
|
|
170
|
+
--line-height-3xl: var(--line-height-step-5);
|
|
171
|
+
--line-height-4xl: var(--line-height-step-6);
|
|
172
|
+
--line-height-5xl: var(--line-height-step-6);
|
|
173
|
+
--letter-spacing-xs: var(--letter-spacing-step-neg1);
|
|
174
|
+
--letter-spacing-sm: var(--letter-spacing-step-0);
|
|
175
|
+
--letter-spacing-base: var(--letter-spacing-step-1);
|
|
176
|
+
--letter-spacing-lg: var(--letter-spacing-step-2);
|
|
177
|
+
--letter-spacing-xl: var(--letter-spacing-step-3);
|
|
178
|
+
--letter-spacing-2xl: var(--letter-spacing-step-4);
|
|
179
|
+
--letter-spacing-3xl: var(--letter-spacing-step-5);
|
|
180
|
+
--letter-spacing-4xl: var(--letter-spacing-step-6);
|
|
181
|
+
--letter-spacing-5xl: var(--letter-spacing-step-6);
|
|
120
182
|
}
|
package/dist/themes.css
CHANGED
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
--action-primary-fg-active: var(--backgrounds-primary);
|
|
90
90
|
--action-primary-fg-selected: var(--backgrounds-primary);
|
|
91
91
|
--action-primary-fg-inverse: var(--foregrounds-primary);
|
|
92
|
-
--action-secondary-bg-hover: var(--
|
|
92
|
+
--action-secondary-bg-hover: var(--backgrounds-tertiary);
|
|
93
93
|
--action-secondary-bg-active: var(--mono-background);
|
|
94
94
|
--action-secondary-bg-selected: var(--mono-background);
|
|
95
95
|
--action-secondary-bg-disabled: var(--backgrounds-tertiary);
|
|
@@ -97,7 +97,6 @@
|
|
|
97
97
|
--action-secondary-border-alt: var(--mono-shade);
|
|
98
98
|
--action-secondary-border-disabled: var(--mono-tint);
|
|
99
99
|
--action-secondary-border-inverse: var(--backgrounds-secondary);
|
|
100
|
-
--action-secondary-fg: var(--mono-background);
|
|
101
100
|
--action-secondary-fg-alt: var(--foregrounds-primary);
|
|
102
101
|
--action-secondary-fg-disabled: var(--foregrounds-quinary);
|
|
103
102
|
--action-secondary-fg-active: var(--backgrounds-primary);
|
|
@@ -114,12 +113,14 @@
|
|
|
114
113
|
--action-tertiary-border-alt: var(--mono-tint);
|
|
115
114
|
--action-tertiary-border-disabled: var(--backgrounds-quaternary);
|
|
116
115
|
--action-tertiary-border-inverse: var(--backgrounds-secondary);
|
|
117
|
-
--action-tertiary-fg: var(--mono-background);
|
|
118
116
|
--action-tertiary-fg-alt: var(--foregrounds-primary);
|
|
119
117
|
--action-tertiary-fg-disabled: var(--foregrounds-quinary);
|
|
120
118
|
--action-tertiary-fg-active: var(--mono-shade);
|
|
121
119
|
--action-tertiary-fg-selected: var(--mono-shade);
|
|
122
120
|
--action-tertiary-fg-inverse: var(--backgrounds-primary);
|
|
121
|
+
--action-neutral-bg: var(--backgrounds-tertiary);
|
|
122
|
+
--action-neutral-bg-hover: var(--backgrounds-quaternary);
|
|
123
|
+
--action-neutral-fg: var(--foregrounds-primary);
|
|
123
124
|
--destructive-bg: var(--torchred-background);
|
|
124
125
|
--destructive-bg-alt: var(--torchred-tint);
|
|
125
126
|
--destructive-bg-hover: var(--torchred-tint);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eluan/tokens",
|
|
3
3
|
"description": "Design tokens, CSS variables, themes, and fonts for the Eluan design system",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Frolda",
|
|
7
7
|
"homepage": "https://github.com/vasfio/eluan#readme",
|