@fusion.dev/helix-styles 0.237.1 → 0.237.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/dist/base.css +4 -1
- package/dist/primitives.css +41 -25
- package/dist/tokens.css +6 -5
- package/dist/tokens.json +8 -2
- package/package.json +1 -1
package/dist/base.css
CHANGED
|
@@ -1031,7 +1031,10 @@ helix-toggle[disabled]::part(item) {
|
|
|
1031
1031
|
border-color: transparent;
|
|
1032
1032
|
}
|
|
1033
1033
|
[data-separation="elevated"] {
|
|
1034
|
-
background-color: light-dark(
|
|
1034
|
+
background-color: light-dark(
|
|
1035
|
+
var(--helix-color-surface),
|
|
1036
|
+
oklch(from var(--helix-color-surface-overlay) calc(l + 0.025) c h)
|
|
1037
|
+
);
|
|
1035
1038
|
border-color: transparent;
|
|
1036
1039
|
border-radius: var(--helix-radii-sm);
|
|
1037
1040
|
box-shadow: var(--helix-shadow-md);
|
package/dist/primitives.css
CHANGED
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
--_helix-neutral-550: oklch(0.53 var(--_helix-neutral-cast));
|
|
33
33
|
--_helix-neutral-600: oklch(0.5 var(--_helix-neutral-cast));
|
|
34
34
|
--_helix-neutral-700: oklch(0.33 var(--_helix-neutral-cast));
|
|
35
|
-
--_helix-neutral-775: oklch(0.235 var(--_helix-neutral-cast));
|
|
36
35
|
--_helix-neutral-800: oklch(0.21 var(--_helix-neutral-cast));
|
|
37
36
|
--_helix-neutral-900: oklch(0.182 var(--_helix-neutral-cast));
|
|
38
37
|
--_helix-neutral-950: oklch(0.15 var(--_helix-neutral-cast));
|
|
@@ -56,18 +55,14 @@
|
|
|
56
55
|
--_helix-brand-mark-400: oklch(from var(--_helix-seed-brand) max(l, 0.6) c h);
|
|
57
56
|
--_helix-brand-300: oklch(from var(--_helix-brand-400) calc(l + 0.05) c h);
|
|
58
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);
|
|
59
59
|
--_helix-fill-luminance: calc(
|
|
60
|
-
(
|
|
61
|
-
clamp(0, (y - 0.185) * 1000, 1) *
|
|
62
|
-
y +
|
|
63
|
-
(1 - clamp(0, (y - 0.185) * 1000, 1)) *
|
|
64
|
-
clamp(0.115, y, 0.135)
|
|
65
|
-
) /
|
|
60
|
+
(var(--_helix-fill-light) * y + (1 - var(--_helix-fill-light)) * clamp(0.115, y, 0.135)) /
|
|
66
61
|
max(y, 0.001)
|
|
67
62
|
);
|
|
68
|
-
--_helix-fill-hover: calc(1.15 - 0.27 *
|
|
69
|
-
--_helix-fill-press: calc(1.3 - 0.5 *
|
|
70
|
-
--_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(
|
|
71
66
|
from
|
|
72
67
|
oklch(
|
|
73
68
|
from var(--_helix-seed-brand)
|
|
@@ -77,18 +72,30 @@
|
|
|
77
72
|
(1 - clamp(0, (l - 0.68) * 1000, 1)) *
|
|
78
73
|
clamp(0.48, l - 0.05, 0.54)
|
|
79
74
|
)
|
|
80
|
-
c h
|
|
75
|
+
c h /
|
|
76
|
+
calc(0.5 + 0.5 * clamp(0, (l - 0.68) * 1000, 1))
|
|
81
77
|
)
|
|
82
|
-
|
|
83
|
-
|
|
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
|
|
84
85
|
);
|
|
85
86
|
--_helix-brand-fill-dark-hover: color(
|
|
86
|
-
from var(--_helix-brand-fill-dark) xyz-d65
|
|
87
|
-
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
|
|
88
92
|
);
|
|
89
93
|
--_helix-brand-fill-dark-active: color(
|
|
90
|
-
from var(--_helix-brand-fill-dark) xyz-d65
|
|
91
|
-
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
|
|
92
99
|
);
|
|
93
100
|
--_helix-brand-50: oklch(from var(--_helix-seed-brand) 0.95 calc(c * 0.25) h);
|
|
94
101
|
--_helix-brand-900: oklch(from var(--_helix-seed-brand) 0.28 calc(c * 0.5) h);
|
|
@@ -96,7 +103,7 @@
|
|
|
96
103
|
--_helix-brand-quiet-400: oklch(from var(--_helix-brand-400) l calc(c * 0.5) h);
|
|
97
104
|
--_helix-brand-on: light-dark(
|
|
98
105
|
oklch(from var(--_helix-seed-brand) 1 0 0),
|
|
99
|
-
oklch(from var(--_helix-seed-brand) clamp(0, (0.68
|
|
106
|
+
oklch(from var(--_helix-seed-brand) calc(1 - clamp(0, (l - 0.68) * 1000, 1)) 0 0)
|
|
100
107
|
);
|
|
101
108
|
--_helix-brand-wash: color-mix(
|
|
102
109
|
in oklab,
|
|
@@ -126,7 +133,7 @@
|
|
|
126
133
|
--_helix-accent-200: oklch(from var(--_helix-accent-400) calc(l + 0.1) c h);
|
|
127
134
|
--_helix-accent-50: oklch(from var(--_helix-seed-accent) 0.95 calc(c * 0.25) h);
|
|
128
135
|
--_helix-accent-900: oklch(from var(--_helix-seed-accent) 0.28 calc(c * 0.5) h);
|
|
129
|
-
--_helix-accent-fill-dark: color(
|
|
136
|
+
--_helix-accent-fill-dark-source: color(
|
|
130
137
|
from
|
|
131
138
|
oklch(
|
|
132
139
|
from var(--_helix-seed-accent)
|
|
@@ -136,18 +143,27 @@
|
|
|
136
143
|
(1 - clamp(0, (l - 0.68) * 1000, 1)) *
|
|
137
144
|
clamp(0.48, l - 0.05, 0.54)
|
|
138
145
|
)
|
|
139
|
-
c h
|
|
146
|
+
c h /
|
|
147
|
+
calc(0.5 + 0.5 * clamp(0, (l - 0.68) * 1000, 1))
|
|
140
148
|
)
|
|
141
|
-
|
|
142
|
-
|
|
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
|
|
143
156
|
);
|
|
144
157
|
--_helix-accent-fill-dark-hover: color(
|
|
145
|
-
from var(--_helix-accent-fill-dark) xyz-d65
|
|
146
|
-
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
|
|
147
163
|
);
|
|
148
164
|
--_helix-accent-on: light-dark(
|
|
149
165
|
oklch(from var(--_helix-seed-accent) 1 0 0),
|
|
150
|
-
oklch(from var(--_helix-seed-accent) clamp(0, (0.68
|
|
166
|
+
oklch(from var(--_helix-seed-accent) calc(1 - clamp(0, (l - 0.68) * 1000, 1)) 0 0)
|
|
151
167
|
);
|
|
152
168
|
--_helix-accent-quiet-500: oklch(from var(--_helix-accent-500) l calc(c * 0.5) h);
|
|
153
169
|
--_helix-accent-quiet-400: oklch(from var(--_helix-accent-400) l calc(c * 0.5) h);
|
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 {
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
--helix-color-background: light-dark(var(--_helix-neutral-0), var(--_helix-neutral-1000));
|
|
156
156
|
--helix-color-surface: light-dark(var(--_helix-neutral-50), var(--_helix-neutral-925));
|
|
157
157
|
--helix-color-surface-raised: light-dark(var(--_helix-neutral-100), var(--_helix-neutral-800));
|
|
158
|
-
--helix-color-surface-overlay: light-dark(var(--_helix-neutral-0), var(--_helix-neutral-
|
|
158
|
+
--helix-color-surface-overlay: light-dark(var(--_helix-neutral-0), var(--_helix-neutral-800));
|
|
159
159
|
--helix-color-surface-sunken: light-dark(var(--_helix-neutral-225), var(--_helix-neutral-900));
|
|
160
160
|
--helix-color-well: color-mix(in oklab, var(--helix-color-foreground) 5%, transparent);
|
|
161
161
|
--helix-color-track: light-dark(
|
|
@@ -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": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"category": "color",
|
|
53
53
|
"description": "A surface over the page, such as a menu, a popover, or a dialog. Its edge and its shadow set it apart.",
|
|
54
54
|
"name": "--helix-color-surface-overlay",
|
|
55
|
-
"value": "light-dark(var(--_helix-neutral-0), var(--_helix-neutral-
|
|
55
|
+
"value": "light-dark(var(--_helix-neutral-0), var(--_helix-neutral-800))"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"category": "color",
|
|
@@ -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