@fusion.dev/helix-styles 0.205.2 → 0.207.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/README.md CHANGED
@@ -11,14 +11,15 @@ npm install @fusion.dev/helix-styles
11
11
  @import '@fusion.dev/helix-styles/helix.css';
12
12
  ```
13
13
 
14
- Or take the pieces:
14
+ Or take the pieces, in the order of the first four rows:
15
15
 
16
16
  | Entry | What it is |
17
17
  |---|---|
18
- | `tokens.css` | the custom properties, light and dark |
19
- | `base.css` | element defaults and the reset |
20
- | `primitives.css` | utility layer |
21
- | `helix.css` | all four, in order |
18
+ | `primitives.css` | the raw color ramps and scales the tokens are derived from, where the `--helix-seed-*` properties are read. No classes |
19
+ | `tokens.css` | the semantic custom properties, light and dark. They read the primitives, so without `primitives.css` every color resolves to nothing |
20
+ | `base.css` | the element reset and defaults |
21
+ | `elements.css` | hides each Helix element until its definition loads |
22
+ | `helix.css` | the four files above, in that order |
22
23
  | `tokens.json` | the same token names for a build step that needs them |
23
24
 
24
25
  The tokens are the contract every Helix component reads, so overriding one here
package/dist/base.css CHANGED
@@ -186,10 +186,6 @@ helix-card > [slot="media"] {
186
186
  helix-text[emphasis="muted"] {
187
187
  color: var(--helix-color-foreground-muted);
188
188
  }
189
- [data-emphasis="subtle"],
190
- helix-text[emphasis="subtle"] {
191
- color: var(--helix-color-foreground-subtle);
192
- }
193
189
  [data-tone="accent"],
194
190
  helix-text[tone="accent"] {
195
191
  color: var(--helix-color-accent);
@@ -214,28 +210,28 @@ helix-text[tone="success"] {
214
210
  helix-text[tone="warning"] {
215
211
  color: var(--helix-color-warning);
216
212
  }
217
- [data-tone="accent"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
218
- helix-text[tone="accent"]:is([emphasis="muted"], [emphasis="subtle"]) {
213
+ [data-tone="accent"][data-emphasis="muted"],
214
+ helix-text[tone="accent"][emphasis="muted"] {
219
215
  color: var(--helix-color-accent-muted);
220
216
  }
221
- [data-tone="danger"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
222
- helix-text[tone="danger"]:is([emphasis="muted"], [emphasis="subtle"]) {
217
+ [data-tone="danger"][data-emphasis="muted"],
218
+ helix-text[tone="danger"][emphasis="muted"] {
223
219
  color: var(--helix-color-danger-muted);
224
220
  }
225
- [data-tone="info"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
226
- helix-text[tone="info"]:is([emphasis="muted"], [emphasis="subtle"]) {
221
+ [data-tone="info"][data-emphasis="muted"],
222
+ helix-text[tone="info"][emphasis="muted"] {
227
223
  color: var(--helix-color-info-muted);
228
224
  }
229
- [data-tone="primary"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
230
- helix-text[tone="primary"]:is([emphasis="muted"], [emphasis="subtle"]) {
225
+ [data-tone="primary"][data-emphasis="muted"],
226
+ helix-text[tone="primary"][emphasis="muted"] {
231
227
  color: var(--helix-color-primary-muted);
232
228
  }
233
- [data-tone="success"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
234
- helix-text[tone="success"]:is([emphasis="muted"], [emphasis="subtle"]) {
229
+ [data-tone="success"][data-emphasis="muted"],
230
+ helix-text[tone="success"][emphasis="muted"] {
235
231
  color: var(--helix-color-success-muted);
236
232
  }
237
- [data-tone="warning"]:is([data-emphasis="muted"], [data-emphasis="subtle"]),
238
- helix-text[tone="warning"]:is([emphasis="muted"], [emphasis="subtle"]) {
233
+ [data-tone="warning"][data-emphasis="muted"],
234
+ helix-text[tone="warning"][emphasis="muted"] {
239
235
  color: var(--helix-color-warning-muted);
240
236
  }
241
237
  [data-button] {
@@ -617,7 +613,7 @@ helix-toggle[disabled]::part(item) {
617
613
  }
618
614
  [data-megamenu-heading] {
619
615
  align-items: center;
620
- color: var(--helix-color-foreground-subtle);
616
+ color: var(--helix-color-foreground-muted);
621
617
  display: flex;
622
618
  gap: var(--helix-space-xs);
623
619
  font-family: var(--helix-font-sans);
@@ -809,7 +805,7 @@ helix-toast:not([data-color-mode]) {
809
805
  text-align: start;
810
806
  }
811
807
  :where([data-prose] th) {
812
- color: var(--helix-color-foreground-subtle);
808
+ color: var(--helix-color-foreground-muted);
813
809
  font-weight: var(--helix-weight-medium);
814
810
  }
815
811
  :where([data-prose] tbody tr:last-child th),
package/dist/tokens.css CHANGED
@@ -395,6 +395,8 @@
395
395
  --helix-color-success: light-dark(var(--_helix-success-600), var(--_helix-success-400));
396
396
  --helix-color-warning: light-dark(var(--_helix-warning-600), var(--_helix-warning-400));
397
397
  --helix-color-danger: light-dark(var(--_helix-danger-600), var(--_helix-danger-400));
398
+ --helix-color-rise: var(--helix-color-success);
399
+ --helix-color-fall: var(--helix-color-danger);
398
400
  --helix-color-primary-muted: light-dark(
399
401
  var(--_helix-brand-quiet-500, var(--helix-color-foreground-muted)),
400
402
  var(--_helix-brand-quiet-400, var(--helix-color-foreground-muted))
package/dist/tokens.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "size",
18
18
  "layer"
19
19
  ],
20
- "count": 197,
20
+ "count": 199,
21
21
  "groups": {
22
22
  "separation-policy": ["border-surface", "shadow-surface", "border-floating", "shadow-floating"],
23
23
  "surface-ladder": [
@@ -76,11 +76,13 @@
76
76
  },
77
77
  {
78
78
  "category": "color",
79
+ "description": "Text that recedes and is still read, such as a placeholder, a hint, or a caption.",
79
80
  "name": "--helix-color-foreground-muted",
80
81
  "value": "light-dark(var(--_helix-neutral-600), var(--_helix-neutral-400))"
81
82
  },
82
83
  {
83
84
  "category": "color",
85
+ "description": "A mark that is not text, such as a separator, a chevron, or a grip, and the text of a disabled control. Its contrast is not guaranteed.",
84
86
  "name": "--helix-color-foreground-subtle",
85
87
  "value": "light-dark(var(--_helix-neutral-550), var(--_helix-neutral-450))"
86
88
  },
@@ -374,6 +376,16 @@
374
376
  "name": "--helix-color-danger",
375
377
  "value": "light-dark(var(--_helix-danger-600), var(--_helix-danger-400))"
376
378
  },
379
+ {
380
+ "category": "color",
381
+ "name": "--helix-color-rise",
382
+ "value": "var(--helix-color-success)"
383
+ },
384
+ {
385
+ "category": "color",
386
+ "name": "--helix-color-fall",
387
+ "value": "var(--helix-color-danger)"
388
+ },
377
389
  {
378
390
  "category": "color",
379
391
  "name": "--helix-color-primary-muted",
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.205.2",
4
+ "version": "0.207.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -11,9 +11,14 @@
11
11
  },
12
12
  "type": "module",
13
13
  "exports": {
14
+ ".": {
15
+ "style": "./dist/helix.css",
16
+ "default": "./dist/helix.css"
17
+ },
14
18
  "./base.css": "./dist/base.css",
15
19
  "./elements.css": "./dist/elements.css",
16
20
  "./helix.css": "./dist/helix.css",
21
+ "./package.json": "./package.json",
17
22
  "./primitives.css": "./dist/primitives.css",
18
23
  "./tokens.css": "./dist/tokens.css",
19
24
  "./tokens.json": "./dist/tokens.json"