@fusion.dev/helix-styles 0.0.0-dev

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.
@@ -0,0 +1,110 @@
1
+ /* primitives.css from @fusion.dev/helix-styles. The source, with the reasoning in it, is in the repository. */
2
+ :root,
3
+ [data-helix-theme] {
4
+ --_helix-seed-brand: var(--helix-seed-brand, oklch(0.539 0.19 258));
5
+ --helix-seed-accent-hue: 180;
6
+ --_helix-seed-accent: var(
7
+ --helix-seed-accent,
8
+ oklch(from var(--_helix-seed-brand) l c calc(h + var(--helix-seed-accent-hue)))
9
+ );
10
+ --_helix-seed-chroma-scale: var(--helix-seed-chroma-scale, 1);
11
+ --_helix-seed-neutral-chroma: var(--helix-seed-neutral-chroma, 0);
12
+ --_helix-seed-neutral-hue: var(--helix-seed-neutral-hue, 258);
13
+ --_helix-neutral-cast: var(--_helix-seed-neutral-chroma) var(--_helix-seed-neutral-hue);
14
+ --_helix-seed-density: var(--helix-seed-density, 1);
15
+ --_helix-seed-radii: var(--helix-seed-radii, 0.5rem);
16
+ --_helix-neutral-0: oklch(1 0 0);
17
+ --_helix-neutral-1000: oklch(0 0 0);
18
+ --_helix-neutral-50: oklch(0.985 var(--_helix-neutral-cast));
19
+ --_helix-neutral-100: oklch(0.97 var(--_helix-neutral-cast));
20
+ --_helix-neutral-200: oklch(0.96 var(--_helix-neutral-cast));
21
+ --_helix-neutral-300: oklch(0.91 var(--_helix-neutral-cast));
22
+ --_helix-neutral-400: oklch(0.71 var(--_helix-neutral-cast));
23
+ --_helix-neutral-450: oklch(0.67 var(--_helix-neutral-cast));
24
+ --_helix-neutral-500: oklch(0.6 var(--_helix-neutral-cast));
25
+ --_helix-neutral-550: oklch(0.53 var(--_helix-neutral-cast));
26
+ --_helix-neutral-600: oklch(0.5 var(--_helix-neutral-cast));
27
+ --_helix-neutral-700: oklch(0.33 var(--_helix-neutral-cast));
28
+ --_helix-neutral-800: oklch(0.29 var(--_helix-neutral-cast));
29
+ --_helix-neutral-900: oklch(0.21 var(--_helix-neutral-cast));
30
+ --_helix-neutral-950: oklch(0.15 var(--_helix-neutral-cast));
31
+ --_helix-series-hue-1: 0;
32
+ --_helix-series-hue-2: 135;
33
+ --_helix-series-hue-3: 270;
34
+ --_helix-series-hue-4: 45;
35
+ --_helix-series-hue-5: 180;
36
+ --_helix-series-hue-6: 315;
37
+ --_helix-series-hue-7: 90;
38
+ --_helix-series-hue-8: 225;
39
+ --_helix-brand-500: var(--_helix-seed-brand);
40
+ --_helix-brand-600: oklch(from var(--_helix-seed-brand) calc(l - 0.05) c h);
41
+ --_helix-brand-700: oklch(from var(--_helix-seed-brand) calc(l - 0.1) c h);
42
+ --_helix-brand-400: oklch(from var(--_helix-seed-brand) calc(l + 0.13) c h);
43
+ --_helix-brand-300: oklch(from var(--_helix-seed-brand) calc(l + 0.18) c h);
44
+ --_helix-brand-200: oklch(from var(--_helix-seed-brand) calc(l + 0.23) c h);
45
+ --_helix-brand-50: oklch(from var(--_helix-seed-brand) 0.95 calc(c * 0.25) h);
46
+ --_helix-brand-900: oklch(from var(--_helix-seed-brand) 0.28 calc(c * 0.5) h);
47
+ --_helix-accent-500: var(--_helix-seed-accent);
48
+ --_helix-accent-600: oklch(from var(--_helix-seed-accent) calc(l - 0.05) c h);
49
+ --_helix-accent-700: oklch(from var(--_helix-seed-accent) calc(l - 0.1) c h);
50
+ --_helix-accent-400: oklch(from var(--_helix-seed-accent) calc(l + 0.12) c h);
51
+ --_helix-accent-50: oklch(from var(--_helix-seed-accent) 0.95 calc(c * 0.25) h);
52
+ --_helix-accent-900: oklch(from var(--_helix-seed-accent) 0.28 calc(c * 0.5) h);
53
+ --_helix-info-500: oklch(0.58 0.16 245);
54
+ --_helix-success-500: oklch(0.58 0.15 155);
55
+ --_helix-warning-500: oklch(0.7 0.185 75);
56
+ --_helix-danger-500: oklch(0.57 0.21 27);
57
+ --_helix-danger-600: oklch(from var(--_helix-danger-500) calc(l - 0.07) calc(c - 0.04) h);
58
+ --_helix-info-600: oklch(from var(--_helix-info-500) calc(l - 0.07) calc(c - 0.04) h);
59
+ --_helix-success-600: oklch(from var(--_helix-success-500) calc(l - 0.07) calc(c - 0.04) h);
60
+ --_helix-warning-600: oklch(from var(--_helix-warning-500) calc(l - 0.18) calc(c - 0.075) h);
61
+ --_helix-danger-700: oklch(from var(--_helix-danger-500) calc(l - 0.14) calc(c - 0.06) h);
62
+ --_helix-info-700: oklch(from var(--_helix-info-500) calc(l - 0.14) calc(c - 0.06) h);
63
+ --_helix-success-700: oklch(from var(--_helix-success-500) calc(l - 0.14) calc(c - 0.06) h);
64
+ --_helix-warning-700: oklch(from var(--_helix-warning-500) calc(l - 0.26) calc(c - 0.03) h);
65
+ --_helix-info-400: oklch(from var(--_helix-info-500) calc(l + 0.12) c h);
66
+ --_helix-success-400: oklch(from var(--_helix-success-500) calc(l + 0.12) c h);
67
+ --_helix-warning-400: oklch(from var(--_helix-warning-500) calc(l + 0.12) c h);
68
+ --_helix-danger-400: oklch(from var(--_helix-danger-500) calc(l + 0.12) c h);
69
+ --_helix-syntax-comment-light: oklch(from #6e7781 0.58 c h);
70
+ --_helix-syntax-comment-dark: #8b949e;
71
+ --_helix-syntax-keyword-light: oklch(from #cf222e 0.58 c h);
72
+ --_helix-syntax-keyword-dark: #ff7b72;
73
+ --_helix-syntax-string-light: oklch(from #0a3069 0.5 c h);
74
+ --_helix-syntax-string-dark: #a5d6ff;
75
+ --_helix-syntax-tag-light: oklch(from #116329 0.54 c h);
76
+ --_helix-syntax-tag-dark: #7ee787;
77
+ --_helix-syntax-name-light: oklch(from #0550ae 0.55 c h);
78
+ --_helix-syntax-name-dark: #79c0ff;
79
+ --_helix-syntax-callable-light: oklch(from #8250df 0.58 c h);
80
+ --_helix-syntax-callable-dark: #d2a8ff;
81
+ --_helix-syntax-constant-light: oklch(from #953800 0.56 c h);
82
+ --_helix-syntax-constant-dark: #ffa657;
83
+ --_helix-syntax-invalid-light: oklch(from #82071e 0.5 c h);
84
+ --_helix-syntax-invalid-dark: #ffa198;
85
+ --_helix-scale-0: 0rem;
86
+ --_helix-scale-1: calc(0.25rem * var(--_helix-seed-density));
87
+ --_helix-scale-2: calc(0.5rem * var(--_helix-seed-density));
88
+ --_helix-scale-3: calc(0.75rem * var(--_helix-seed-density));
89
+ --_helix-scale-4: calc(1rem * var(--_helix-seed-density));
90
+ --_helix-scale-5: calc(1.25rem * var(--_helix-seed-density));
91
+ --_helix-scale-6: calc(1.5rem * var(--_helix-seed-density));
92
+ --_helix-scale-8: calc(2rem * var(--_helix-seed-density));
93
+ --_helix-scale-10: calc(2.5rem * var(--_helix-seed-density));
94
+ --_helix-scale-12: calc(3rem * var(--_helix-seed-density));
95
+ --_helix-scale-16: calc(4rem * var(--_helix-seed-density));
96
+ --_helix-family-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
97
+ --_helix-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
98
+ --_helix-size-12: 0.75rem;
99
+ --_helix-size-13: 0.8125rem;
100
+ --_helix-size-14: 0.875rem;
101
+ --_helix-size-18: 1.125rem;
102
+ --_helix-size-24: 1.5rem;
103
+ --_helix-size-32: 2rem;
104
+ --_helix-size-44: 2.75rem;
105
+ --_helix-ms-120: 120ms;
106
+ --_helix-ms-200: 200ms;
107
+ --_helix-ms-320: 320ms;
108
+ --_helix-curve-standard: cubic-bezier(0.2, 0, 0, 1);
109
+ --_helix-curve-emphasized: cubic-bezier(0.3, 0, 0, 1.2);
110
+ }
@@ -0,0 +1,493 @@
1
+ /* tokens.css from @fusion.dev/helix-styles. The source, with the reasoning in it, is in the repository. */
2
+ :root {
3
+ color-scheme: light dark;
4
+ --_helix-mode: light;
5
+ --_helix-mode-inverted: dark;
6
+ --_helix-shadow-ink-sm: light-dark(
7
+ color-mix(in oklab, var(--_helix-neutral-950) 5%, transparent),
8
+ color-mix(in oklab, var(--_helix-neutral-950) 8%, transparent)
9
+ );
10
+ --_helix-shadow-ink-md: light-dark(
11
+ color-mix(in oklab, var(--_helix-neutral-950) 6%, transparent),
12
+ color-mix(in oklab, var(--_helix-neutral-950) 10%, transparent)
13
+ );
14
+ --_helix-shadow-ink-lg: light-dark(
15
+ color-mix(in oklab, var(--_helix-neutral-950) 9%, transparent),
16
+ color-mix(in oklab, var(--_helix-neutral-950) 14%, transparent)
17
+ );
18
+ }
19
+ :root,
20
+ [data-helix-theme] {
21
+ --helix-color-background: light-dark(var(--_helix-neutral-0), var(--_helix-neutral-1000));
22
+ --helix-color-surface: light-dark(var(--_helix-neutral-50), var(--_helix-neutral-900));
23
+ --helix-color-surface-raised: light-dark(var(--_helix-neutral-100), var(--_helix-neutral-800));
24
+ --helix-color-surface-overlay: light-dark(var(--_helix-neutral-0), var(--_helix-neutral-800));
25
+ --helix-color-surface-sunken: light-dark(var(--_helix-neutral-200), var(--_helix-neutral-950));
26
+ --helix-color-well: color-mix(in oklab, var(--helix-color-foreground) 5%, transparent);
27
+ --helix-color-overlay: light-dark(
28
+ color-mix(in oklab, var(--_helix-neutral-950) 40%, transparent),
29
+ color-mix(in oklab, var(--_helix-neutral-950) 64%, transparent)
30
+ );
31
+ --helix-color-foreground: light-dark(var(--_helix-neutral-1000), var(--_helix-neutral-0));
32
+ --helix-color-foreground-muted: light-dark(var(--_helix-neutral-600), var(--_helix-neutral-400));
33
+ --helix-color-foreground-subtle: light-dark(var(--_helix-neutral-550), var(--_helix-neutral-450));
34
+ --helix-color-foreground-on-accent: var(--_helix-neutral-0);
35
+ --helix-color-surface-inverse: light-dark(var(--_helix-neutral-900), var(--_helix-neutral-100));
36
+ --helix-color-foreground-inverse: light-dark(var(--_helix-neutral-50), var(--_helix-neutral-900));
37
+ --helix-color-surface-media: light-dark(var(--_helix-neutral-1000), var(--_helix-neutral-1000));
38
+ --helix-color-foreground-media: light-dark(var(--_helix-neutral-0), var(--_helix-neutral-0));
39
+ --helix-color-border: light-dark(
40
+ color-mix(in oklab, var(--_helix-neutral-300) 60%, var(--_helix-neutral-200)),
41
+ color-mix(in oklab, var(--_helix-neutral-800) 70%, var(--_helix-neutral-900))
42
+ );
43
+ --helix-color-primary: light-dark(var(--_helix-brand-500), var(--_helix-brand-400));
44
+ --helix-color-primary-hover: light-dark(var(--_helix-brand-600), var(--_helix-brand-300));
45
+ --helix-color-primary-active: light-dark(var(--_helix-brand-700), var(--_helix-brand-200));
46
+ --helix-color-primary-subtle: light-dark(var(--_helix-brand-50), var(--_helix-brand-900));
47
+ --helix-color-accent: light-dark(var(--_helix-accent-500), var(--_helix-accent-400));
48
+ --helix-color-accent-hover: var(--_helix-accent-600);
49
+ --helix-color-accent-active: var(--_helix-accent-700);
50
+ --helix-color-accent-subtle: light-dark(var(--_helix-accent-50), var(--_helix-accent-900));
51
+ --helix-color-accent-surface: var(--_helix-accent-600);
52
+ --helix-color-accent-surface-hover: var(--_helix-accent-700);
53
+ --helix-color-primary-surface: var(--_helix-brand-600);
54
+ --helix-color-primary-surface-hover: var(--_helix-brand-700);
55
+ --helix-color-focus-ring: var(--_helix-brand-500);
56
+ --helix-color-brand-mark: light-dark(var(--_helix-brand-500), var(--_helix-brand-400));
57
+ --helix-color-syntax-callable: light-dark(
58
+ var(--_helix-syntax-callable-light),
59
+ var(--_helix-syntax-callable-dark)
60
+ );
61
+ --helix-color-syntax-comment: light-dark(
62
+ var(--_helix-syntax-comment-light),
63
+ var(--_helix-syntax-comment-dark)
64
+ );
65
+ --helix-color-syntax-constant: light-dark(
66
+ var(--_helix-syntax-constant-light),
67
+ var(--_helix-syntax-constant-dark)
68
+ );
69
+ --helix-color-syntax-invalid: light-dark(
70
+ var(--_helix-syntax-invalid-light),
71
+ var(--_helix-syntax-invalid-dark)
72
+ );
73
+ --helix-color-syntax-keyword: light-dark(
74
+ var(--_helix-syntax-keyword-light),
75
+ var(--_helix-syntax-keyword-dark)
76
+ );
77
+ --helix-color-syntax-name: light-dark(
78
+ var(--_helix-syntax-name-light),
79
+ var(--_helix-syntax-name-dark)
80
+ );
81
+ --helix-color-syntax-string: light-dark(
82
+ var(--_helix-syntax-string-light),
83
+ var(--_helix-syntax-string-dark)
84
+ );
85
+ --helix-color-syntax-tag: light-dark(
86
+ var(--_helix-syntax-tag-light),
87
+ var(--_helix-syntax-tag-dark)
88
+ );
89
+ --helix-color-series-1: light-dark(
90
+ oklch(
91
+ from var(--_helix-seed-brand) 0.595 calc(0.221 * var(--_helix-seed-chroma-scale))
92
+ calc(h + var(--_helix-series-hue-1))
93
+ ),
94
+ oklch(
95
+ from var(--_helix-seed-brand) 0.62 calc(0.206 * var(--_helix-seed-chroma-scale))
96
+ calc(h + var(--_helix-series-hue-1))
97
+ )
98
+ );
99
+ --helix-color-series-2: light-dark(
100
+ oklch(
101
+ from var(--_helix-seed-brand) 0.645 calc(0.238 * var(--_helix-seed-chroma-scale))
102
+ calc(h + var(--_helix-series-hue-2))
103
+ ),
104
+ oklch(
105
+ from var(--_helix-seed-brand) 0.645 calc(0.238 * var(--_helix-seed-chroma-scale))
106
+ calc(h + var(--_helix-series-hue-2))
107
+ )
108
+ );
109
+ --helix-color-series-3: light-dark(
110
+ oklch(
111
+ from var(--_helix-seed-brand) 0.625 calc(0.126 * var(--_helix-seed-chroma-scale))
112
+ calc(h + var(--_helix-series-hue-3))
113
+ ),
114
+ oklch(
115
+ from var(--_helix-seed-brand) 0.885 calc(0.179 * var(--_helix-seed-chroma-scale))
116
+ calc(h + var(--_helix-series-hue-3))
117
+ )
118
+ );
119
+ --helix-color-series-4: light-dark(
120
+ oklch(
121
+ from var(--_helix-seed-brand) 0.565 calc(0.295 * var(--_helix-seed-chroma-scale))
122
+ calc(h + var(--_helix-series-hue-4))
123
+ ),
124
+ oklch(
125
+ from var(--_helix-seed-brand) 0.62 calc(0.252 * var(--_helix-seed-chroma-scale))
126
+ calc(h + var(--_helix-series-hue-4))
127
+ )
128
+ );
129
+ --helix-color-series-5: light-dark(
130
+ oklch(
131
+ from var(--_helix-seed-brand) 0.64 calc(0.133 * var(--_helix-seed-chroma-scale))
132
+ calc(h + var(--_helix-series-hue-5))
133
+ ),
134
+ oklch(
135
+ from var(--_helix-seed-brand) 0.815 calc(0.17 * var(--_helix-seed-chroma-scale))
136
+ calc(h + var(--_helix-series-hue-5))
137
+ )
138
+ );
139
+ --helix-color-series-6: light-dark(
140
+ oklch(
141
+ from var(--_helix-seed-brand) 0.63 calc(0.11 * var(--_helix-seed-chroma-scale))
142
+ calc(h + var(--_helix-series-hue-6))
143
+ ),
144
+ oklch(
145
+ from var(--_helix-seed-brand) 0.825 calc(0.144 * var(--_helix-seed-chroma-scale))
146
+ calc(h + var(--_helix-series-hue-6))
147
+ )
148
+ );
149
+ --helix-color-series-7: light-dark(
150
+ oklch(
151
+ from var(--_helix-seed-brand) 0.66 calc(0.277 * var(--_helix-seed-chroma-scale))
152
+ calc(h + var(--_helix-series-hue-7))
153
+ ),
154
+ oklch(
155
+ from var(--_helix-seed-brand) 0.66 calc(0.277 * var(--_helix-seed-chroma-scale))
156
+ calc(h + var(--_helix-series-hue-7))
157
+ )
158
+ );
159
+ --helix-color-series-8: light-dark(
160
+ oklch(
161
+ from var(--_helix-seed-brand) 0.63 calc(0.154 * var(--_helix-seed-chroma-scale))
162
+ calc(h + var(--_helix-series-hue-8))
163
+ ),
164
+ oklch(
165
+ from var(--_helix-seed-brand) 0.895 calc(0.219 * var(--_helix-seed-chroma-scale))
166
+ calc(h + var(--_helix-series-hue-8))
167
+ )
168
+ );
169
+ --helix-color-series-9: light-dark(
170
+ oklch(
171
+ from var(--_helix-seed-brand) 0.52 calc(0.145 * var(--_helix-seed-chroma-scale))
172
+ calc(h + var(--_helix-series-hue-1))
173
+ ),
174
+ oklch(
175
+ from var(--_helix-seed-brand) 0.7 calc(0.135 * var(--_helix-seed-chroma-scale))
176
+ calc(h + var(--_helix-series-hue-1))
177
+ )
178
+ );
179
+ --helix-color-series-10: light-dark(
180
+ oklch(
181
+ from var(--_helix-seed-brand) 0.6 calc(0.145 * var(--_helix-seed-chroma-scale))
182
+ calc(h + var(--_helix-series-hue-2))
183
+ ),
184
+ oklch(
185
+ from var(--_helix-seed-brand) 0.78 calc(0.129 * var(--_helix-seed-chroma-scale))
186
+ calc(h + var(--_helix-series-hue-2))
187
+ )
188
+ );
189
+ --helix-color-series-11: light-dark(
190
+ oklch(
191
+ from var(--_helix-seed-brand) 0.52 calc(0.105 * var(--_helix-seed-chroma-scale))
192
+ calc(h + var(--_helix-series-hue-3))
193
+ ),
194
+ oklch(
195
+ from var(--_helix-seed-brand) 0.7 calc(0.135 * var(--_helix-seed-chroma-scale))
196
+ calc(h + var(--_helix-series-hue-3))
197
+ )
198
+ );
199
+ --helix-color-series-12: light-dark(
200
+ oklch(
201
+ from var(--_helix-seed-brand) 0.6 calc(0.145 * var(--_helix-seed-chroma-scale))
202
+ calc(h + var(--_helix-series-hue-4))
203
+ ),
204
+ oklch(
205
+ from var(--_helix-seed-brand) 0.78 calc(0.135 * var(--_helix-seed-chroma-scale))
206
+ calc(h + var(--_helix-series-hue-4))
207
+ )
208
+ );
209
+ --helix-color-series-13: light-dark(
210
+ oklch(
211
+ from var(--_helix-seed-brand) 0.52 calc(0.108 * var(--_helix-seed-chroma-scale))
212
+ calc(h + var(--_helix-series-hue-5))
213
+ ),
214
+ oklch(
215
+ from var(--_helix-seed-brand) 0.7 calc(0.135 * var(--_helix-seed-chroma-scale))
216
+ calc(h + var(--_helix-series-hue-5))
217
+ )
218
+ );
219
+ --helix-color-series-14: light-dark(
220
+ oklch(
221
+ from var(--_helix-seed-brand) 0.6 calc(0.105 * var(--_helix-seed-chroma-scale))
222
+ calc(h + var(--_helix-series-hue-6))
223
+ ),
224
+ oklch(
225
+ from var(--_helix-seed-brand) 0.78 calc(0.135 * var(--_helix-seed-chroma-scale))
226
+ calc(h + var(--_helix-series-hue-6))
227
+ )
228
+ );
229
+ --helix-color-series-15: light-dark(
230
+ oklch(
231
+ from var(--_helix-seed-brand) 0.52 calc(0.145 * var(--_helix-seed-chroma-scale))
232
+ calc(h + var(--_helix-series-hue-7))
233
+ ),
234
+ oklch(
235
+ from var(--_helix-seed-brand) 0.7 calc(0.135 * var(--_helix-seed-chroma-scale))
236
+ calc(h + var(--_helix-series-hue-7))
237
+ )
238
+ );
239
+ --helix-color-series-16: light-dark(
240
+ oklch(
241
+ from var(--_helix-seed-brand) 0.6 calc(0.145 * var(--_helix-seed-chroma-scale))
242
+ calc(h + var(--_helix-series-hue-8))
243
+ ),
244
+ oklch(
245
+ from var(--_helix-seed-brand) 0.78 calc(0.135 * var(--_helix-seed-chroma-scale))
246
+ calc(h + var(--_helix-series-hue-8))
247
+ )
248
+ );
249
+ --helix-color-series-17: light-dark(
250
+ oklch(
251
+ from var(--_helix-seed-brand) 0.52 calc(0.07 * var(--_helix-seed-chroma-scale))
252
+ calc(h + var(--_helix-series-hue-1))
253
+ ),
254
+ oklch(
255
+ from var(--_helix-seed-brand) 0.7 calc(0.07 * var(--_helix-seed-chroma-scale))
256
+ calc(h + var(--_helix-series-hue-1))
257
+ )
258
+ );
259
+ --helix-color-series-18: light-dark(
260
+ oklch(
261
+ from var(--_helix-seed-brand) 0.6 calc(0.07 * var(--_helix-seed-chroma-scale))
262
+ calc(h + var(--_helix-series-hue-2))
263
+ ),
264
+ oklch(
265
+ from var(--_helix-seed-brand) 0.78 calc(0.07 * var(--_helix-seed-chroma-scale))
266
+ calc(h + var(--_helix-series-hue-2))
267
+ )
268
+ );
269
+ --helix-color-series-19: light-dark(
270
+ oklch(
271
+ from var(--_helix-seed-brand) 0.52 calc(0.07 * var(--_helix-seed-chroma-scale))
272
+ calc(h + var(--_helix-series-hue-3))
273
+ ),
274
+ oklch(
275
+ from var(--_helix-seed-brand) 0.7 calc(0.07 * var(--_helix-seed-chroma-scale))
276
+ calc(h + var(--_helix-series-hue-3))
277
+ )
278
+ );
279
+ --helix-color-series-20: light-dark(
280
+ oklch(
281
+ from var(--_helix-seed-brand) 0.6 calc(0.07 * var(--_helix-seed-chroma-scale))
282
+ calc(h + var(--_helix-series-hue-4))
283
+ ),
284
+ oklch(
285
+ from var(--_helix-seed-brand) 0.78 calc(0.07 * var(--_helix-seed-chroma-scale))
286
+ calc(h + var(--_helix-series-hue-4))
287
+ )
288
+ );
289
+ --helix-color-series-21: light-dark(
290
+ oklch(
291
+ from var(--_helix-seed-brand) 0.52 calc(0.07 * var(--_helix-seed-chroma-scale))
292
+ calc(h + var(--_helix-series-hue-5))
293
+ ),
294
+ oklch(
295
+ from var(--_helix-seed-brand) 0.7 calc(0.07 * var(--_helix-seed-chroma-scale))
296
+ calc(h + var(--_helix-series-hue-5))
297
+ )
298
+ );
299
+ --helix-color-series-22: light-dark(
300
+ oklch(
301
+ from var(--_helix-seed-brand) 0.6 calc(0.07 * var(--_helix-seed-chroma-scale))
302
+ calc(h + var(--_helix-series-hue-6))
303
+ ),
304
+ oklch(
305
+ from var(--_helix-seed-brand) 0.78 calc(0.07 * var(--_helix-seed-chroma-scale))
306
+ calc(h + var(--_helix-series-hue-6))
307
+ )
308
+ );
309
+ --helix-color-series-23: light-dark(
310
+ oklch(
311
+ from var(--_helix-seed-brand) 0.52 calc(0.07 * var(--_helix-seed-chroma-scale))
312
+ calc(h + var(--_helix-series-hue-7))
313
+ ),
314
+ oklch(
315
+ from var(--_helix-seed-brand) 0.7 calc(0.07 * var(--_helix-seed-chroma-scale))
316
+ calc(h + var(--_helix-series-hue-7))
317
+ )
318
+ );
319
+ --helix-color-series-24: light-dark(
320
+ oklch(
321
+ from var(--_helix-seed-brand) 0.6 calc(0.07 * var(--_helix-seed-chroma-scale))
322
+ calc(h + var(--_helix-series-hue-8))
323
+ ),
324
+ oklch(
325
+ from var(--_helix-seed-brand) 0.78 calc(0.07 * var(--_helix-seed-chroma-scale))
326
+ calc(h + var(--_helix-series-hue-8))
327
+ )
328
+ );
329
+ --helix-color-info: light-dark(var(--_helix-info-600), var(--_helix-info-400));
330
+ --helix-color-success: light-dark(var(--_helix-success-600), var(--_helix-success-400));
331
+ --helix-color-warning: light-dark(var(--_helix-warning-600), var(--_helix-warning-400));
332
+ --helix-color-danger: light-dark(var(--_helix-danger-600), var(--_helix-danger-400));
333
+ --helix-color-danger-surface: var(--_helix-danger-600);
334
+ --helix-color-danger-surface-hover: var(--_helix-danger-700);
335
+ --helix-color-info-surface: var(--_helix-info-600);
336
+ --helix-color-info-surface-hover: var(--_helix-info-700);
337
+ --helix-color-success-surface: var(--_helix-success-600);
338
+ --helix-color-success-surface-hover: var(--_helix-success-700);
339
+ --helix-color-warning-surface: var(--_helix-warning-600);
340
+ --helix-color-warning-surface-hover: var(--_helix-warning-700);
341
+ --helix-space-none: var(--_helix-scale-0);
342
+ --helix-space-2xs: var(--_helix-scale-1);
343
+ --helix-space-xs: var(--_helix-scale-2);
344
+ --helix-space-sm: var(--_helix-scale-3);
345
+ --helix-space-md: var(--_helix-scale-4);
346
+ --helix-space-lg: var(--_helix-scale-6);
347
+ --helix-space-xl: var(--_helix-scale-8);
348
+ --helix-space-2xl: var(--_helix-scale-12);
349
+ --helix-space-3xl: var(--_helix-scale-16);
350
+ --helix-radii-none: 0;
351
+ --helix-radii-sm: calc(var(--_helix-seed-radii) * 0.5);
352
+ --helix-radii-md: var(--_helix-seed-radii);
353
+ --helix-radii-lg: calc(var(--_helix-seed-radii) * 1.5);
354
+ --helix-radii-full: 9999px;
355
+ --helix-font-sans: var(--_helix-family-sans);
356
+ --helix-font-mono: var(--_helix-family-mono);
357
+ --helix-font-display: var(--_helix-family-display, var(--_helix-family-sans));
358
+ --helix-text-xs: var(--_helix-size-12);
359
+ --helix-text-sm: var(--_helix-size-13);
360
+ --helix-text-md: var(--_helix-size-14);
361
+ --helix-text-lg: var(--_helix-size-18);
362
+ --helix-text-xl: var(--_helix-size-24);
363
+ --helix-text-2xl: var(--_helix-size-32);
364
+ --helix-text-3xl: var(--_helix-size-44);
365
+ --helix-weight-regular: 400;
366
+ --helix-weight-medium: 500;
367
+ --helix-weight-semibold: 600;
368
+ --helix-leading-tight: 1.2;
369
+ --helix-leading-normal: 1.5;
370
+ --helix-leading-loose: 1.7;
371
+ --helix-leading-heading: calc(0.99em + 0.5rem);
372
+ --helix-tracking-tight: -0.01em;
373
+ --helix-tracking-normal: 0;
374
+ --helix-tracking-wide: 0.02em;
375
+ --helix-tracking-wider: 0.12em;
376
+ --helix-border-thin: 1px;
377
+ --helix-border-thick: 2px;
378
+ --helix-border-surface: var(--helix-border-thin);
379
+ --helix-border-floating: 0;
380
+ --helix-shadow-none: none;
381
+ --helix-shadow-sm: 0 1px 2px var(--_helix-shadow-ink-sm);
382
+ --helix-shadow-md: 0 4px 12px var(--_helix-shadow-ink-md);
383
+ --helix-shadow-lg: 0 12px 32px var(--_helix-shadow-ink-lg);
384
+ --helix-shadow-surface: var(--helix-shadow-none);
385
+ --helix-shadow-floating: var(--helix-shadow-lg);
386
+ --helix-material-backdrop: blur(var(--helix-material-blur-md)) saturate(1.5);
387
+ --helix-material-opacity: 1;
388
+ --helix-material-blur-sm: 8px;
389
+ --helix-material-blur-md: 16px;
390
+ --helix-material-blur-lg: 32px;
391
+ --helix-material-translucent: color-mix(
392
+ in oklab,
393
+ light-dark(var(--_helix-neutral-0), var(--_helix-neutral-900)) 30%,
394
+ transparent
395
+ );
396
+ --helix-material-translucent-strong: color-mix(
397
+ in oklab,
398
+ light-dark(var(--_helix-neutral-0), var(--_helix-neutral-900)) 88%,
399
+ transparent
400
+ );
401
+ --helix-material-border: light-dark(
402
+ color-mix(in oklab, var(--_helix-neutral-950) 14%, transparent),
403
+ color-mix(in oklab, var(--_helix-neutral-0) 12%, transparent)
404
+ );
405
+ --helix-duration-instant: 0ms;
406
+ --helix-duration-fast: var(--_helix-ms-120);
407
+ --helix-duration-normal: var(--_helix-ms-200);
408
+ --helix-duration-slow: var(--_helix-ms-320);
409
+ --helix-easing-standard: var(--_helix-curve-standard);
410
+ --helix-easing-emphasized: var(--_helix-curve-emphasized);
411
+ --helix-easing-decelerate: cubic-bezier(0, 0, 0, 1);
412
+ --helix-easing-accelerate: cubic-bezier(0.3, 0, 1, 1);
413
+ --helix-easing-spring: linear(
414
+ 0,
415
+ 0.006,
416
+ 0.025,
417
+ 0.101,
418
+ 0.539,
419
+ 0.826,
420
+ 0.976,
421
+ 1.037,
422
+ 1.043,
423
+ 1.026,
424
+ 1.006,
425
+ 0.997,
426
+ 1
427
+ );
428
+ --helix-size-control-md: calc(2.5rem * var(--_helix-seed-density));
429
+ --helix-size-control-sm: calc(2rem * var(--_helix-seed-density));
430
+ --helix-size-control: var(--helix-size-control-md);
431
+ --helix-text-control: var(--helix-text-sm);
432
+ --helix-space-control: var(--helix-space-md);
433
+ --helix-size-control-lg: calc(3rem * var(--_helix-seed-density));
434
+ --helix-size-control-tight: calc(var(--helix-size-control) * 0.8);
435
+ --helix-size-control-loose: calc(var(--helix-size-control) * 1.2);
436
+ --helix-size-icon-tight: calc(var(--helix-size-icon) * 0.8);
437
+ --helix-size-icon-loose: calc(var(--helix-size-icon) * 1.2);
438
+ --helix-size-checkbox-tight: calc(var(--helix-size-checkbox) * 0.8);
439
+ --helix-size-checkbox-loose: calc(var(--helix-size-checkbox) * 1.2);
440
+ --helix-size-button: calc(12.5rem * var(--_helix-seed-density));
441
+ --helix-size-badge: calc(1rem * var(--_helix-seed-density));
442
+ --helix-size-avatar: var(--helix-size-avatar-md);
443
+ --helix-size-avatar-sm: calc(1.5rem * var(--_helix-seed-density));
444
+ --helix-size-avatar-md: calc(2rem * var(--_helix-seed-density));
445
+ --helix-size-avatar-lg: calc(2.5rem * var(--_helix-seed-density));
446
+ --helix-size-tag: var(--helix-size-tag-md);
447
+ --helix-size-tag-lg: calc(2rem * var(--_helix-seed-density));
448
+ --helix-size-tag-md: calc(1.75rem * var(--_helix-seed-density));
449
+ --helix-size-tag-sm: calc(1.5rem * var(--_helix-seed-density));
450
+ --helix-size-progress: calc(0.5rem * var(--_helix-seed-density));
451
+ --helix-size-meter: calc(1rem * var(--_helix-seed-density));
452
+ --helix-size-checkbox: var(--helix-size-checkbox-md);
453
+ --helix-size-checkbox-lg: calc(1.5rem * var(--_helix-seed-density));
454
+ --helix-size-checkbox-md: calc(1.25rem * var(--_helix-seed-density));
455
+ --helix-size-checkbox-sm: calc(1rem * var(--_helix-seed-density));
456
+ --helix-size-switch: var(--helix-size-switch-md);
457
+ --helix-size-switch-lg: calc(1.75rem * var(--_helix-seed-density));
458
+ --helix-size-switch-md: calc(1.5rem * var(--_helix-seed-density));
459
+ --helix-size-switch-sm: calc(1.25rem * var(--_helix-seed-density));
460
+ --helix-size-loader-md: calc(1.5rem * var(--_helix-seed-density));
461
+ --helix-size-loader-sm: calc(1rem * var(--_helix-seed-density));
462
+ --helix-size-loader-lg: calc(2rem * var(--_helix-seed-density));
463
+ --helix-size-header: calc(3.5rem * var(--_helix-seed-density));
464
+ --helix-size-icon: var(--helix-size-icon-md);
465
+ --helix-size-icon-lg: calc(1.5rem * var(--_helix-seed-density));
466
+ --helix-size-icon-md: calc(1.25rem * var(--_helix-seed-density));
467
+ --helix-size-icon-sm: calc(1rem * var(--_helix-seed-density));
468
+ --helix-size-focus-ring: var(--helix-border-thick);
469
+ --helix-size-focus-offset: 2px;
470
+ --helix-size-focus-reach: calc(var(--helix-size-focus-ring) + var(--helix-size-focus-offset));
471
+ --helix-layer-beneath: -1;
472
+ --helix-layer-base: 0;
473
+ --helix-layer-raised: 10;
474
+ --helix-layer-sticky: 100;
475
+ --helix-layer-overlay: 1000;
476
+ --helix-layer-toast: 1200;
477
+ }
478
+ [data-color-mode="light"] {
479
+ color-scheme: light;
480
+ --_helix-mode: light;
481
+ --_helix-mode-inverted: dark;
482
+ }
483
+ [data-color-mode="dark"] {
484
+ color-scheme: dark;
485
+ --_helix-mode: dark;
486
+ --_helix-mode-inverted: light;
487
+ }
488
+ @media (prefers-color-scheme: dark) {
489
+ :root {
490
+ --_helix-mode: dark;
491
+ --_helix-mode-inverted: light;
492
+ }
493
+ }
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@fusion.dev/helix-styles",
3
+ "description": "Design tokens and base layer. Pure CSS, no JavaScript.",
4
+ "version": "0.0.0-dev",
5
+ "license": "MIT",
6
+ "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
+ "repository": {
8
+ "directory": "helix/styles",
9
+ "type": "git",
10
+ "url": "git+https://github.com/project-fusion/fusion.git"
11
+ },
12
+ "type": "module",
13
+ "exports": {
14
+ "./all.css": "./dist/all.css",
15
+ "./base.css": "./dist/base.css",
16
+ "./primitives.css": "./dist/primitives.css",
17
+ "./tokens.css": "./dist/tokens.css",
18
+ "./tokens.json": "./tokens.json"
19
+ },
20
+ "files": [
21
+ "dist",
22
+ "tokens.json"
23
+ ],
24
+ "sideEffects": true,
25
+ "scripts": {
26
+ "build": "node ../../tooling/scripts/build-styles-dist.mjs"
27
+ },
28
+ "bugs": "https://github.com/project-fusion/fusion/issues",
29
+ "homepage": "https://fusion.dev",
30
+ "keywords": [
31
+ "design-tokens",
32
+ "css",
33
+ "theming",
34
+ "design-system"
35
+ ],
36
+ "publishConfig": {
37
+ "access": "restricted"
38
+ }
39
+ }