@warmio/design 4.1.0 → 4.2.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/interfaces.css +1 -14
- package/logo.css +2 -2
- package/package.json +1 -1
- package/theme.css +33 -8
package/interfaces.css
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* Shared interfaces.dev baseline — https://interfaces.dev/cheat-sheet */
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
|
-
/* Concentric radius: nested surfaces subtract padding from the outer radius. */
|
|
5
4
|
--interface-prose-measure: 65ch;
|
|
6
5
|
}
|
|
7
6
|
|
|
@@ -31,10 +30,6 @@ html.theme-switching *::after {
|
|
|
31
30
|
text-decoration-skip-ink: auto;
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
[data-slot='card'] {
|
|
35
|
-
--interface-outer-radius: var(--radius-xl);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
33
|
[data-slot='card']
|
|
39
34
|
:is(
|
|
40
35
|
[data-slot='input'],
|
|
@@ -42,8 +37,7 @@ html.theme-switching *::after {
|
|
|
42
37
|
[data-slot='select-trigger'],
|
|
43
38
|
[data-slot='input-group']
|
|
44
39
|
) {
|
|
45
|
-
|
|
46
|
-
border-radius: max(0px, calc(var(--interface-outer-radius) - var(--interface-inset)));
|
|
40
|
+
border-radius: 0;
|
|
47
41
|
}
|
|
48
42
|
}
|
|
49
43
|
|
|
@@ -52,13 +46,6 @@ html.theme-switching *::after {
|
|
|
52
46
|
max-width: var(--interface-prose-measure);
|
|
53
47
|
}
|
|
54
48
|
|
|
55
|
-
.interface-concentric {
|
|
56
|
-
border-radius: max(
|
|
57
|
-
0px,
|
|
58
|
-
calc(var(--interface-outer-radius, var(--radius-xl)) - var(--interface-inset, 0px))
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
49
|
.interface-icon-crossfade {
|
|
63
50
|
position: relative;
|
|
64
51
|
display: inline-flex;
|
package/logo.css
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
[data-warm-logo] {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
5
|
-
gap: var(--
|
|
5
|
+
gap: var(--spacing-sm);
|
|
6
6
|
}
|
|
7
7
|
[data-warm-logo] > span {
|
|
8
|
-
font-size: var(--
|
|
8
|
+
font-size: var(--type-size-body);
|
|
9
9
|
font-weight: 500;
|
|
10
10
|
letter-spacing: var(--logo-letter-spacing);
|
|
11
11
|
}
|
package/package.json
CHANGED
package/theme.css
CHANGED
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
--type-size-title-phone: 1.375rem;
|
|
12
12
|
--type-size-stat: 1.25rem;
|
|
13
13
|
--type-size-display-large: 2rem;
|
|
14
|
-
--type-size-display-
|
|
14
|
+
--type-size-display-hero: 3.25rem;
|
|
15
|
+
--type-size-display-hero-phone: 2.5rem;
|
|
16
|
+
--type-size-display-label-phone: 1.0625rem;
|
|
15
17
|
--type-leading-label: 1.125rem;
|
|
16
18
|
--type-leading-body: 1rem;
|
|
17
19
|
--type-leading-body-emphasis: 1.25rem;
|
|
@@ -25,11 +27,14 @@
|
|
|
25
27
|
--type-leading-stat: 1.75rem;
|
|
26
28
|
--type-leading-display-large: 2.375rem;
|
|
27
29
|
--type-leading-display-large-tight: 2.25rem;
|
|
28
|
-
--type-leading-display-
|
|
30
|
+
--type-leading-display-hero: 3.5rem;
|
|
31
|
+
--type-leading-display-hero-phone: 2.75rem;
|
|
32
|
+
--type-leading-display-label-phone: 1.25rem;
|
|
29
33
|
--type-tracking-body: 0.02em;
|
|
30
34
|
--type-tracking-title: -0.01em;
|
|
31
35
|
--type-tracking-heading: -0.03em;
|
|
32
36
|
--type-tracking-display: -0.02em;
|
|
37
|
+
--type-tracking-display-hero: -0.035em;
|
|
33
38
|
--type-tracking-caps: 0.05em;
|
|
34
39
|
--control-type-size: var(--type-size-body);
|
|
35
40
|
--control-type-leading: var(--type-leading-body);
|
|
@@ -46,7 +51,8 @@
|
|
|
46
51
|
--radius-md: 0.5rem;
|
|
47
52
|
--radius-xl: 0.75rem;
|
|
48
53
|
--radius-overlay: 0.625rem;
|
|
49
|
-
--radius-control: var(--radius-
|
|
54
|
+
--radius-control: var(--radius-md);
|
|
55
|
+
--radius-control-inset: var(--radius-sm);
|
|
50
56
|
--radius-full: 9999px;
|
|
51
57
|
--radius: var(--radius-md);
|
|
52
58
|
|
|
@@ -86,12 +92,10 @@
|
|
|
86
92
|
--logo-size-default: 1.75rem;
|
|
87
93
|
--logo-size-feature: 2rem;
|
|
88
94
|
--logo-size-hero: 3.5rem;
|
|
89
|
-
--logo-
|
|
90
|
-
--logo-letter-spacing: 0.025em;
|
|
95
|
+
--logo-letter-spacing: var(--type-tracking-body);
|
|
91
96
|
--logo-rest-filter: none;
|
|
92
97
|
--logo-rest-opacity: 1;
|
|
93
98
|
--logo-rest-backing: none;
|
|
94
|
-
--logo-gap: var(--spacing-sm);
|
|
95
99
|
--logo-frame-radius: var(--radius-sm);
|
|
96
100
|
|
|
97
101
|
/* ─── Layout ─── */
|
|
@@ -111,6 +115,18 @@
|
|
|
111
115
|
--chart-area-gradient-mid-offset: 55%;
|
|
112
116
|
}
|
|
113
117
|
|
|
118
|
+
@media (pointer: coarse), (width < 48rem) {
|
|
119
|
+
:root {
|
|
120
|
+
--field-type-size: var(--type-size-body-large);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media (width < 48rem) {
|
|
125
|
+
:root {
|
|
126
|
+
--control-height-sm: 2.75rem;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
114
130
|
@media (prefers-reduced-motion: reduce) {
|
|
115
131
|
:root {
|
|
116
132
|
--motion-duration-fast: 0ms;
|
|
@@ -136,7 +152,7 @@
|
|
|
136
152
|
--accent-tint: oklch(95% 0.0084 295);
|
|
137
153
|
--negative-tint: oklch(94.7% 0.0095 32);
|
|
138
154
|
--warning-tint: oklch(94.8% 0.009 75);
|
|
139
|
-
--scrim: oklch(12% 0.025 295 /
|
|
155
|
+
--scrim: oklch(12% 0.025 295 / 10%);
|
|
140
156
|
--shadow-color: oklch(12% 0.025 295 / 10%);
|
|
141
157
|
--chart-mid: oklch(77.5% 0.0378 295);
|
|
142
158
|
--hue-sky: oklch(50% 0.08 232);
|
|
@@ -169,7 +185,7 @@
|
|
|
169
185
|
--accent-tint: oklch(25.85% 0.0124 295);
|
|
170
186
|
--negative-tint: oklch(25.85% 0.007695 351.2865);
|
|
171
187
|
--warning-tint: oklch(26.05% 0.005194 33.0617);
|
|
172
|
-
--scrim: oklch(12% 0.025 295 /
|
|
188
|
+
--scrim: oklch(12% 0.025 295 / 10%);
|
|
173
189
|
--shadow-color: oklch(12% 0.025 295 / 50%);
|
|
174
190
|
--chart-mid: oklch(44.575% 0.0348 295);
|
|
175
191
|
--hue-sky: oklch(78% 0.08 232);
|
|
@@ -193,6 +209,14 @@
|
|
|
193
209
|
--onboarding-setup-field-label-leading: var(--type-leading-body-emphasis);
|
|
194
210
|
}
|
|
195
211
|
|
|
212
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
213
|
+
:root:where(*),
|
|
214
|
+
.light,
|
|
215
|
+
.dark {
|
|
216
|
+
--scrim: oklch(12% 0.025 295 / 60%);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
196
220
|
@theme inline {
|
|
197
221
|
--color-*: initial;
|
|
198
222
|
--color-background: var(--background);
|
|
@@ -237,6 +261,7 @@
|
|
|
237
261
|
--radius: var(--radius-md);
|
|
238
262
|
--radius-md: var(--radius-md);
|
|
239
263
|
--radius-control: var(--radius-control);
|
|
264
|
+
--radius-control-inset: var(--radius-control-inset);
|
|
240
265
|
--radius-xl: var(--radius-xl);
|
|
241
266
|
--radius-full: var(--radius-full);
|
|
242
267
|
|