@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.
- package/dist/primitives.css +39 -22
- package/dist/tokens.css +5 -4
- package/dist/tokens.json +7 -1
- package/package.json +1 -1
package/dist/primitives.css
CHANGED
|
@@ -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 *
|
|
68
|
-
--_helix-fill-press: calc(1.3 - 0.5 *
|
|
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
|
-
|
|
82
|
-
|
|
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
|
|
86
|
-
calc(
|
|
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
|
|
90
|
-
calc(
|
|
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
|
-
|
|
141
|
-
|
|
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
|
|
145
|
-
calc(
|
|
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
|
-
--
|
|
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
|
-
--
|
|
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
|
-
--
|
|
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
|
-
--
|
|
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":
|
|
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