@fusion.dev/helix-styles 0.22.0 → 0.24.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/base.css CHANGED
@@ -174,22 +174,62 @@ helix-card > [slot="media"] {
174
174
  letter-spacing: var(--helix-tracking-normal);
175
175
  line-height: var(--helix-leading-normal);
176
176
  }
177
- [data-tone="muted"],
178
- helix-text[tone="muted"] {
177
+ [data-emphasis="muted"],
178
+ helix-text[emphasis="muted"] {
179
179
  color: var(--helix-color-foreground-muted);
180
180
  }
181
- [data-tone="subtle"],
182
- helix-text[tone="subtle"] {
181
+ [data-emphasis="subtle"],
182
+ helix-text[emphasis="subtle"] {
183
183
  color: var(--helix-color-foreground-subtle);
184
184
  }
185
- [data-tone="primary"],
186
- helix-text[tone="primary"] {
187
- color: var(--helix-color-primary);
185
+ [data-tone="accent"],
186
+ helix-text[tone="accent"] {
187
+ color: var(--helix-color-accent);
188
188
  }
189
189
  [data-tone="danger"],
190
190
  helix-text[tone="danger"] {
191
191
  color: var(--helix-color-danger);
192
192
  }
193
+ [data-tone="info"],
194
+ helix-text[tone="info"] {
195
+ color: var(--helix-color-info);
196
+ }
197
+ [data-tone="primary"],
198
+ helix-text[tone="primary"] {
199
+ color: var(--helix-color-primary);
200
+ }
201
+ [data-tone="success"],
202
+ helix-text[tone="success"] {
203
+ color: var(--helix-color-success);
204
+ }
205
+ [data-tone="warning"],
206
+ helix-text[tone="warning"] {
207
+ color: var(--helix-color-warning);
208
+ }
209
+ [data-tone="accent"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
210
+ helix-text[tone="accent"]:is([emphasis="muted"], [emphasis="subtle"]) {
211
+ color: var(--helix-color-accent-muted);
212
+ }
213
+ [data-tone="danger"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
214
+ helix-text[tone="danger"]:is([emphasis="muted"], [emphasis="subtle"]) {
215
+ color: var(--helix-color-danger-muted);
216
+ }
217
+ [data-tone="info"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
218
+ helix-text[tone="info"]:is([emphasis="muted"], [emphasis="subtle"]) {
219
+ color: var(--helix-color-info-muted);
220
+ }
221
+ [data-tone="primary"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
222
+ helix-text[tone="primary"]:is([emphasis="muted"], [emphasis="subtle"]) {
223
+ color: var(--helix-color-primary-muted);
224
+ }
225
+ [data-tone="success"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
226
+ helix-text[tone="success"]:is([emphasis="muted"], [emphasis="subtle"]) {
227
+ color: var(--helix-color-success-muted);
228
+ }
229
+ [data-tone="warning"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
230
+ helix-text[tone="warning"]:is([emphasis="muted"], [emphasis="subtle"]) {
231
+ color: var(--helix-color-warning-muted);
232
+ }
193
233
  [data-button] {
194
234
  --_button-edge: var(--helix-color-border);
195
235
  min-inline-size: var(--button-inline-size, auto);
@@ -642,9 +682,9 @@ helix-toast:not([data-color-mode]) {
642
682
  }
643
683
  :where([data-prose] p),
644
684
  :where([data-prose] ul, [data-prose] ol),
645
- :where([data-prose] pre),
685
+ :where([data-prose] pre, [data-prose] helix-code-block),
646
686
  :where([data-prose] table),
647
- :where([data-prose] blockquote) {
687
+ :where([data-prose] blockquote, [data-prose] helix-callout) {
648
688
  margin-block: var(--helix-space-none) var(--helix-space-sm);
649
689
  }
650
690
  :where([data-prose] > :last-child) {
@@ -690,6 +730,61 @@ helix-toast:not([data-color-mode]) {
690
730
  font-size: inherit;
691
731
  padding: var(--helix-space-none);
692
732
  }
733
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(table, pre),
734
+ :where(helix-chat-message) :where(helix-table) {
735
+ background-color: var(--helix-color-surface-sunken);
736
+ border: var(--helix-border-thin) solid var(--helix-color-border);
737
+ border-radius: var(--helix-radii-lg);
738
+ }
739
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(table),
740
+ :where(helix-chat-message) :where(helix-table) {
741
+ padding-inline: var(--helix-space-sm);
742
+ }
743
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(table) {
744
+ border-collapse: separate;
745
+ border-spacing: 0;
746
+ display: table;
747
+ inline-size: 100%;
748
+ }
749
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(th, td) {
750
+ padding-block: var(--helix-space-xs);
751
+ padding-inline: var(--helix-space-none) var(--helix-space-md);
752
+ }
753
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(h1) {
754
+ font-size: var(--helix-text-xl);
755
+ }
756
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(h2) {
757
+ font-size: var(--helix-text-lg);
758
+ }
759
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(h3) {
760
+ font-size: var(--helix-text-md);
761
+ }
762
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(h4, h5, h6) {
763
+ font-size: var(--helix-text-sm);
764
+ }
765
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose])
766
+ :where(h1, h2, h3, h4, h5, h6) {
767
+ font-weight: var(--helix-weight-medium);
768
+ margin-block: var(--helix-space-md) var(--helix-space-sm);
769
+ }
770
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose])
771
+ :where(h1, h2, h3, h4, h5, h6):first-child {
772
+ margin-block-start: var(--helix-space-none);
773
+ }
774
+ :where(helix-chat-message) :where(helix-table) {
775
+ --helix-size-control: var(--helix-size-control-sm);
776
+ }
777
+ :where(helix-chat-message) :where(helix-code-block) {
778
+ --code-block-background-color: var(--helix-color-surface-sunken);
779
+ }
780
+ :where(helix-chat-message) :where(helix-table-row:last-of-type > helix-table-cell) {
781
+ border-block-end-color: transparent;
782
+ }
783
+ :where(helix-chat-message)
784
+ :where(helix-list[kind="ordered"], helix-list[kind="unordered"])
785
+ > :where(helix-list-item) {
786
+ --list-item-padding: var(--helix-space-2xs) var(--helix-space-none);
787
+ }
693
788
  :where([data-prose] blockquote) {
694
789
  border-inline-start: var(--helix-border-thick) solid var(--helix-color-border);
695
790
  color: var(--helix-color-foreground-muted);
@@ -700,6 +795,46 @@ helix-toast:not([data-color-mode]) {
700
795
  border-block-start: var(--helix-border-thin) solid var(--helix-color-border);
701
796
  margin-block: var(--helix-space-md);
702
797
  }
798
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(:not(pre) > code) {
799
+ background-color: color-mix(in oklab, var(--helix-color-foreground) 6%, transparent);
800
+ border-radius: var(--helix-radii-sm);
801
+ color: color-mix(
802
+ in oklab,
803
+ var(--helix-color-foreground) 30%,
804
+ var(--helix-color-foreground-muted)
805
+ );
806
+ font-size: calc(var(--helix-text-sm) / var(--helix-text-md) * 1em);
807
+ padding-inline: calc(var(--helix-space-2xs) * 0.5);
808
+ }
809
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(ul, ol) {
810
+ padding-inline-start: var(--helix-space-md);
811
+ }
812
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(li) {
813
+ margin-block: var(--helix-space-none);
814
+ padding-block: var(--helix-space-2xs);
815
+ }
816
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(blockquote) {
817
+ background-color: var(--helix-color-surface-sunken);
818
+ border: none;
819
+ border-radius: var(--helix-radii-sm);
820
+ color: var(--helix-color-foreground);
821
+ overflow: hidden;
822
+ padding: var(--helix-space-md);
823
+ padding-inline-start: calc(var(--helix-space-md) + var(--helix-border-thick));
824
+ position: relative;
825
+ }
826
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose])
827
+ :where(blockquote > :last-child) {
828
+ margin-block-end: var(--helix-space-none);
829
+ }
830
+ :where(helix-chat-message[data-prose], helix-chat-message [data-prose]) :where(blockquote)::before {
831
+ background-color: var(--helix-color-foreground-subtle);
832
+ content: "";
833
+ inline-size: var(--helix-border-thick);
834
+ inset-block: 0;
835
+ inset-inline-start: 0;
836
+ position: absolute;
837
+ }
703
838
  :where(:focus-visible) {
704
839
  outline: var(--helix-size-focus-ring) solid var(--helix-color-focus-ring);
705
840
  outline-offset: var(--helix-size-focus-offset);
@@ -737,7 +872,8 @@ helix-toast:not([data-color-mode]) {
737
872
  color-mix(in oklab, var(--helix-color-primary) 32%, transparent)
738
873
  );
739
874
  }
740
- [data-hidden-visually] {
875
+ [data-hidden-visually],
876
+ helix-skip-link:not(:focus-within) {
741
877
  block-size: 1px;
742
878
  border: var(--helix-space-none);
743
879
  clip-path: inset(50%);
package/dist/elements.css CHANGED
@@ -3,6 +3,7 @@ helix-accordion:not(:defined),
3
3
  helix-accordion-item:not(:defined),
4
4
  helix-announcement:not(:defined),
5
5
  helix-app-header:not(:defined),
6
+ helix-area-chart:not(:defined),
6
7
  helix-aura:not(:defined),
7
8
  helix-avatar:not(:defined),
8
9
  helix-avatar-group:not(:defined),
@@ -31,6 +32,8 @@ helix-copy-button:not(:defined),
31
32
  helix-data-table:not(:defined),
32
33
  helix-date-input:not(:defined),
33
34
  helix-date-picker:not(:defined),
35
+ helix-description-list:not(:defined),
36
+ helix-description-list-item:not(:defined),
34
37
  helix-dialog:not(:defined),
35
38
  helix-divider:not(:defined),
36
39
  helix-donut-chart:not(:defined),
@@ -39,7 +42,11 @@ helix-drilldown:not(:defined),
39
42
  helix-drilldown-item:not(:defined),
40
43
  helix-empty:not(:defined),
41
44
  helix-file-input:not(:defined),
45
+ helix-filter-chip:not(:defined),
46
+ helix-filter-field:not(:defined),
42
47
  helix-filter-input:not(:defined),
48
+ helix-filter-menu:not(:defined),
49
+ helix-filter-operator:not(:defined),
43
50
  helix-flex:not(:defined),
44
51
  helix-format-date:not(:defined),
45
52
  helix-grid:not(:defined),
@@ -61,8 +68,10 @@ helix-menu-item:not(:defined),
61
68
  helix-meter:not(:defined),
62
69
  helix-navigation:not(:defined),
63
70
  helix-notification:not(:defined),
71
+ helix-notification-group:not(:defined),
64
72
  helix-notifications:not(:defined),
65
73
  helix-number-input:not(:defined),
74
+ helix-object-inspector:not(:defined),
66
75
  helix-option:not(:defined),
67
76
  helix-option-group:not(:defined),
68
77
  helix-orb:not(:defined),
@@ -84,9 +93,11 @@ helix-sandbox-source:not(:defined),
84
93
  helix-sandbox-status-bar:not(:defined),
85
94
  helix-sandbox-terminal:not(:defined),
86
95
  helix-sandbox-toolbar:not(:defined),
96
+ helix-scatter-chart:not(:defined),
87
97
  helix-scroll-area:not(:defined),
88
98
  helix-select:not(:defined),
89
99
  helix-skeleton:not(:defined),
100
+ helix-skip-link:not(:defined),
90
101
  helix-slider:not(:defined),
91
102
  helix-sparkline:not(:defined),
92
103
  helix-speed-dial:not(:defined),
@@ -134,6 +145,7 @@ helix-accordion[align],
134
145
  helix-accordion-item[align],
135
146
  helix-announcement[align],
136
147
  helix-app-header[align],
148
+ helix-area-chart[align],
137
149
  helix-aura[align],
138
150
  helix-avatar[align],
139
151
  helix-avatar-group[align],
@@ -162,6 +174,8 @@ helix-copy-button[align],
162
174
  helix-data-table[align],
163
175
  helix-date-input[align],
164
176
  helix-date-picker[align],
177
+ helix-description-list[align],
178
+ helix-description-list-item[align],
165
179
  helix-dialog[align],
166
180
  helix-divider[align],
167
181
  helix-donut-chart[align],
@@ -170,7 +184,11 @@ helix-drilldown[align],
170
184
  helix-drilldown-item[align],
171
185
  helix-empty[align],
172
186
  helix-file-input[align],
187
+ helix-filter-chip[align],
188
+ helix-filter-field[align],
173
189
  helix-filter-input[align],
190
+ helix-filter-menu[align],
191
+ helix-filter-operator[align],
174
192
  helix-flex[align],
175
193
  helix-format-date[align],
176
194
  helix-grid[align],
@@ -192,8 +210,10 @@ helix-menu-item[align],
192
210
  helix-meter[align],
193
211
  helix-navigation[align],
194
212
  helix-notification[align],
213
+ helix-notification-group[align],
195
214
  helix-notifications[align],
196
215
  helix-number-input[align],
216
+ helix-object-inspector[align],
197
217
  helix-option[align],
198
218
  helix-option-group[align],
199
219
  helix-orb[align],
@@ -215,9 +235,11 @@ helix-sandbox-source[align],
215
235
  helix-sandbox-status-bar[align],
216
236
  helix-sandbox-terminal[align],
217
237
  helix-sandbox-toolbar[align],
238
+ helix-scatter-chart[align],
218
239
  helix-scroll-area[align],
219
240
  helix-select[align],
220
241
  helix-skeleton[align],
242
+ helix-skip-link[align],
221
243
  helix-slider[align],
222
244
  helix-sparkline[align],
223
245
  helix-speed-dial[align],
@@ -2,10 +2,14 @@
2
2
  :root,
3
3
  [data-helix-theme] {
4
4
  --_helix-seed-brand: var(--helix-seed-brand, oklch(0.539 0.19 258));
5
- --helix-seed-accent-hue: 180;
5
+ --helix-seed-accent-hue: 0;
6
+ --_helix-accent-lightness: var(--helix-seed-accent-lightness, l);
6
7
  --_helix-seed-accent: var(
7
8
  --helix-seed-accent,
8
- oklch(from var(--_helix-seed-brand) l c calc(h + var(--helix-seed-accent-hue)))
9
+ oklch(
10
+ from var(--_helix-seed-brand) var(--_helix-accent-lightness) c
11
+ calc(h + var(--helix-seed-accent-hue))
12
+ )
9
13
  );
10
14
  --_helix-seed-chroma-scale: var(--helix-seed-chroma-scale, 1);
11
15
  --_helix-seed-neutral-chroma: var(--helix-seed-neutral-chroma, 0);
@@ -47,7 +51,7 @@
47
51
  --_helix-accent-500: var(--_helix-seed-accent);
48
52
  --_helix-accent-600: oklch(from var(--_helix-seed-accent) calc(l - 0.05) c h);
49
53
  --_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);
54
+ --_helix-accent-400: oklch(from var(--_helix-seed-accent) calc(l + 0.13) c h);
51
55
  --_helix-accent-50: oklch(from var(--_helix-seed-accent) 0.95 calc(c * 0.25) h);
52
56
  --_helix-accent-900: oklch(from var(--_helix-seed-accent) 0.28 calc(c * 0.5) h);
53
57
  --_helix-info-500: oklch(0.58 0.16 245);
package/dist/tokens.css CHANGED
@@ -68,7 +68,7 @@
68
68
  --helix-color-accent-surface-hover: var(--_helix-accent-700);
69
69
  --helix-color-primary-surface: var(--_helix-brand-600);
70
70
  --helix-color-primary-surface-hover: var(--_helix-brand-700);
71
- --helix-color-focus-ring: var(--_helix-brand-500);
71
+ --helix-color-focus-ring: var(--helix-color-primary);
72
72
  --helix-color-brand-mark: light-dark(var(--_helix-brand-500), var(--_helix-brand-400));
73
73
  --helix-color-syntax-callable: light-dark(
74
74
  var(--_helix-syntax-callable-light),
@@ -346,6 +346,30 @@
346
346
  --helix-color-success: light-dark(var(--_helix-success-600), var(--_helix-success-400));
347
347
  --helix-color-warning: light-dark(var(--_helix-warning-600), var(--_helix-warning-400));
348
348
  --helix-color-danger: light-dark(var(--_helix-danger-600), var(--_helix-danger-400));
349
+ --helix-color-primary-muted: light-dark(
350
+ oklch(from var(--_helix-brand-500) l calc(c * 0.5) h),
351
+ oklch(from var(--_helix-brand-400) l calc(c * 0.5) h)
352
+ );
353
+ --helix-color-accent-muted: light-dark(
354
+ oklch(from var(--_helix-accent-500) l calc(c * 0.5) h),
355
+ oklch(from var(--_helix-accent-400) l calc(c * 0.5) h)
356
+ );
357
+ --helix-color-danger-muted: light-dark(
358
+ oklch(from var(--_helix-danger-600) l calc(c * 0.5) h),
359
+ oklch(from var(--_helix-danger-400) l calc(c * 0.5) h)
360
+ );
361
+ --helix-color-info-muted: light-dark(
362
+ oklch(from var(--_helix-info-600) l calc(c * 0.5) h),
363
+ oklch(from var(--_helix-info-400) l calc(c * 0.5) h)
364
+ );
365
+ --helix-color-success-muted: light-dark(
366
+ oklch(from var(--_helix-success-600) l calc(c * 0.5) h),
367
+ oklch(from var(--_helix-success-400) l calc(c * 0.5) h)
368
+ );
369
+ --helix-color-warning-muted: light-dark(
370
+ oklch(from var(--_helix-warning-600) l calc(c * 0.5) h),
371
+ oklch(from var(--_helix-warning-400) l calc(c * 0.5) h)
372
+ );
349
373
  --helix-color-danger-surface: var(--_helix-danger-600);
350
374
  --helix-color-danger-surface-hover: var(--_helix-danger-700);
351
375
  --helix-color-info-surface: var(--_helix-info-600);
package/dist/tokens.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "size",
17
17
  "layer"
18
18
  ],
19
- "count": 185,
19
+ "count": 191,
20
20
  "groups": {
21
21
  "separation-policy": ["border-surface", "shadow-surface", "border-floating", "shadow-floating"],
22
22
  "surface-ladder": [
@@ -176,7 +176,7 @@
176
176
  {
177
177
  "category": "color",
178
178
  "name": "--helix-color-focus-ring",
179
- "value": "var(--_helix-brand-500)"
179
+ "value": "var(--helix-color-primary)"
180
180
  },
181
181
  {
182
182
  "category": "color",
@@ -363,6 +363,36 @@
363
363
  "name": "--helix-color-danger",
364
364
  "value": "light-dark(var(--_helix-danger-600), var(--_helix-danger-400))"
365
365
  },
366
+ {
367
+ "category": "color",
368
+ "name": "--helix-color-primary-muted",
369
+ "value": "light-dark(oklch(from var(--_helix-brand-500) l calc(c * 0.5) h), oklch(from var(--_helix-brand-400) l calc(c * 0.5) h))"
370
+ },
371
+ {
372
+ "category": "color",
373
+ "name": "--helix-color-accent-muted",
374
+ "value": "light-dark(oklch(from var(--_helix-accent-500) l calc(c * 0.5) h), oklch(from var(--_helix-accent-400) l calc(c * 0.5) h))"
375
+ },
376
+ {
377
+ "category": "color",
378
+ "name": "--helix-color-danger-muted",
379
+ "value": "light-dark(oklch(from var(--_helix-danger-600) l calc(c * 0.5) h), oklch(from var(--_helix-danger-400) l calc(c * 0.5) h))"
380
+ },
381
+ {
382
+ "category": "color",
383
+ "name": "--helix-color-info-muted",
384
+ "value": "light-dark(oklch(from var(--_helix-info-600) l calc(c * 0.5) h), oklch(from var(--_helix-info-400) l calc(c * 0.5) h))"
385
+ },
386
+ {
387
+ "category": "color",
388
+ "name": "--helix-color-success-muted",
389
+ "value": "light-dark(oklch(from var(--_helix-success-600) l calc(c * 0.5) h), oklch(from var(--_helix-success-400) l calc(c * 0.5) h))"
390
+ },
391
+ {
392
+ "category": "color",
393
+ "name": "--helix-color-warning-muted",
394
+ "value": "light-dark(oklch(from var(--_helix-warning-600) l calc(c * 0.5) h), oklch(from var(--_helix-warning-400) l calc(c * 0.5) h))"
395
+ },
366
396
  {
367
397
  "category": "color",
368
398
  "name": "--helix-color-danger-surface",
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.22.0",
4
+ "version": "0.24.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {