ferst-core 0.10.0 → 0.10.1
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/components/Button.astro +259 -259
- package/package.json +1 -1
package/components/Button.astro
CHANGED
|
@@ -1,260 +1,260 @@
|
|
|
1
|
-
---
|
|
2
|
-
interface Props {
|
|
3
|
-
href?: string;
|
|
4
|
-
type?: 'button' | 'submit' | 'reset';
|
|
5
|
-
variant?: 'primary' | 'secondary' | 'cta' | 'compact' | 'ghost';
|
|
6
|
-
size?: 'sm' | 'md';
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
[x: string]: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const {
|
|
12
|
-
href,
|
|
13
|
-
type = 'button',
|
|
14
|
-
variant = 'primary',
|
|
15
|
-
size = 'md',
|
|
16
|
-
disabled = false,
|
|
17
|
-
...rest
|
|
18
|
-
} = Astro.props;
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
{href ? (
|
|
22
|
-
<a
|
|
23
|
-
href={href}
|
|
24
|
-
class:list={['btn', `btn--${variant}`, size === 'sm' && 'btn--sm']}
|
|
25
|
-
{...rest}
|
|
26
|
-
>
|
|
27
|
-
<slot />
|
|
28
|
-
</a>
|
|
29
|
-
) : (
|
|
30
|
-
<button
|
|
31
|
-
type={type}
|
|
32
|
-
disabled={disabled}
|
|
33
|
-
class:list={['btn', `btn--${variant}`, size === 'sm' && 'btn--sm']}
|
|
34
|
-
{...rest}
|
|
35
|
-
>
|
|
36
|
-
<slot />
|
|
37
|
-
</button>
|
|
38
|
-
)}
|
|
39
|
-
|
|
40
|
-
<style>
|
|
41
|
-
/* Mobile-first base: smaller. Desktop ≥64em scales up for visual presence on big screens. */
|
|
42
|
-
.btn {
|
|
43
|
-
display: inline-flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
background: transparent;
|
|
47
|
-
border: 2px solid var(--fg);
|
|
48
|
-
border-radius: var(--radius-sm);
|
|
49
|
-
color: var(--fg);
|
|
50
|
-
font-family: var(--font-heading);
|
|
51
|
-
font-size: 0.75rem;
|
|
52
|
-
font-weight: 600;
|
|
53
|
-
text-transform: uppercase;
|
|
54
|
-
letter-spacing: 0.12em;
|
|
55
|
-
height: auto;
|
|
56
|
-
min-height: 44px;
|
|
57
|
-
padding: 0 0.95rem;
|
|
58
|
-
min-width: 116px;
|
|
59
|
-
text-decoration: none;
|
|
60
|
-
cursor: pointer;
|
|
61
|
-
transition: border-color 0.3s, color 0.3s;
|
|
62
|
-
user-select: none;
|
|
63
|
-
touch-action: manipulation;
|
|
64
|
-
box-sizing: border-box;
|
|
65
|
-
white-space: nowrap;
|
|
66
|
-
}
|
|
67
|
-
@media (min-width: 64em) {
|
|
68
|
-
.btn {
|
|
69
|
-
height: 44px;
|
|
70
|
-
padding: 0 1.1rem;
|
|
71
|
-
font-size: 0.8125rem;
|
|
72
|
-
min-width: 124px;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.btn:hover {
|
|
77
|
-
border-color: var(--gold);
|
|
78
|
-
color: var(--gold);
|
|
79
|
-
}
|
|
80
|
-
.btn:focus-visible {
|
|
81
|
-
outline: 2px solid var(--gold);
|
|
82
|
-
outline-offset: 2px;
|
|
83
|
-
border-color: var(--gold);
|
|
84
|
-
color: var(--gold);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.btn:disabled {
|
|
88
|
-
opacity: 0.5;
|
|
89
|
-
cursor: not-allowed;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/* Role distinction: primary = filled (high emphasis), secondary = the base
|
|
93
|
-
outline (medium). Filled beats the base outline-hover, so override it. */
|
|
94
|
-
.btn--primary {
|
|
95
|
-
background: var(--gold);
|
|
96
|
-
border-color: var(--gold);
|
|
97
|
-
color: var(--on-brand);
|
|
98
|
-
}
|
|
99
|
-
.btn--primary:hover,
|
|
100
|
-
.btn--primary:focus-visible {
|
|
101
|
-
background: color-mix(in srgb, var(--gold) 85%, #000);
|
|
102
|
-
border-color: color-mix(in srgb, var(--gold) 85%, #000);
|
|
103
|
-
color: var(--on-brand);
|
|
104
|
-
}
|
|
105
|
-
.btn--primary:focus-visible {
|
|
106
|
-
outline: 2px solid var(--gold);
|
|
107
|
-
outline-offset: 2px;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.btn--sm {
|
|
111
|
-
height: auto;
|
|
112
|
-
min-height: 40px;
|
|
113
|
-
padding: 0 0.7rem;
|
|
114
|
-
min-width: auto;
|
|
115
|
-
}
|
|
116
|
-
@media (min-width: 64em) {
|
|
117
|
-
.btn--sm { height: 40px; padding: 0 0.85rem; }
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/* CTA / compact variants — a filled button in the brand accent. Token-driven
|
|
121
|
-
(was a hardcoded brand green) so it recolours with the site palette; hover
|
|
122
|
-
darkens the accent via color-mix, which works for any brand colour. */
|
|
123
|
-
.btn--cta {
|
|
124
|
-
background: var(--gold);
|
|
125
|
-
color: var(--on-brand);
|
|
126
|
-
border: none;
|
|
127
|
-
border-radius:
|
|
128
|
-
font-family: var(--font-body);
|
|
129
|
-
font-size: 0.75rem;
|
|
130
|
-
font-weight: 600;
|
|
131
|
-
letter-spacing: 0.1em;
|
|
132
|
-
text-transform: uppercase;
|
|
133
|
-
padding: 0.45rem 0.85rem;
|
|
134
|
-
min-height: 44px;
|
|
135
|
-
min-width: auto;
|
|
136
|
-
transition: background 0.18s ease;
|
|
137
|
-
}
|
|
138
|
-
@media (min-width: 64em) {
|
|
139
|
-
.btn--cta {
|
|
140
|
-
min-height: 44px;
|
|
141
|
-
padding: 0.625rem 1rem;
|
|
142
|
-
font-size: 0.8125rem;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.btn--cta:hover {
|
|
147
|
-
background: color-mix(in srgb, var(--gold) 85%, #000);
|
|
148
|
-
color: var(--on-brand);
|
|
149
|
-
}
|
|
150
|
-
.btn--cta:focus-visible {
|
|
151
|
-
background: color-mix(in srgb, var(--gold) 85%, #000);
|
|
152
|
-
color: var(--on-brand);
|
|
153
|
-
outline: 2px solid var(--gold);
|
|
154
|
-
outline-offset: 2px;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.btn--compact {
|
|
158
|
-
display: inline-flex;
|
|
159
|
-
align-items: center;
|
|
160
|
-
justify-content: center;
|
|
161
|
-
margin-top: auto;
|
|
162
|
-
align-self: var(--content-self, flex-start);
|
|
163
|
-
background: var(--gold);
|
|
164
|
-
color: var(--on-brand);
|
|
165
|
-
border: none;
|
|
166
|
-
border-radius:
|
|
167
|
-
font-family: var(--font-body);
|
|
168
|
-
font-size: 0.75rem;
|
|
169
|
-
font-weight: 600;
|
|
170
|
-
letter-spacing: 0.1em;
|
|
171
|
-
text-transform: uppercase;
|
|
172
|
-
padding: 0.45rem 0.75rem;
|
|
173
|
-
min-width: auto;
|
|
174
|
-
min-height: 44px;
|
|
175
|
-
transition: background 0.18s ease;
|
|
176
|
-
}
|
|
177
|
-
@media (min-width: 64em) {
|
|
178
|
-
.btn--compact {
|
|
179
|
-
min-height: 44px;
|
|
180
|
-
padding: 0.5rem 0.85rem;
|
|
181
|
-
font-size: 0.8125rem;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.btn--compact:hover {
|
|
186
|
-
background: color-mix(in srgb, var(--gold) 85%, #000);
|
|
187
|
-
color: var(--on-brand);
|
|
188
|
-
}
|
|
189
|
-
.btn--compact:focus-visible {
|
|
190
|
-
background: color-mix(in srgb, var(--gold) 85%, #000);
|
|
191
|
-
color: var(--on-brand);
|
|
192
|
-
outline: 2px solid var(--gold);
|
|
193
|
-
outline-offset: 2px;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/* Ghost — a quiet, borderless text button for tertiary actions. */
|
|
197
|
-
.btn--ghost {
|
|
198
|
-
background: transparent;
|
|
199
|
-
border: 2px solid transparent;
|
|
200
|
-
color: var(--gold);
|
|
201
|
-
min-width: auto;
|
|
202
|
-
padding: 0 0.6rem;
|
|
203
|
-
}
|
|
204
|
-
.btn--ghost:hover {
|
|
205
|
-
color: var(--gold);
|
|
206
|
-
border-color: transparent;
|
|
207
|
-
background: var(--gold-light);
|
|
208
|
-
}
|
|
209
|
-
.btn--ghost:focus-visible {
|
|
210
|
-
color: var(--gold);
|
|
211
|
-
border-color: transparent;
|
|
212
|
-
background: var(--gold-light);
|
|
213
|
-
outline: 2px solid var(--gold);
|
|
214
|
-
outline-offset: 2px;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/* Dark mode support */
|
|
218
|
-
:global([data-theme="dark"]) .btn {
|
|
219
|
-
border-color: var(--text-light);
|
|
220
|
-
color: var(--text-light);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
:global([data-theme="dark"]) .btn--ghost {
|
|
224
|
-
border-color: transparent;
|
|
225
|
-
color: var(--gold);
|
|
226
|
-
}
|
|
227
|
-
:global([data-theme="dark"]) .btn--ghost:hover,
|
|
228
|
-
:global([data-theme="dark"]) .btn--ghost:focus-visible {
|
|
229
|
-
border-color: transparent;
|
|
230
|
-
color: var(--gold);
|
|
231
|
-
background: var(--gold-light);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
:global([data-theme="dark"]) .btn:hover,
|
|
235
|
-
:global([data-theme="dark"]) .btn:focus-visible {
|
|
236
|
-
border-color: var(--gold);
|
|
237
|
-
color: var(--gold);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/* In dark mode --gold is a light accent, so dark text reads best on it, and
|
|
241
|
-
hover lightens (mix toward white) rather than darkens. */
|
|
242
|
-
:global([data-theme="dark"]) .btn--cta,
|
|
243
|
-
:global([data-theme="dark"]) .btn--compact,
|
|
244
|
-
:global([data-theme="dark"]) .btn--primary {
|
|
245
|
-
background: var(--gold);
|
|
246
|
-
border-color: var(--gold);
|
|
247
|
-
color: var(--dark-bg);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
:global([data-theme="dark"]) .btn--cta:hover,
|
|
251
|
-
:global([data-theme="dark"]) .btn--cta:focus-visible,
|
|
252
|
-
:global([data-theme="dark"]) .btn--compact:hover,
|
|
253
|
-
:global([data-theme="dark"]) .btn--compact:focus-visible,
|
|
254
|
-
:global([data-theme="dark"]) .btn--primary:hover,
|
|
255
|
-
:global([data-theme="dark"]) .btn--primary:focus-visible {
|
|
256
|
-
background: color-mix(in srgb, var(--gold) 85%, #fff);
|
|
257
|
-
border-color: color-mix(in srgb, var(--gold) 85%, #fff);
|
|
258
|
-
color: var(--dark-bg);
|
|
259
|
-
}
|
|
1
|
+
---
|
|
2
|
+
interface Props {
|
|
3
|
+
href?: string;
|
|
4
|
+
type?: 'button' | 'submit' | 'reset';
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'cta' | 'compact' | 'ghost';
|
|
6
|
+
size?: 'sm' | 'md';
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const {
|
|
12
|
+
href,
|
|
13
|
+
type = 'button',
|
|
14
|
+
variant = 'primary',
|
|
15
|
+
size = 'md',
|
|
16
|
+
disabled = false,
|
|
17
|
+
...rest
|
|
18
|
+
} = Astro.props;
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
{href ? (
|
|
22
|
+
<a
|
|
23
|
+
href={href}
|
|
24
|
+
class:list={['btn', `btn--${variant}`, size === 'sm' && 'btn--sm']}
|
|
25
|
+
{...rest}
|
|
26
|
+
>
|
|
27
|
+
<slot />
|
|
28
|
+
</a>
|
|
29
|
+
) : (
|
|
30
|
+
<button
|
|
31
|
+
type={type}
|
|
32
|
+
disabled={disabled}
|
|
33
|
+
class:list={['btn', `btn--${variant}`, size === 'sm' && 'btn--sm']}
|
|
34
|
+
{...rest}
|
|
35
|
+
>
|
|
36
|
+
<slot />
|
|
37
|
+
</button>
|
|
38
|
+
)}
|
|
39
|
+
|
|
40
|
+
<style>
|
|
41
|
+
/* Mobile-first base: smaller. Desktop ≥64em scales up for visual presence on big screens. */
|
|
42
|
+
.btn {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
background: transparent;
|
|
47
|
+
border: 2px solid var(--fg);
|
|
48
|
+
border-radius: var(--radius-sm);
|
|
49
|
+
color: var(--fg);
|
|
50
|
+
font-family: var(--font-heading);
|
|
51
|
+
font-size: 0.75rem;
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
text-transform: uppercase;
|
|
54
|
+
letter-spacing: 0.12em;
|
|
55
|
+
height: auto;
|
|
56
|
+
min-height: 44px;
|
|
57
|
+
padding: 0 0.95rem;
|
|
58
|
+
min-width: 116px;
|
|
59
|
+
text-decoration: none;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition: border-color 0.3s, color 0.3s;
|
|
62
|
+
user-select: none;
|
|
63
|
+
touch-action: manipulation;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
}
|
|
67
|
+
@media (min-width: 64em) {
|
|
68
|
+
.btn {
|
|
69
|
+
height: 44px;
|
|
70
|
+
padding: 0 1.1rem;
|
|
71
|
+
font-size: 0.8125rem;
|
|
72
|
+
min-width: 124px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.btn:hover {
|
|
77
|
+
border-color: var(--gold);
|
|
78
|
+
color: var(--gold);
|
|
79
|
+
}
|
|
80
|
+
.btn:focus-visible {
|
|
81
|
+
outline: 2px solid var(--gold);
|
|
82
|
+
outline-offset: 2px;
|
|
83
|
+
border-color: var(--gold);
|
|
84
|
+
color: var(--gold);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.btn:disabled {
|
|
88
|
+
opacity: 0.5;
|
|
89
|
+
cursor: not-allowed;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Role distinction: primary = filled (high emphasis), secondary = the base
|
|
93
|
+
outline (medium). Filled beats the base outline-hover, so override it. */
|
|
94
|
+
.btn--primary {
|
|
95
|
+
background: var(--gold);
|
|
96
|
+
border-color: var(--gold);
|
|
97
|
+
color: var(--on-brand);
|
|
98
|
+
}
|
|
99
|
+
.btn--primary:hover,
|
|
100
|
+
.btn--primary:focus-visible {
|
|
101
|
+
background: color-mix(in srgb, var(--gold) 85%, #000);
|
|
102
|
+
border-color: color-mix(in srgb, var(--gold) 85%, #000);
|
|
103
|
+
color: var(--on-brand);
|
|
104
|
+
}
|
|
105
|
+
.btn--primary:focus-visible {
|
|
106
|
+
outline: 2px solid var(--gold);
|
|
107
|
+
outline-offset: 2px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.btn--sm {
|
|
111
|
+
height: auto;
|
|
112
|
+
min-height: 40px;
|
|
113
|
+
padding: 0 0.7rem;
|
|
114
|
+
min-width: auto;
|
|
115
|
+
}
|
|
116
|
+
@media (min-width: 64em) {
|
|
117
|
+
.btn--sm { height: 40px; padding: 0 0.85rem; }
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* CTA / compact variants — a filled button in the brand accent. Token-driven
|
|
121
|
+
(was a hardcoded brand green) so it recolours with the site palette; hover
|
|
122
|
+
darkens the accent via color-mix, which works for any brand colour. */
|
|
123
|
+
.btn--cta {
|
|
124
|
+
background: var(--gold);
|
|
125
|
+
color: var(--on-brand);
|
|
126
|
+
border: none;
|
|
127
|
+
border-radius: var(--radius-sm);
|
|
128
|
+
font-family: var(--font-body);
|
|
129
|
+
font-size: 0.75rem;
|
|
130
|
+
font-weight: 600;
|
|
131
|
+
letter-spacing: 0.1em;
|
|
132
|
+
text-transform: uppercase;
|
|
133
|
+
padding: 0.45rem 0.85rem;
|
|
134
|
+
min-height: 44px;
|
|
135
|
+
min-width: auto;
|
|
136
|
+
transition: background 0.18s ease;
|
|
137
|
+
}
|
|
138
|
+
@media (min-width: 64em) {
|
|
139
|
+
.btn--cta {
|
|
140
|
+
min-height: 44px;
|
|
141
|
+
padding: 0.625rem 1rem;
|
|
142
|
+
font-size: 0.8125rem;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.btn--cta:hover {
|
|
147
|
+
background: color-mix(in srgb, var(--gold) 85%, #000);
|
|
148
|
+
color: var(--on-brand);
|
|
149
|
+
}
|
|
150
|
+
.btn--cta:focus-visible {
|
|
151
|
+
background: color-mix(in srgb, var(--gold) 85%, #000);
|
|
152
|
+
color: var(--on-brand);
|
|
153
|
+
outline: 2px solid var(--gold);
|
|
154
|
+
outline-offset: 2px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.btn--compact {
|
|
158
|
+
display: inline-flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
justify-content: center;
|
|
161
|
+
margin-top: auto;
|
|
162
|
+
align-self: var(--content-self, flex-start);
|
|
163
|
+
background: var(--gold);
|
|
164
|
+
color: var(--on-brand);
|
|
165
|
+
border: none;
|
|
166
|
+
border-radius: var(--radius-sm);
|
|
167
|
+
font-family: var(--font-body);
|
|
168
|
+
font-size: 0.75rem;
|
|
169
|
+
font-weight: 600;
|
|
170
|
+
letter-spacing: 0.1em;
|
|
171
|
+
text-transform: uppercase;
|
|
172
|
+
padding: 0.45rem 0.75rem;
|
|
173
|
+
min-width: auto;
|
|
174
|
+
min-height: 44px;
|
|
175
|
+
transition: background 0.18s ease;
|
|
176
|
+
}
|
|
177
|
+
@media (min-width: 64em) {
|
|
178
|
+
.btn--compact {
|
|
179
|
+
min-height: 44px;
|
|
180
|
+
padding: 0.5rem 0.85rem;
|
|
181
|
+
font-size: 0.8125rem;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.btn--compact:hover {
|
|
186
|
+
background: color-mix(in srgb, var(--gold) 85%, #000);
|
|
187
|
+
color: var(--on-brand);
|
|
188
|
+
}
|
|
189
|
+
.btn--compact:focus-visible {
|
|
190
|
+
background: color-mix(in srgb, var(--gold) 85%, #000);
|
|
191
|
+
color: var(--on-brand);
|
|
192
|
+
outline: 2px solid var(--gold);
|
|
193
|
+
outline-offset: 2px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* Ghost — a quiet, borderless text button for tertiary actions. */
|
|
197
|
+
.btn--ghost {
|
|
198
|
+
background: transparent;
|
|
199
|
+
border: 2px solid transparent;
|
|
200
|
+
color: var(--gold);
|
|
201
|
+
min-width: auto;
|
|
202
|
+
padding: 0 0.6rem;
|
|
203
|
+
}
|
|
204
|
+
.btn--ghost:hover {
|
|
205
|
+
color: var(--gold);
|
|
206
|
+
border-color: transparent;
|
|
207
|
+
background: var(--gold-light);
|
|
208
|
+
}
|
|
209
|
+
.btn--ghost:focus-visible {
|
|
210
|
+
color: var(--gold);
|
|
211
|
+
border-color: transparent;
|
|
212
|
+
background: var(--gold-light);
|
|
213
|
+
outline: 2px solid var(--gold);
|
|
214
|
+
outline-offset: 2px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Dark mode support */
|
|
218
|
+
:global([data-theme="dark"]) .btn {
|
|
219
|
+
border-color: var(--text-light);
|
|
220
|
+
color: var(--text-light);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
:global([data-theme="dark"]) .btn--ghost {
|
|
224
|
+
border-color: transparent;
|
|
225
|
+
color: var(--gold);
|
|
226
|
+
}
|
|
227
|
+
:global([data-theme="dark"]) .btn--ghost:hover,
|
|
228
|
+
:global([data-theme="dark"]) .btn--ghost:focus-visible {
|
|
229
|
+
border-color: transparent;
|
|
230
|
+
color: var(--gold);
|
|
231
|
+
background: var(--gold-light);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
:global([data-theme="dark"]) .btn:hover,
|
|
235
|
+
:global([data-theme="dark"]) .btn:focus-visible {
|
|
236
|
+
border-color: var(--gold);
|
|
237
|
+
color: var(--gold);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* In dark mode --gold is a light accent, so dark text reads best on it, and
|
|
241
|
+
hover lightens (mix toward white) rather than darkens. */
|
|
242
|
+
:global([data-theme="dark"]) .btn--cta,
|
|
243
|
+
:global([data-theme="dark"]) .btn--compact,
|
|
244
|
+
:global([data-theme="dark"]) .btn--primary {
|
|
245
|
+
background: var(--gold);
|
|
246
|
+
border-color: var(--gold);
|
|
247
|
+
color: var(--dark-bg);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
:global([data-theme="dark"]) .btn--cta:hover,
|
|
251
|
+
:global([data-theme="dark"]) .btn--cta:focus-visible,
|
|
252
|
+
:global([data-theme="dark"]) .btn--compact:hover,
|
|
253
|
+
:global([data-theme="dark"]) .btn--compact:focus-visible,
|
|
254
|
+
:global([data-theme="dark"]) .btn--primary:hover,
|
|
255
|
+
:global([data-theme="dark"]) .btn--primary:focus-visible {
|
|
256
|
+
background: color-mix(in srgb, var(--gold) 85%, #fff);
|
|
257
|
+
border-color: color-mix(in srgb, var(--gold) 85%, #fff);
|
|
258
|
+
color: var(--dark-bg);
|
|
259
|
+
}
|
|
260
260
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ferst-core",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ferst Core — the shared, brand-agnostic client-site system: Astro components, layouts, content schemas, the layered config resolver, and a neutral styling architecture that every client overrides.",
|
|
6
6
|
"license": "BUSL-1.1",
|