@fusion.dev/helix-styles 0.4.1 → 0.4.3
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 +3 -3
- package/dist/elements.css +259 -0
- package/dist/helix.css +5 -0
- package/dist/tokens.css +17 -17
- package/package.json +10 -8
- package/dist/all.css +0 -4
- /package/{tokens.json → dist/tokens.json} +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @fusion.dev/helix-styles
|
|
2
2
|
|
|
3
|
-
Design tokens and the base layer. Pure CSS and a JSON copy of the tokens
|
|
3
|
+
Design tokens and the base layer. Pure CSS and a JSON copy of the tokens. No
|
|
4
4
|
JavaScript at all.
|
|
5
5
|
|
|
6
6
|
```sh
|
|
@@ -8,7 +8,7 @@ npm install @fusion.dev/helix-styles
|
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
```css
|
|
11
|
-
@import '@fusion.dev/helix-styles/
|
|
11
|
+
@import '@fusion.dev/helix-styles/helix.css';
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Or take the pieces:
|
|
@@ -18,7 +18,7 @@ Or take the pieces:
|
|
|
18
18
|
| `tokens.css` | the custom properties, light and dark |
|
|
19
19
|
| `base.css` | element defaults and the reset |
|
|
20
20
|
| `primitives.css` | utility layer |
|
|
21
|
-
| `
|
|
21
|
+
| `helix.css` | all four, in order |
|
|
22
22
|
| `tokens.json` | the same token names for a build step that needs them |
|
|
23
23
|
|
|
24
24
|
The tokens are the contract every Helix component reads, so overriding one here
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/* elements.css from @fusion.dev/helix-styles. The source, with the reasoning in it, is in the repository. */
|
|
2
|
+
helix-accordion:not(:defined),
|
|
3
|
+
helix-accordion-item:not(:defined),
|
|
4
|
+
helix-announcement:not(:defined),
|
|
5
|
+
helix-app-header:not(:defined),
|
|
6
|
+
helix-aura:not(:defined),
|
|
7
|
+
helix-avatar:not(:defined),
|
|
8
|
+
helix-avatar-group:not(:defined),
|
|
9
|
+
helix-badge:not(:defined),
|
|
10
|
+
helix-bar-chart:not(:defined),
|
|
11
|
+
helix-blockquote:not(:defined),
|
|
12
|
+
helix-breadcrumb:not(:defined),
|
|
13
|
+
helix-breadcrumbs:not(:defined),
|
|
14
|
+
helix-button:not(:defined),
|
|
15
|
+
helix-button-group:not(:defined),
|
|
16
|
+
helix-callout:not(:defined),
|
|
17
|
+
helix-card:not(:defined),
|
|
18
|
+
helix-carousel:not(:defined),
|
|
19
|
+
helix-chat:not(:defined),
|
|
20
|
+
helix-chat-composer:not(:defined),
|
|
21
|
+
helix-chat-message:not(:defined),
|
|
22
|
+
helix-checkbox:not(:defined),
|
|
23
|
+
helix-checkbox-group:not(:defined),
|
|
24
|
+
helix-code:not(:defined),
|
|
25
|
+
helix-code-block:not(:defined),
|
|
26
|
+
helix-color-input:not(:defined),
|
|
27
|
+
helix-color-picker:not(:defined),
|
|
28
|
+
helix-combobox:not(:defined),
|
|
29
|
+
helix-command:not(:defined),
|
|
30
|
+
helix-copy-button:not(:defined),
|
|
31
|
+
helix-data-table:not(:defined),
|
|
32
|
+
helix-date-input:not(:defined),
|
|
33
|
+
helix-date-picker:not(:defined),
|
|
34
|
+
helix-dialog:not(:defined),
|
|
35
|
+
helix-divider:not(:defined),
|
|
36
|
+
helix-donut-chart:not(:defined),
|
|
37
|
+
helix-drawer:not(:defined),
|
|
38
|
+
helix-drilldown:not(:defined),
|
|
39
|
+
helix-drilldown-item:not(:defined),
|
|
40
|
+
helix-empty:not(:defined),
|
|
41
|
+
helix-file-input:not(:defined),
|
|
42
|
+
helix-flex:not(:defined),
|
|
43
|
+
helix-format-date:not(:defined),
|
|
44
|
+
helix-grid:not(:defined),
|
|
45
|
+
helix-heatmap:not(:defined),
|
|
46
|
+
helix-icon:not(:defined),
|
|
47
|
+
helix-icon-button:not(:defined),
|
|
48
|
+
helix-image:not(:defined),
|
|
49
|
+
helix-input:not(:defined),
|
|
50
|
+
helix-kbd:not(:defined),
|
|
51
|
+
helix-legend:not(:defined),
|
|
52
|
+
helix-line-chart:not(:defined),
|
|
53
|
+
helix-list:not(:defined),
|
|
54
|
+
helix-list-item:not(:defined),
|
|
55
|
+
helix-listbox:not(:defined),
|
|
56
|
+
helix-loader:not(:defined),
|
|
57
|
+
helix-megamenu:not(:defined),
|
|
58
|
+
helix-menu:not(:defined),
|
|
59
|
+
helix-menu-item:not(:defined),
|
|
60
|
+
helix-meter:not(:defined),
|
|
61
|
+
helix-navigation:not(:defined),
|
|
62
|
+
helix-notification:not(:defined),
|
|
63
|
+
helix-notifications:not(:defined),
|
|
64
|
+
helix-number-input:not(:defined),
|
|
65
|
+
helix-option:not(:defined),
|
|
66
|
+
helix-option-group:not(:defined),
|
|
67
|
+
helix-outline:not(:defined),
|
|
68
|
+
helix-pagination:not(:defined),
|
|
69
|
+
helix-pagination-size:not(:defined),
|
|
70
|
+
helix-pagination-summary:not(:defined),
|
|
71
|
+
helix-pin-input:not(:defined),
|
|
72
|
+
helix-popover:not(:defined),
|
|
73
|
+
helix-progress:not(:defined),
|
|
74
|
+
helix-qr-code:not(:defined),
|
|
75
|
+
helix-quote:not(:defined),
|
|
76
|
+
helix-radio:not(:defined),
|
|
77
|
+
helix-radio-group:not(:defined),
|
|
78
|
+
helix-rating:not(:defined),
|
|
79
|
+
helix-sandbox:not(:defined),
|
|
80
|
+
helix-sandbox-preview:not(:defined),
|
|
81
|
+
helix-sandbox-source:not(:defined),
|
|
82
|
+
helix-sandbox-status-bar:not(:defined),
|
|
83
|
+
helix-sandbox-terminal:not(:defined),
|
|
84
|
+
helix-sandbox-toolbar:not(:defined),
|
|
85
|
+
helix-scroll-area:not(:defined),
|
|
86
|
+
helix-select:not(:defined),
|
|
87
|
+
helix-skeleton:not(:defined),
|
|
88
|
+
helix-slider:not(:defined),
|
|
89
|
+
helix-sparkline:not(:defined),
|
|
90
|
+
helix-speed-dial:not(:defined),
|
|
91
|
+
helix-speed-dial-item:not(:defined),
|
|
92
|
+
helix-splitter:not(:defined),
|
|
93
|
+
helix-stat:not(:defined),
|
|
94
|
+
helix-stat-group:not(:defined),
|
|
95
|
+
helix-step:not(:defined),
|
|
96
|
+
helix-steps:not(:defined),
|
|
97
|
+
helix-switch:not(:defined),
|
|
98
|
+
helix-tab:not(:defined),
|
|
99
|
+
helix-tab-panel:not(:defined),
|
|
100
|
+
helix-table:not(:defined),
|
|
101
|
+
helix-table-cell:not(:defined),
|
|
102
|
+
helix-table-column:not(:defined),
|
|
103
|
+
helix-table-row:not(:defined),
|
|
104
|
+
helix-tabs:not(:defined),
|
|
105
|
+
helix-tag:not(:defined),
|
|
106
|
+
helix-text:not(:defined),
|
|
107
|
+
helix-textarea:not(:defined),
|
|
108
|
+
helix-time-input:not(:defined),
|
|
109
|
+
helix-time-picker:not(:defined),
|
|
110
|
+
helix-timeline:not(:defined),
|
|
111
|
+
helix-timeline-item:not(:defined),
|
|
112
|
+
helix-toast:not(:defined),
|
|
113
|
+
helix-toast-item:not(:defined),
|
|
114
|
+
helix-toggle:not(:defined),
|
|
115
|
+
helix-toggle-group:not(:defined),
|
|
116
|
+
helix-toolbar:not(:defined),
|
|
117
|
+
helix-tooltip:not(:defined),
|
|
118
|
+
helix-tour:not(:defined),
|
|
119
|
+
helix-tour-stop:not(:defined),
|
|
120
|
+
helix-tree:not(:defined),
|
|
121
|
+
helix-tree-item:not(:defined),
|
|
122
|
+
helix-trend:not(:defined),
|
|
123
|
+
helix-video:not(:defined),
|
|
124
|
+
helix-video-playlist:not(:defined),
|
|
125
|
+
helix-video-playlist-item:not(:defined),
|
|
126
|
+
helix-video-playlist-menu:not(:defined),
|
|
127
|
+
helix-virtual-list:not(:defined) {
|
|
128
|
+
visibility: hidden;
|
|
129
|
+
}
|
|
130
|
+
:where(
|
|
131
|
+
helix-accordion[align],
|
|
132
|
+
helix-accordion-item[align],
|
|
133
|
+
helix-announcement[align],
|
|
134
|
+
helix-app-header[align],
|
|
135
|
+
helix-aura[align],
|
|
136
|
+
helix-avatar[align],
|
|
137
|
+
helix-avatar-group[align],
|
|
138
|
+
helix-badge[align],
|
|
139
|
+
helix-bar-chart[align],
|
|
140
|
+
helix-blockquote[align],
|
|
141
|
+
helix-breadcrumb[align],
|
|
142
|
+
helix-breadcrumbs[align],
|
|
143
|
+
helix-button[align],
|
|
144
|
+
helix-button-group[align],
|
|
145
|
+
helix-callout[align],
|
|
146
|
+
helix-card[align],
|
|
147
|
+
helix-carousel[align],
|
|
148
|
+
helix-chat[align],
|
|
149
|
+
helix-chat-composer[align],
|
|
150
|
+
helix-chat-message[align],
|
|
151
|
+
helix-checkbox[align],
|
|
152
|
+
helix-checkbox-group[align],
|
|
153
|
+
helix-code[align],
|
|
154
|
+
helix-code-block[align],
|
|
155
|
+
helix-color-input[align],
|
|
156
|
+
helix-color-picker[align],
|
|
157
|
+
helix-combobox[align],
|
|
158
|
+
helix-command[align],
|
|
159
|
+
helix-copy-button[align],
|
|
160
|
+
helix-data-table[align],
|
|
161
|
+
helix-date-input[align],
|
|
162
|
+
helix-date-picker[align],
|
|
163
|
+
helix-dialog[align],
|
|
164
|
+
helix-divider[align],
|
|
165
|
+
helix-donut-chart[align],
|
|
166
|
+
helix-drawer[align],
|
|
167
|
+
helix-drilldown[align],
|
|
168
|
+
helix-drilldown-item[align],
|
|
169
|
+
helix-empty[align],
|
|
170
|
+
helix-file-input[align],
|
|
171
|
+
helix-flex[align],
|
|
172
|
+
helix-format-date[align],
|
|
173
|
+
helix-grid[align],
|
|
174
|
+
helix-heatmap[align],
|
|
175
|
+
helix-icon[align],
|
|
176
|
+
helix-icon-button[align],
|
|
177
|
+
helix-image[align],
|
|
178
|
+
helix-input[align],
|
|
179
|
+
helix-kbd[align],
|
|
180
|
+
helix-legend[align],
|
|
181
|
+
helix-line-chart[align],
|
|
182
|
+
helix-list[align],
|
|
183
|
+
helix-list-item[align],
|
|
184
|
+
helix-listbox[align],
|
|
185
|
+
helix-loader[align],
|
|
186
|
+
helix-megamenu[align],
|
|
187
|
+
helix-menu[align],
|
|
188
|
+
helix-menu-item[align],
|
|
189
|
+
helix-meter[align],
|
|
190
|
+
helix-navigation[align],
|
|
191
|
+
helix-notification[align],
|
|
192
|
+
helix-notifications[align],
|
|
193
|
+
helix-number-input[align],
|
|
194
|
+
helix-option[align],
|
|
195
|
+
helix-option-group[align],
|
|
196
|
+
helix-outline[align],
|
|
197
|
+
helix-pagination[align],
|
|
198
|
+
helix-pagination-size[align],
|
|
199
|
+
helix-pagination-summary[align],
|
|
200
|
+
helix-pin-input[align],
|
|
201
|
+
helix-popover[align],
|
|
202
|
+
helix-progress[align],
|
|
203
|
+
helix-qr-code[align],
|
|
204
|
+
helix-quote[align],
|
|
205
|
+
helix-radio[align],
|
|
206
|
+
helix-radio-group[align],
|
|
207
|
+
helix-rating[align],
|
|
208
|
+
helix-sandbox[align],
|
|
209
|
+
helix-sandbox-preview[align],
|
|
210
|
+
helix-sandbox-source[align],
|
|
211
|
+
helix-sandbox-status-bar[align],
|
|
212
|
+
helix-sandbox-terminal[align],
|
|
213
|
+
helix-sandbox-toolbar[align],
|
|
214
|
+
helix-scroll-area[align],
|
|
215
|
+
helix-select[align],
|
|
216
|
+
helix-skeleton[align],
|
|
217
|
+
helix-slider[align],
|
|
218
|
+
helix-sparkline[align],
|
|
219
|
+
helix-speed-dial[align],
|
|
220
|
+
helix-speed-dial-item[align],
|
|
221
|
+
helix-splitter[align],
|
|
222
|
+
helix-stat[align],
|
|
223
|
+
helix-stat-group[align],
|
|
224
|
+
helix-step[align],
|
|
225
|
+
helix-steps[align],
|
|
226
|
+
helix-switch[align],
|
|
227
|
+
helix-tab[align],
|
|
228
|
+
helix-tab-panel[align],
|
|
229
|
+
helix-table[align],
|
|
230
|
+
helix-table-cell[align],
|
|
231
|
+
helix-table-column[align],
|
|
232
|
+
helix-table-row[align],
|
|
233
|
+
helix-tabs[align],
|
|
234
|
+
helix-tag[align],
|
|
235
|
+
helix-text[align],
|
|
236
|
+
helix-textarea[align],
|
|
237
|
+
helix-time-input[align],
|
|
238
|
+
helix-time-picker[align],
|
|
239
|
+
helix-timeline[align],
|
|
240
|
+
helix-timeline-item[align],
|
|
241
|
+
helix-toast[align],
|
|
242
|
+
helix-toast-item[align],
|
|
243
|
+
helix-toggle[align],
|
|
244
|
+
helix-toggle-group[align],
|
|
245
|
+
helix-toolbar[align],
|
|
246
|
+
helix-tooltip[align],
|
|
247
|
+
helix-tour[align],
|
|
248
|
+
helix-tour-stop[align],
|
|
249
|
+
helix-tree[align],
|
|
250
|
+
helix-tree-item[align],
|
|
251
|
+
helix-trend[align],
|
|
252
|
+
helix-video[align],
|
|
253
|
+
helix-video-playlist[align],
|
|
254
|
+
helix-video-playlist-item[align],
|
|
255
|
+
helix-video-playlist-menu[align],
|
|
256
|
+
helix-virtual-list[align]
|
|
257
|
+
) {
|
|
258
|
+
text-align: inherit;
|
|
259
|
+
}
|
package/dist/helix.css
ADDED
package/dist/tokens.css
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* tokens.css from @fusion.dev/helix-styles. The source, with the reasoning in it, is in the repository. */
|
|
2
2
|
:root {
|
|
3
|
-
color-scheme: light dark;
|
|
4
3
|
--_helix-mode: light;
|
|
5
4
|
--_helix-mode-inverted: dark;
|
|
6
5
|
--_helix-shadow-ink-sm: light-dark(
|
|
@@ -15,6 +14,23 @@
|
|
|
15
14
|
color-mix(in oklab, var(--_helix-neutral-950) 9%, transparent),
|
|
16
15
|
color-mix(in oklab, var(--_helix-neutral-950) 14%, transparent)
|
|
17
16
|
);
|
|
17
|
+
color-scheme: light dark;
|
|
18
|
+
}
|
|
19
|
+
[data-color-mode="light"] {
|
|
20
|
+
--_helix-mode: light;
|
|
21
|
+
--_helix-mode-inverted: dark;
|
|
22
|
+
color-scheme: light;
|
|
23
|
+
}
|
|
24
|
+
[data-color-mode="dark"] {
|
|
25
|
+
--_helix-mode: dark;
|
|
26
|
+
--_helix-mode-inverted: light;
|
|
27
|
+
color-scheme: dark;
|
|
28
|
+
}
|
|
29
|
+
@media (prefers-color-scheme: dark) {
|
|
30
|
+
:root {
|
|
31
|
+
--_helix-mode: dark;
|
|
32
|
+
--_helix-mode-inverted: light;
|
|
33
|
+
}
|
|
18
34
|
}
|
|
19
35
|
:root,
|
|
20
36
|
[data-helix-theme] {
|
|
@@ -475,19 +491,3 @@
|
|
|
475
491
|
--helix-layer-overlay: 1000;
|
|
476
492
|
--helix-layer-toast: 1200;
|
|
477
493
|
}
|
|
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-styles",
|
|
3
3
|
"description": "Design tokens and base layer. Pure CSS, no JavaScript.",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -11,21 +11,23 @@
|
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
|
14
|
-
"./all.css": "./dist/all.css",
|
|
15
14
|
"./base.css": "./dist/base.css",
|
|
15
|
+
"./elements.css": "./dist/elements.css",
|
|
16
|
+
"./helix.css": "./dist/helix.css",
|
|
16
17
|
"./primitives.css": "./dist/primitives.css",
|
|
17
18
|
"./tokens.css": "./dist/tokens.css",
|
|
18
|
-
"./tokens.json": "./tokens.json"
|
|
19
|
+
"./tokens.json": "./dist/tokens.json"
|
|
19
20
|
},
|
|
20
21
|
"files": [
|
|
21
|
-
"dist"
|
|
22
|
-
"tokens.json"
|
|
22
|
+
"dist"
|
|
23
23
|
],
|
|
24
24
|
"sideEffects": true,
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build": "
|
|
27
|
-
"
|
|
28
|
-
"
|
|
26
|
+
"build": "bun run token-layer && bun run elements-css && bun scripts/build-styles-dist.mjs",
|
|
27
|
+
"elements-css": "build-elements-css",
|
|
28
|
+
"styles-dist": "bun scripts/build-styles-dist.mjs",
|
|
29
|
+
"token-layer": "bun scripts/build-token-layer.mjs",
|
|
30
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
29
31
|
},
|
|
30
32
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
31
33
|
"devDependencies": {
|
package/dist/all.css
DELETED
|
File without changes
|