glasslikeui 1.0.0 → 1.1.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.
Files changed (32) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +215 -215
  3. package/dist/components/glass/Glass.svelte +164 -164
  4. package/dist/components/glass/GlassCard.svelte +71 -71
  5. package/dist/components/glass/GlassDimLayer.svelte +37 -37
  6. package/dist/components/glass/GlassEffectContainer.svelte +58 -58
  7. package/dist/components/glass/GlassMorph.svelte +42 -42
  8. package/dist/components/glass/GlassSection.svelte +82 -82
  9. package/dist/components/glass/LensFilters.svelte +41 -41
  10. package/dist/components/glass/Sheet.svelte +266 -266
  11. package/dist/components/interactive/Badge.svelte +52 -52
  12. package/dist/components/interactive/Button.svelte +168 -168
  13. package/dist/components/interactive/IconButton.svelte +74 -74
  14. package/dist/components/interactive/TabView.svelte +107 -18
  15. package/dist/components/layout/Divider.svelte +31 -31
  16. package/dist/components/layout/Grid.svelte +52 -52
  17. package/dist/components/layout/HStack.svelte +76 -76
  18. package/dist/components/layout/ScrollView.svelte +83 -83
  19. package/dist/components/layout/Spacer.svelte +18 -18
  20. package/dist/components/layout/VStack.svelte +56 -56
  21. package/dist/components/layout/ZStack.svelte +51 -51
  22. package/dist/components/list/List.svelte +50 -50
  23. package/dist/components/list/ListRow.svelte +181 -181
  24. package/dist/components/media/SymbolImage.svelte +46 -46
  25. package/dist/components/navigation/NavigationBar.svelte +195 -195
  26. package/dist/components/navigation/NavigationLink.svelte +45 -45
  27. package/dist/components/typography/Text.svelte +98 -98
  28. package/dist/styles/glasslikeui.css +192 -192
  29. package/dist/styles/lens.css +93 -93
  30. package/dist/styles/squircle.css +17 -17
  31. package/dist/styles/typography.css +27 -27
  32. package/package.json +50 -50
@@ -1,192 +1,192 @@
1
- /* GlassLikeUI v1 design tokens.
2
- * Import in your global styles. Mount <LensFilters /> once at app root
3
- * for SVG filter defs.
4
- */
5
-
6
- :root {
7
- /* ========================================
8
- Glass surface tokens (dark mode default)
9
- ======================================== */
10
-
11
- /* Base surface color — variant-driven opacity applied at runtime */
12
- --glass-surface-color: 28, 28, 30;
13
- --glass-opacity: 0.30;
14
- --glass-surface-bg: rgba(var(--glass-surface-color), var(--glass-opacity));
15
-
16
- /* Core effect parameters (intensity-driven) */
17
- --glass-blur: 20px;
18
- --glass-displacement-scale: 8;
19
- --glass-saturation: 1.8;
20
-
21
- /* Edge + highlight tokens */
22
- --glass-border: rgba(255, 255, 255, 0.12);
23
- --glass-border-width: 0.5px;
24
- --glass-highlight: rgba(255, 255, 255, 0.08);
25
- --glass-shadow: rgba(0, 0, 0, 0.5);
26
- --glass-shadow-inner: rgba(0, 0, 0, 0.2);
27
- --glass-divider: rgba(255, 255, 255, 0.08);
28
- --glass-handle: rgba(255, 255, 255, 0.3);
29
- --glass-highlight-angle: 135deg;
30
- --glass-motion-enabled: 1;
31
-
32
- /* Interaction states */
33
- --glass-hover-bg: rgba(255, 255, 255, 0.08);
34
- --glass-hover-subtle: rgba(255, 255, 255, 0.04);
35
- --glass-active-bg: rgba(255, 255, 255, 0.12);
36
- --glass-active-subtle: rgba(255, 255, 255, 0.06);
37
-
38
- /* Component helpers */
39
- --glass-button-bg: rgba(255, 255, 255, 0.1);
40
- --glass-button-hover: rgba(255, 255, 255, 0.15);
41
- --glass-badge-bg: rgba(255, 255, 255, 0.08);
42
-
43
- /* Navigation chrome */
44
- --glass-nav-bg: rgba(0, 0, 0, 0.7);
45
- --glass-blur-nav: 24px;
46
-
47
- /* Sheet chrome */
48
- --glass-sheet-bg: rgba(28, 28, 30, 0.80);
49
-
50
- /* ========================================
51
- Accent system
52
- ======================================== */
53
- --color-accent: #0071e3;
54
- --color-accent-hover: color-mix(in srgb, var(--color-accent) 85%, white);
55
- --color-accent-active: color-mix(in srgb, var(--color-accent) 85%, black);
56
- --color-accent-10: color-mix(in srgb, var(--color-accent) 10%, transparent);
57
- --color-accent-15: color-mix(in srgb, var(--color-accent) 15%, transparent);
58
- --color-accent-25: color-mix(in srgb, var(--color-accent) 25%, transparent);
59
- --color-accent-50: color-mix(in srgb, var(--color-accent) 50%, transparent);
60
-
61
- /* Semantic danger — adapts to light/dark via color-mix */
62
- --color-danger: #ef4444;
63
- --color-danger-hover: color-mix(in srgb, var(--color-danger) 85%, white);
64
- --color-danger-active: color-mix(in srgb, var(--color-danger) 85%, black);
65
-
66
- /* ========================================
67
- Radius system
68
- ======================================== */
69
- --glass-radius-sm: 12px;
70
- --glass-radius-md: 18px;
71
- --glass-radius-lg: 24px;
72
- --glass-radius-xl: 32px;
73
- --glass-radius-2xl: 44px;
74
- --glass-radius-full: 9999px;
75
-
76
- /* ========================================
77
- Spacing system
78
- ======================================== */
79
- --spacing-xs: 0.5rem;
80
- --spacing-sm: 1rem;
81
- --spacing-md: 1.5rem;
82
- --spacing-lg: 2.5rem;
83
- --spacing-xl: 4rem;
84
- --spacing-2xl: 6rem;
85
-
86
- /* ========================================
87
- Transitions
88
- ======================================== */
89
- --transition: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
90
- --transition-fast: 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
91
- --transition-spring: 0.4s cubic-bezier(0.32, 0.72, 0, 1);
92
-
93
- /* ========================================
94
- Layout caps
95
- ======================================== */
96
- --max-width: 1200px;
97
- --max-width-wide: 1440px;
98
-
99
- /* Typography tokens are defined in styles/typography.css. */
100
- }
101
-
102
- /* ========================================
103
- Light mode overrides
104
- ======================================== */
105
- :root[data-theme='light'] {
106
- --glass-surface-color: 255, 255, 255;
107
- --glass-opacity: 0.22;
108
-
109
- --glass-border: rgba(0, 0, 0, 0.06);
110
- --glass-highlight: rgba(255, 255, 255, 0.8);
111
- --glass-shadow: rgba(0, 0, 0, 0.12);
112
- --glass-shadow-inner: rgba(0, 0, 0, 0.04);
113
- --glass-divider: rgba(0, 0, 0, 0.06);
114
- --glass-handle: rgba(0, 0, 0, 0.2);
115
-
116
- --glass-hover-bg: rgba(0, 0, 0, 0.04);
117
- --glass-hover-subtle: rgba(0, 0, 0, 0.02);
118
- --glass-active-bg: rgba(0, 0, 0, 0.08);
119
- --glass-active-subtle: rgba(0, 0, 0, 0.04);
120
-
121
- --glass-button-bg: rgba(0, 0, 0, 0.05);
122
- --glass-button-hover: rgba(0, 0, 0, 0.08);
123
- --glass-badge-bg: rgba(0, 0, 0, 0.04);
124
-
125
- --glass-nav-bg: rgba(255, 255, 255, 0.85);
126
- --glass-sheet-bg: rgba(255, 255, 255, 0.88);
127
- }
128
-
129
- /* ========================================
130
- Accessibility — dual path
131
- Native media queries (Safari) + data-attribute fallback (cross-browser)
132
- Consumers on Chrome/Firefox can wire matchMedia into data-attrs manually.
133
- ======================================== */
134
-
135
- @media (prefers-reduced-transparency: reduce) {
136
- :root {
137
- --glass-opacity: 0.95;
138
- --glass-blur: 0px;
139
- --glass-displacement-scale: 0;
140
- --glass-saturation: 1;
141
- }
142
- }
143
- :root[data-reduced-transparency='true'] {
144
- --glass-opacity: 0.95;
145
- --glass-blur: 0px;
146
- --glass-displacement-scale: 0;
147
- --glass-saturation: 1;
148
- }
149
-
150
- @media (prefers-contrast: more) {
151
- :root {
152
- --glass-border-width: 1.5px;
153
- --glass-opacity: 0.98;
154
- }
155
- }
156
- :root[data-contrast='more'] {
157
- --glass-border-width: 1.5px;
158
- --glass-opacity: 0.98;
159
- }
160
-
161
- @media (prefers-reduced-motion: reduce) {
162
- :root {
163
- --transition: 0s;
164
- --transition-fast: 0s;
165
- --transition-spring: 0s;
166
- --glass-motion-enabled: 0;
167
- }
168
- }
169
- :root[data-reduced-motion='true'] {
170
- --transition: 0s;
171
- --transition-fast: 0s;
172
- --transition-spring: 0s;
173
- --glass-motion-enabled: 0;
174
- }
175
-
176
- /* ========================================
177
- No backdrop-filter support — opaque fallback
178
- ======================================== */
179
- @supports not (backdrop-filter: blur(1px)) {
180
- :root {
181
- --glass-opacity: 0.92;
182
- }
183
- }
184
-
185
- /* ========================================
186
- Performance — reduce effect cost on small viewports
187
- ======================================== */
188
- @media (max-width: 768px) {
189
- :root {
190
- --glass-blur-nav: 16px;
191
- }
192
- }
1
+ /* GlassLikeUI v1 design tokens.
2
+ * Import in your global styles. Mount <LensFilters /> once at app root
3
+ * for SVG filter defs.
4
+ */
5
+
6
+ :root {
7
+ /* ========================================
8
+ Glass surface tokens (dark mode default)
9
+ ======================================== */
10
+
11
+ /* Base surface color — variant-driven opacity applied at runtime */
12
+ --glass-surface-color: 28, 28, 30;
13
+ --glass-opacity: 0.30;
14
+ --glass-surface-bg: rgba(var(--glass-surface-color), var(--glass-opacity));
15
+
16
+ /* Core effect parameters (intensity-driven) */
17
+ --glass-blur: 20px;
18
+ --glass-displacement-scale: 8;
19
+ --glass-saturation: 1.8;
20
+
21
+ /* Edge + highlight tokens */
22
+ --glass-border: rgba(255, 255, 255, 0.12);
23
+ --glass-border-width: 0.5px;
24
+ --glass-highlight: rgba(255, 255, 255, 0.08);
25
+ --glass-shadow: rgba(0, 0, 0, 0.5);
26
+ --glass-shadow-inner: rgba(0, 0, 0, 0.2);
27
+ --glass-divider: rgba(255, 255, 255, 0.08);
28
+ --glass-handle: rgba(255, 255, 255, 0.3);
29
+ --glass-highlight-angle: 135deg;
30
+ --glass-motion-enabled: 1;
31
+
32
+ /* Interaction states */
33
+ --glass-hover-bg: rgba(255, 255, 255, 0.08);
34
+ --glass-hover-subtle: rgba(255, 255, 255, 0.04);
35
+ --glass-active-bg: rgba(255, 255, 255, 0.12);
36
+ --glass-active-subtle: rgba(255, 255, 255, 0.06);
37
+
38
+ /* Component helpers */
39
+ --glass-button-bg: rgba(255, 255, 255, 0.1);
40
+ --glass-button-hover: rgba(255, 255, 255, 0.15);
41
+ --glass-badge-bg: rgba(255, 255, 255, 0.08);
42
+
43
+ /* Navigation chrome */
44
+ --glass-nav-bg: rgba(0, 0, 0, 0.7);
45
+ --glass-blur-nav: 24px;
46
+
47
+ /* Sheet chrome */
48
+ --glass-sheet-bg: rgba(28, 28, 30, 0.80);
49
+
50
+ /* ========================================
51
+ Accent system
52
+ ======================================== */
53
+ --color-accent: #0071e3;
54
+ --color-accent-hover: color-mix(in srgb, var(--color-accent) 85%, white);
55
+ --color-accent-active: color-mix(in srgb, var(--color-accent) 85%, black);
56
+ --color-accent-10: color-mix(in srgb, var(--color-accent) 10%, transparent);
57
+ --color-accent-15: color-mix(in srgb, var(--color-accent) 15%, transparent);
58
+ --color-accent-25: color-mix(in srgb, var(--color-accent) 25%, transparent);
59
+ --color-accent-50: color-mix(in srgb, var(--color-accent) 50%, transparent);
60
+
61
+ /* Semantic danger — adapts to light/dark via color-mix */
62
+ --color-danger: #ef4444;
63
+ --color-danger-hover: color-mix(in srgb, var(--color-danger) 85%, white);
64
+ --color-danger-active: color-mix(in srgb, var(--color-danger) 85%, black);
65
+
66
+ /* ========================================
67
+ Radius system
68
+ ======================================== */
69
+ --glass-radius-sm: 12px;
70
+ --glass-radius-md: 18px;
71
+ --glass-radius-lg: 24px;
72
+ --glass-radius-xl: 32px;
73
+ --glass-radius-2xl: 44px;
74
+ --glass-radius-full: 9999px;
75
+
76
+ /* ========================================
77
+ Spacing system
78
+ ======================================== */
79
+ --spacing-xs: 0.5rem;
80
+ --spacing-sm: 1rem;
81
+ --spacing-md: 1.5rem;
82
+ --spacing-lg: 2.5rem;
83
+ --spacing-xl: 4rem;
84
+ --spacing-2xl: 6rem;
85
+
86
+ /* ========================================
87
+ Transitions
88
+ ======================================== */
89
+ --transition: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
90
+ --transition-fast: 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
91
+ --transition-spring: 0.4s cubic-bezier(0.32, 0.72, 0, 1);
92
+
93
+ /* ========================================
94
+ Layout caps
95
+ ======================================== */
96
+ --max-width: 1200px;
97
+ --max-width-wide: 1440px;
98
+
99
+ /* Typography tokens are defined in styles/typography.css. */
100
+ }
101
+
102
+ /* ========================================
103
+ Light mode overrides
104
+ ======================================== */
105
+ :root[data-theme='light'] {
106
+ --glass-surface-color: 255, 255, 255;
107
+ --glass-opacity: 0.22;
108
+
109
+ --glass-border: rgba(0, 0, 0, 0.06);
110
+ --glass-highlight: rgba(255, 255, 255, 0.8);
111
+ --glass-shadow: rgba(0, 0, 0, 0.12);
112
+ --glass-shadow-inner: rgba(0, 0, 0, 0.04);
113
+ --glass-divider: rgba(0, 0, 0, 0.06);
114
+ --glass-handle: rgba(0, 0, 0, 0.2);
115
+
116
+ --glass-hover-bg: rgba(0, 0, 0, 0.04);
117
+ --glass-hover-subtle: rgba(0, 0, 0, 0.02);
118
+ --glass-active-bg: rgba(0, 0, 0, 0.08);
119
+ --glass-active-subtle: rgba(0, 0, 0, 0.04);
120
+
121
+ --glass-button-bg: rgba(0, 0, 0, 0.05);
122
+ --glass-button-hover: rgba(0, 0, 0, 0.08);
123
+ --glass-badge-bg: rgba(0, 0, 0, 0.04);
124
+
125
+ --glass-nav-bg: rgba(255, 255, 255, 0.85);
126
+ --glass-sheet-bg: rgba(255, 255, 255, 0.88);
127
+ }
128
+
129
+ /* ========================================
130
+ Accessibility — dual path
131
+ Native media queries (Safari) + data-attribute fallback (cross-browser)
132
+ Consumers on Chrome/Firefox can wire matchMedia into data-attrs manually.
133
+ ======================================== */
134
+
135
+ @media (prefers-reduced-transparency: reduce) {
136
+ :root {
137
+ --glass-opacity: 0.95;
138
+ --glass-blur: 0px;
139
+ --glass-displacement-scale: 0;
140
+ --glass-saturation: 1;
141
+ }
142
+ }
143
+ :root[data-reduced-transparency='true'] {
144
+ --glass-opacity: 0.95;
145
+ --glass-blur: 0px;
146
+ --glass-displacement-scale: 0;
147
+ --glass-saturation: 1;
148
+ }
149
+
150
+ @media (prefers-contrast: more) {
151
+ :root {
152
+ --glass-border-width: 1.5px;
153
+ --glass-opacity: 0.98;
154
+ }
155
+ }
156
+ :root[data-contrast='more'] {
157
+ --glass-border-width: 1.5px;
158
+ --glass-opacity: 0.98;
159
+ }
160
+
161
+ @media (prefers-reduced-motion: reduce) {
162
+ :root {
163
+ --transition: 0s;
164
+ --transition-fast: 0s;
165
+ --transition-spring: 0s;
166
+ --glass-motion-enabled: 0;
167
+ }
168
+ }
169
+ :root[data-reduced-motion='true'] {
170
+ --transition: 0s;
171
+ --transition-fast: 0s;
172
+ --transition-spring: 0s;
173
+ --glass-motion-enabled: 0;
174
+ }
175
+
176
+ /* ========================================
177
+ No backdrop-filter support — opaque fallback
178
+ ======================================== */
179
+ @supports not (backdrop-filter: blur(1px)) {
180
+ :root {
181
+ --glass-opacity: 0.92;
182
+ }
183
+ }
184
+
185
+ /* ========================================
186
+ Performance — reduce effect cost on small viewports
187
+ ======================================== */
188
+ @media (max-width: 768px) {
189
+ :root {
190
+ --glass-blur-nav: 16px;
191
+ }
192
+ }
@@ -1,93 +1,93 @@
1
- /* Glass lens layer.
2
- * Pseudo-element strategy: ::before captures backdrop via backdrop-filter,
3
- * then an SVG filter displaces those pixels to produce edge refraction.
4
- * Requires <LensFilters /> mounted once for the SVG defs.
5
- */
6
-
7
- .glass-surface {
8
- position: relative;
9
- isolation: isolate;
10
- background: var(--glass-surface-bg);
11
- border-radius: var(--glass-radius, var(--glass-radius-lg));
12
- overflow: hidden;
13
- color: inherit;
14
- }
15
-
16
- .glass-surface::before {
17
- content: '';
18
- position: absolute;
19
- inset: 0;
20
- z-index: 0;
21
- border-radius: inherit;
22
- backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
23
- -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
24
- pointer-events: none;
25
- }
26
-
27
- .glass-surface.has-lensing::before {
28
- filter: url(#glass-lens-refract);
29
- }
30
-
31
- .glass-surface::after {
32
- content: '';
33
- position: absolute;
34
- inset: 0;
35
- z-index: 1;
36
- border-radius: inherit;
37
- pointer-events: none;
38
- border: var(--glass-border-width) solid var(--glass-border);
39
- box-shadow:
40
- inset 0 1px 0 0 var(--glass-highlight),
41
- inset 0 -1px 0 0 var(--glass-shadow-inner);
42
- background: linear-gradient(
43
- var(--glass-highlight-angle),
44
- rgba(255, 255, 255, calc(0.08 * var(--glass-motion-enabled))) 0%,
45
- transparent 40%,
46
- transparent 60%,
47
- rgba(0, 0, 0, calc(0.04 * var(--glass-motion-enabled))) 100%
48
- );
49
- mix-blend-mode: overlay;
50
- }
51
-
52
- .glass-content {
53
- position: relative;
54
- z-index: 2;
55
- height: 100%;
56
- }
57
-
58
- .glass-content > :where(h1, h2, h3, h4, h5, h6, p, span, label, a, button) {
59
- font-family: var(--font-system);
60
- }
61
-
62
- .glass-surface.has-shadow {
63
- box-shadow:
64
- 0 8px 32px -8px var(--glass-shadow),
65
- 0 2px 8px -2px var(--glass-shadow);
66
- }
67
-
68
- .glass-surface.is-interactive {
69
- cursor: pointer;
70
- transition: transform var(--transition-fast), box-shadow var(--transition-fast);
71
- }
72
- .glass-surface.is-interactive:hover {
73
- transform: scale(calc(1 + 0.01 * var(--glass-motion-enabled)));
74
- box-shadow:
75
- 0 12px 40px -8px var(--glass-shadow),
76
- 0 4px 12px -2px var(--glass-shadow),
77
- 0 0 0 1px var(--glass-highlight);
78
- }
79
- .glass-surface.is-interactive:active {
80
- transform: scale(calc(1 - 0.005 * var(--glass-motion-enabled)));
81
- }
82
-
83
- .glass-dim-layer {
84
- position: absolute;
85
- inset: 0;
86
- background: linear-gradient(
87
- to bottom,
88
- rgba(0, 0, 0, 0.2) 0%,
89
- rgba(0, 0, 0, 0.45) 100%
90
- );
91
- pointer-events: none;
92
- z-index: -1;
93
- }
1
+ /* Glass lens layer.
2
+ * Pseudo-element strategy: ::before captures backdrop via backdrop-filter,
3
+ * then an SVG filter displaces those pixels to produce edge refraction.
4
+ * Requires <LensFilters /> mounted once for the SVG defs.
5
+ */
6
+
7
+ .glass-surface {
8
+ position: relative;
9
+ isolation: isolate;
10
+ background: var(--glass-surface-bg);
11
+ border-radius: var(--glass-radius, var(--glass-radius-lg));
12
+ overflow: hidden;
13
+ color: inherit;
14
+ }
15
+
16
+ .glass-surface::before {
17
+ content: '';
18
+ position: absolute;
19
+ inset: 0;
20
+ z-index: 0;
21
+ border-radius: inherit;
22
+ backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
23
+ -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
24
+ pointer-events: none;
25
+ }
26
+
27
+ .glass-surface.has-lensing::before {
28
+ filter: url(#glass-lens-refract);
29
+ }
30
+
31
+ .glass-surface::after {
32
+ content: '';
33
+ position: absolute;
34
+ inset: 0;
35
+ z-index: 1;
36
+ border-radius: inherit;
37
+ pointer-events: none;
38
+ border: var(--glass-border-width) solid var(--glass-border);
39
+ box-shadow:
40
+ inset 0 1px 0 0 var(--glass-highlight),
41
+ inset 0 -1px 0 0 var(--glass-shadow-inner);
42
+ background: linear-gradient(
43
+ var(--glass-highlight-angle),
44
+ rgba(255, 255, 255, calc(0.08 * var(--glass-motion-enabled))) 0%,
45
+ transparent 40%,
46
+ transparent 60%,
47
+ rgba(0, 0, 0, calc(0.04 * var(--glass-motion-enabled))) 100%
48
+ );
49
+ mix-blend-mode: overlay;
50
+ }
51
+
52
+ .glass-content {
53
+ position: relative;
54
+ z-index: 2;
55
+ height: 100%;
56
+ }
57
+
58
+ .glass-content > :where(h1, h2, h3, h4, h5, h6, p, span, label, a, button) {
59
+ font-family: var(--font-system);
60
+ }
61
+
62
+ .glass-surface.has-shadow {
63
+ box-shadow:
64
+ 0 8px 32px -8px var(--glass-shadow),
65
+ 0 2px 8px -2px var(--glass-shadow);
66
+ }
67
+
68
+ .glass-surface.is-interactive {
69
+ cursor: pointer;
70
+ transition: transform var(--transition-fast), box-shadow var(--transition-fast);
71
+ }
72
+ .glass-surface.is-interactive:hover {
73
+ transform: scale(calc(1 + 0.01 * var(--glass-motion-enabled)));
74
+ box-shadow:
75
+ 0 12px 40px -8px var(--glass-shadow),
76
+ 0 4px 12px -2px var(--glass-shadow),
77
+ 0 0 0 1px var(--glass-highlight);
78
+ }
79
+ .glass-surface.is-interactive:active {
80
+ transform: scale(calc(1 - 0.005 * var(--glass-motion-enabled)));
81
+ }
82
+
83
+ .glass-dim-layer {
84
+ position: absolute;
85
+ inset: 0;
86
+ background: linear-gradient(
87
+ to bottom,
88
+ rgba(0, 0, 0, 0.2) 0%,
89
+ rgba(0, 0, 0, 0.45) 100%
90
+ );
91
+ pointer-events: none;
92
+ z-index: -1;
93
+ }
@@ -1,17 +1,17 @@
1
- /* Squircle corner utility.
2
- * Uses clip-path with a normalized (objectBoundingBox) path so the shape
3
- * scales correctly with element dimensions. Apply .glass-squircle to any
4
- * element that should have continuous-curve corners instead of circular.
5
- * Falls back to CSS border-radius where the clip-path is unsupported.
6
- */
7
-
8
- .glass-squircle {
9
- clip-path: url(#glass-squircle-path);
10
- }
11
-
12
- @supports (corner-shape: superellipse(2)) {
13
- .glass-squircle {
14
- clip-path: none;
15
- corner-shape: superellipse(2.5);
16
- }
17
- }
1
+ /* Squircle corner utility.
2
+ * Uses clip-path with a normalized (objectBoundingBox) path so the shape
3
+ * scales correctly with element dimensions. Apply .glass-squircle to any
4
+ * element that should have continuous-curve corners instead of circular.
5
+ * Falls back to CSS border-radius where the clip-path is unsupported.
6
+ */
7
+
8
+ .glass-squircle {
9
+ clip-path: url(#glass-squircle-path);
10
+ }
11
+
12
+ @supports (corner-shape: superellipse(2)) {
13
+ .glass-squircle {
14
+ clip-path: none;
15
+ corner-shape: superellipse(2.5);
16
+ }
17
+ }
@@ -1,27 +1,27 @@
1
- /* Typography tokens.
2
- * SF Pro where available, then Segoe UI (Windows), Roboto (Linux/Android),
3
- * Helvetica/Arial, and finally the system sans-serif fallback.
4
- *
5
- * Tokens are exposed as CSS custom properties but are NOT applied to :root
6
- * so that they don't override the consumer's own body font. Library
7
- * components opt in via `font-family: var(--font-system)`.
8
- */
9
-
10
- :root {
11
- --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro',
12
- 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
13
- --font-system-mono: ui-monospace, 'SF Mono', Menlo, 'Cascadia Mono',
14
- 'Roboto Mono', 'Courier New', monospace;
15
- --dynamic-type-scale: 1;
16
- }
17
-
18
- /* Consumer can opt in globally like this:
19
- * body { font-family: var(--font-system); }
20
- * or use these utility classes on specific elements:
21
- */
22
- .font-system {
23
- font-family: var(--font-system);
24
- }
25
- .font-system-mono {
26
- font-family: var(--font-system-mono);
27
- }
1
+ /* Typography tokens.
2
+ * SF Pro where available, then Segoe UI (Windows), Roboto (Linux/Android),
3
+ * Helvetica/Arial, and finally the system sans-serif fallback.
4
+ *
5
+ * Tokens are exposed as CSS custom properties but are NOT applied to :root
6
+ * so that they don't override the consumer's own body font. Library
7
+ * components opt in via `font-family: var(--font-system)`.
8
+ */
9
+
10
+ :root {
11
+ --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro',
12
+ 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
13
+ --font-system-mono: ui-monospace, 'SF Mono', Menlo, 'Cascadia Mono',
14
+ 'Roboto Mono', 'Courier New', monospace;
15
+ --dynamic-type-scale: 1;
16
+ }
17
+
18
+ /* Consumer can opt in globally like this:
19
+ * body { font-family: var(--font-system); }
20
+ * or use these utility classes on specific elements:
21
+ */
22
+ .font-system {
23
+ font-family: var(--font-system);
24
+ }
25
+ .font-system-mono {
26
+ font-family: var(--font-system-mono);
27
+ }