@fusion.dev/helix-styles 0.237.2 → 0.238.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.
@@ -55,18 +55,14 @@
55
55
  --_helix-brand-mark-400: oklch(from var(--_helix-seed-brand) max(l, 0.6) c h);
56
56
  --_helix-brand-300: oklch(from var(--_helix-brand-400) calc(l + 0.05) c h);
57
57
  --_helix-brand-200: oklch(from var(--_helix-brand-400) calc(l + 0.1) c h);
58
+ --_helix-fill-light: clamp(0, (alpha - 0.75) * 1000, 1);
58
59
  --_helix-fill-luminance: calc(
59
- (
60
- clamp(0, (y - 0.185) * 1000, 1) *
61
- y +
62
- (1 - clamp(0, (y - 0.185) * 1000, 1)) *
63
- clamp(0.115, y, 0.135)
64
- ) /
60
+ (var(--_helix-fill-light) * y + (1 - var(--_helix-fill-light)) * clamp(0.115, y, 0.135)) /
65
61
  max(y, 0.001)
66
62
  );
67
- --_helix-fill-hover: calc(1.15 - 0.27 * clamp(0, (y - 0.185) * 1000, 1));
68
- --_helix-fill-press: calc(1.3 - 0.5 * clamp(0, (y - 0.185) * 1000, 1));
69
- --_helix-brand-fill-dark: color(
63
+ --_helix-fill-hover: calc(1.15 - 0.27 * var(--_helix-fill-light));
64
+ --_helix-fill-press: calc(1.3 - 0.5 * var(--_helix-fill-light));
65
+ --_helix-brand-fill-dark-source: color(
70
66
  from
71
67
  oklch(
72
68
  from var(--_helix-seed-brand)
@@ -76,18 +72,30 @@
76
72
  (1 - clamp(0, (l - 0.68) * 1000, 1)) *
77
73
  clamp(0.48, l - 0.05, 0.54)
78
74
  )
79
- c h
75
+ c h /
76
+ calc(0.5 + 0.5 * clamp(0, (l - 0.68) * 1000, 1))
80
77
  )
81
- xyz-d65 calc(x * var(--_helix-fill-luminance)) calc(y * var(--_helix-fill-luminance))
82
- calc(z * var(--_helix-fill-luminance))
78
+ srgb clamp(0, r, 1) clamp(0, g, 1) clamp(0, b, 1) /
79
+ alpha
80
+ );
81
+ --_helix-brand-fill-dark: color(
82
+ from var(--_helix-brand-fill-dark-source) xyz-d65 calc(x * var(--_helix-fill-luminance))
83
+ calc(y * var(--_helix-fill-luminance)) calc(z * var(--_helix-fill-luminance)) /
84
+ 1
83
85
  );
84
86
  --_helix-brand-fill-dark-hover: color(
85
- from var(--_helix-brand-fill-dark) xyz-d65 calc(x * var(--_helix-fill-hover))
86
- calc(y * var(--_helix-fill-hover)) calc(z * var(--_helix-fill-hover))
87
+ from var(--_helix-brand-fill-dark-source) xyz-d65
88
+ calc(x * var(--_helix-fill-luminance) * var(--_helix-fill-hover))
89
+ calc(y * var(--_helix-fill-luminance) * var(--_helix-fill-hover))
90
+ calc(z * var(--_helix-fill-luminance) * var(--_helix-fill-hover)) /
91
+ 1
87
92
  );
88
93
  --_helix-brand-fill-dark-active: color(
89
- from var(--_helix-brand-fill-dark) xyz-d65 calc(x * var(--_helix-fill-press))
90
- calc(y * var(--_helix-fill-press)) calc(z * var(--_helix-fill-press))
94
+ from var(--_helix-brand-fill-dark-source) xyz-d65
95
+ calc(x * var(--_helix-fill-luminance) * var(--_helix-fill-press))
96
+ calc(y * var(--_helix-fill-luminance) * var(--_helix-fill-press))
97
+ calc(z * var(--_helix-fill-luminance) * var(--_helix-fill-press)) /
98
+ 1
91
99
  );
92
100
  --_helix-brand-50: oklch(from var(--_helix-seed-brand) 0.95 calc(c * 0.25) h);
93
101
  --_helix-brand-900: oklch(from var(--_helix-seed-brand) 0.28 calc(c * 0.5) h);
@@ -125,7 +133,7 @@
125
133
  --_helix-accent-200: oklch(from var(--_helix-accent-400) calc(l + 0.1) c h);
126
134
  --_helix-accent-50: oklch(from var(--_helix-seed-accent) 0.95 calc(c * 0.25) h);
127
135
  --_helix-accent-900: oklch(from var(--_helix-seed-accent) 0.28 calc(c * 0.5) h);
128
- --_helix-accent-fill-dark: color(
136
+ --_helix-accent-fill-dark-source: color(
129
137
  from
130
138
  oklch(
131
139
  from var(--_helix-seed-accent)
@@ -135,14 +143,23 @@
135
143
  (1 - clamp(0, (l - 0.68) * 1000, 1)) *
136
144
  clamp(0.48, l - 0.05, 0.54)
137
145
  )
138
- c h
146
+ c h /
147
+ calc(0.5 + 0.5 * clamp(0, (l - 0.68) * 1000, 1))
139
148
  )
140
- xyz-d65 calc(x * var(--_helix-fill-luminance)) calc(y * var(--_helix-fill-luminance))
141
- calc(z * var(--_helix-fill-luminance))
149
+ srgb clamp(0, r, 1) clamp(0, g, 1) clamp(0, b, 1) /
150
+ alpha
151
+ );
152
+ --_helix-accent-fill-dark: color(
153
+ from var(--_helix-accent-fill-dark-source) xyz-d65 calc(x * var(--_helix-fill-luminance))
154
+ calc(y * var(--_helix-fill-luminance)) calc(z * var(--_helix-fill-luminance)) /
155
+ 1
142
156
  );
143
157
  --_helix-accent-fill-dark-hover: color(
144
- from var(--_helix-accent-fill-dark) xyz-d65 calc(x * var(--_helix-fill-hover))
145
- calc(y * var(--_helix-fill-hover)) calc(z * var(--_helix-fill-hover))
158
+ from var(--_helix-accent-fill-dark-source) xyz-d65
159
+ calc(x * var(--_helix-fill-luminance) * var(--_helix-fill-hover))
160
+ calc(y * var(--_helix-fill-luminance) * var(--_helix-fill-hover))
161
+ calc(z * var(--_helix-fill-luminance) * var(--_helix-fill-hover)) /
162
+ 1
146
163
  );
147
164
  --_helix-accent-on: light-dark(
148
165
  oklch(from var(--_helix-seed-accent) 1 0 0),
package/dist/tokens.css CHANGED
@@ -2,7 +2,7 @@
2
2
  :root {
3
3
  --_helix-mode: light;
4
4
  --_helix-mode-inverted: dark;
5
- --helix-material-scrim-lift: calc(1 / 0.6);
5
+ --_helix-material-scrim-lift: calc(1 / 0.6);
6
6
  --_helix-shadow-ink-sm: light-dark(
7
7
  color-mix(in oklab, var(--_helix-neutral-950) 5%, transparent),
8
8
  color-mix(in oklab, var(--_helix-neutral-950) 8%, transparent)
@@ -120,19 +120,19 @@
120
120
  :root {
121
121
  --_helix-mode: dark;
122
122
  --_helix-mode-inverted: light;
123
- --helix-material-scrim-lift: 1;
123
+ --_helix-material-scrim-lift: 1;
124
124
  }
125
125
  }
126
126
  [data-color-mode="light"] {
127
127
  --_helix-mode: light;
128
128
  --_helix-mode-inverted: dark;
129
- --helix-material-scrim-lift: calc(1 / 0.6);
129
+ --_helix-material-scrim-lift: calc(1 / 0.6);
130
130
  color-scheme: light;
131
131
  }
132
132
  [data-color-mode="dark"] {
133
133
  --_helix-mode: dark;
134
134
  --_helix-mode-inverted: light;
135
- --helix-material-scrim-lift: 1;
135
+ --_helix-material-scrim-lift: 1;
136
136
  color-scheme: dark;
137
137
  }
138
138
  :root {
@@ -711,6 +711,7 @@
711
711
  --helix-shadow-raised: var(--helix-shadow-sm), var(--helix-shadow-md);
712
712
  --helix-material-backdrop: blur(var(--helix-material-blur-md)) saturate(1.5);
713
713
  --helix-material-opacity: 1;
714
+ --helix-material-scrim-lift: var(--_helix-material-scrim-lift);
714
715
  --helix-material-glass-opacity: calc(0.72 * var(--helix-material-opacity));
715
716
  --helix-material-frosted-opacity: calc(0.88 * var(--helix-material-opacity));
716
717
  --helix-opacity-disabled: 0.5;
package/dist/tokens.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "size",
19
19
  "layer"
20
20
  ],
21
- "count": 243,
21
+ "count": 244,
22
22
  "groups": {
23
23
  "separation-policy": ["border-surface", "shadow-surface", "border-floating", "shadow-floating"],
24
24
  "surface-ladder": [
@@ -869,6 +869,12 @@
869
869
  "name": "--helix-material-opacity",
870
870
  "value": "1"
871
871
  },
872
+ {
873
+ "category": "material",
874
+ "description": "How much a glass Dialog or Drawer brightens the page behind its scrim.",
875
+ "name": "--helix-material-scrim-lift",
876
+ "value": "var(--_helix-material-scrim-lift)"
877
+ },
872
878
  {
873
879
  "category": "material",
874
880
  "description": "How much of a mark a glass material covers.",
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.237.2",
4
+ "version": "0.238.0",
5
5
  "license": "MIT",
6
6
  "author": "Fusion Development Group",
7
7
  "repository": {