@citrusworx/juiceui 0.3.0 → 0.6.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/README.md +276 -233
- package/dist/index.css +24884 -23525
- package/dist/index.d.ts +6 -0
- package/dist/index.js +638 -45
- package/dist/js/juice.d.ts +8 -0
- package/dist/js/src/accordion/accordion-runtime.d.ts +16 -0
- package/dist/js/src/modal/modal-runtime.d.ts +30 -0
- package/dist/js/src/tabs/tabs-runtime.d.ts +16 -0
- package/dist/themes/aquaflux.css +233 -0
- package/dist/themes/citrusmint.css +203 -0
- package/dist/themes/index.d.ts +2 -0
- package/dist/themes/kiwipress.css +190 -16
- package/dist/themes/tide.css +482 -0
- package/dist/tokens/index.d.ts +15 -0
- package/package.json +126 -109
- package/dist/components/accordion/accordion.test.d.ts +0 -1
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/*
|
|
3
|
+
Tide — dark product / SaaS identity.
|
|
4
|
+
Teal family + black/gray/white tokens. Not Aquaflux (blue/purple hospitality).
|
|
5
|
+
Ships as dist/themes/tide.css.
|
|
6
|
+
*/
|
|
7
|
+
[theme=tide] {
|
|
8
|
+
/* Compact FAQ / help column — named cards stay ~720px centered, not full-bleed. */
|
|
9
|
+
--tide-measure: 45rem;
|
|
10
|
+
/* Foundation — near-black page (black/lagoon steps), not a mid-teal wash. */
|
|
11
|
+
--tide-page: hsl(0, 0%, 10%);
|
|
12
|
+
--tide-page-tint: hsl(180, 54%, 20%);
|
|
13
|
+
--tide-page-deep: rgb(24.072, 29.376, 29.376);
|
|
14
|
+
--tide-surface: hsla(0, 0%, 10%, 0.62);
|
|
15
|
+
--tide-surface-strong: hsla(0, 0%, 10%, 0.78);
|
|
16
|
+
--tide-surface-muted: hsla(180, 54%, 20%, 0.32);
|
|
17
|
+
--tide-surface-deep: hsl(0, 0%, 15%);
|
|
18
|
+
--tide-border: rgba(37.8216, 163.7304, 163.7304, 0.5);
|
|
19
|
+
--tide-border-strong: rgba(37.8216, 163.7304, 163.7304, 0.58);
|
|
20
|
+
--tide-line-glow: 0 0 10px -2px hsla(180, 66%, 56%, 0.26);
|
|
21
|
+
--tide-shadow: hsla(0, 0%, 10%, 0.52);
|
|
22
|
+
/* Typography */
|
|
23
|
+
--tide-text: hsl(0, 0%, 95%);
|
|
24
|
+
--tide-text-muted: hsla(180, 70%, 78%, 0.78);
|
|
25
|
+
--tide-heading: hsl(0, 0%, 100%);
|
|
26
|
+
--tide-body-font: "Inter", sans-serif;
|
|
27
|
+
--tide-heading-font: "Inter", sans-serif;
|
|
28
|
+
/* Accent — cooler/deeper than teal-500. Lagoon hue 180, not Aquaflux blue. */
|
|
29
|
+
--tide-accent: rgb(60.894, 204.714, 200.995488);
|
|
30
|
+
--tide-accent-soft: hsl(180, 66%, 56%);
|
|
31
|
+
--tide-accent-strong: hsl(180, 68%, 66%);
|
|
32
|
+
--tide-highlight: hsl(180, 58%, 28%);
|
|
33
|
+
/* Surface recipes */
|
|
34
|
+
--tide-page-background:
|
|
35
|
+
radial-gradient(ellipse 64% 42% at 50% -6%, hsla(180, 66%, 56%, 0.18), transparent 56%),
|
|
36
|
+
radial-gradient(circle at 84% 90%, hsla(180, 64%, 46%, 0.08), transparent 34%),
|
|
37
|
+
linear-gradient(180deg, hsl(0, 0%, 10%) 0%, rgb(23.358, 31.314, 31.314) 100%);
|
|
38
|
+
--tide-button-background: linear-gradient(135deg, hsl(180, 66%, 56%), hsl(180, 62%, 36%));
|
|
39
|
+
--tide-card-background:
|
|
40
|
+
linear-gradient(180deg, hsla(180, 54%, 20%, 0.22) 0%, hsla(0, 0%, 10%, 0.76) 100%);
|
|
41
|
+
--tide-panel-background:
|
|
42
|
+
linear-gradient(180deg, hsla(180, 54%, 20%, 0.16) 0%, hsla(0, 0%, 15%, 0.64) 100%);
|
|
43
|
+
/* Accordion chrome roles — same names as Aquaflux / KiwiPress / Citrusmint.
|
|
44
|
+
Bound from Tide surface/accent tokens; triggers are surfaces, not CTAs. */
|
|
45
|
+
--tide-trigger: hsla(0, 0%, 10%, 0.22);
|
|
46
|
+
--tide-trigger-hover: var(--tide-surface-muted);
|
|
47
|
+
--tide-trigger-open: hsla(180, 64%, 46%, 0.12);
|
|
48
|
+
--tide-chevron: var(--tide-accent);
|
|
49
|
+
--tide-panel-rule: transparent;
|
|
50
|
+
--tide-focus-ring: var(--tide-accent);
|
|
51
|
+
--tide-item-border: var(--tide-border);
|
|
52
|
+
--tide-item-border-open: var(--tide-border);
|
|
53
|
+
--tide-trigger-accent: var(--tide-accent);
|
|
54
|
+
--tide-panel-well: hsla(0, 0%, 10%, 0.62);
|
|
55
|
+
--tide-open-glow: 0 0 10px -2px hsla(180, 66%, 56%, 0.26), 0 0 20px -8px hsla(180, 66%, 56%, 0.32);
|
|
56
|
+
--juice-accordion-trigger: var(--tide-trigger);
|
|
57
|
+
--juice-accordion-trigger-hover: var(--tide-trigger-hover);
|
|
58
|
+
--juice-accordion-trigger-open: var(--tide-trigger-open);
|
|
59
|
+
--juice-accordion-chevron: var(--tide-chevron);
|
|
60
|
+
--juice-accordion-panel-rule: var(--tide-panel-rule);
|
|
61
|
+
--juice-accordion-focus-ring: var(--tide-focus-ring);
|
|
62
|
+
--juice-accordion-item-border: var(--tide-item-border);
|
|
63
|
+
--juice-accordion-item-border-open: var(--tide-item-border-open);
|
|
64
|
+
--juice-accordion-trigger-accent: var(--tide-trigger-accent);
|
|
65
|
+
--juice-accordion-panel: var(--tide-panel-well);
|
|
66
|
+
--juice-accordion-open-glow: var(--tide-open-glow);
|
|
67
|
+
--juice-accordion-chevron-size: 0.7rem;
|
|
68
|
+
--juice-accordion-chevron-weight: 2.5px;
|
|
69
|
+
/* Tabs chrome roles — surface/text controls, not the CTA gradient. */
|
|
70
|
+
--tide-tabs-trigger: transparent;
|
|
71
|
+
--tide-tabs-trigger-hover: transparent;
|
|
72
|
+
--tide-tabs-trigger-active: transparent;
|
|
73
|
+
--tide-tabs-text: var(--tide-text-muted);
|
|
74
|
+
--tide-tabs-text-hover: var(--tide-heading);
|
|
75
|
+
--tide-tabs-text-active: var(--tide-accent);
|
|
76
|
+
--tide-tabs-indicator: var(--tide-accent);
|
|
77
|
+
--tide-tabs-list-rule: var(--tide-border);
|
|
78
|
+
--tide-tabs-focus-ring: var(--tide-accent);
|
|
79
|
+
--tide-tabs-panel: var(--tide-panel-well);
|
|
80
|
+
--juice-tabs-trigger: var(--tide-tabs-trigger);
|
|
81
|
+
--juice-tabs-trigger-hover: var(--tide-tabs-trigger-hover);
|
|
82
|
+
--juice-tabs-trigger-active: var(--tide-tabs-trigger-active);
|
|
83
|
+
--juice-tabs-text: var(--tide-tabs-text);
|
|
84
|
+
--juice-tabs-text-hover: var(--tide-tabs-text-hover);
|
|
85
|
+
--juice-tabs-text-active: var(--tide-tabs-text-active);
|
|
86
|
+
--juice-tabs-indicator: var(--tide-tabs-indicator);
|
|
87
|
+
--juice-tabs-list-rule: var(--tide-tabs-list-rule);
|
|
88
|
+
--juice-tabs-focus-ring: var(--tide-tabs-focus-ring);
|
|
89
|
+
--juice-tabs-panel: var(--tide-tabs-panel);
|
|
90
|
+
/* Surface tone roles — dark frost / elevated / recessed, not white glass. */
|
|
91
|
+
--juice-surface-soft-bg: var(--tide-surface);
|
|
92
|
+
--juice-surface-soft-border: var(--tide-border);
|
|
93
|
+
--juice-surface-soft-shadow: var(--tide-line-glow), 0 18px 40px -28px var(--tide-shadow);
|
|
94
|
+
--juice-surface-soft-blur: 16px;
|
|
95
|
+
--juice-surface-strong-bg: var(--tide-surface-strong);
|
|
96
|
+
--juice-surface-strong-border: var(--tide-border-strong);
|
|
97
|
+
--juice-surface-strong-shadow: var(--tide-line-glow), 0 24px 56px -22px var(--tide-shadow);
|
|
98
|
+
--juice-surface-strong-blur: 0px;
|
|
99
|
+
--juice-surface-muted-bg: var(--tide-surface-muted);
|
|
100
|
+
--juice-surface-muted-border: var(--tide-border);
|
|
101
|
+
--juice-surface-muted-shadow: none;
|
|
102
|
+
--juice-surface-muted-blur: 0px;
|
|
103
|
+
/* Border strength — lagoon line tokens, not the unthemed light gray. */
|
|
104
|
+
--juice-border-strength-soft-width: 1px;
|
|
105
|
+
--juice-border-strength-soft-color: var(--tide-border);
|
|
106
|
+
--juice-border-strength-bold-width: 2px;
|
|
107
|
+
--juice-border-strength-bold-color: var(--tide-border-strong);
|
|
108
|
+
/* Shadow tone — dark lagoon vs ink; never the unthemed light gray. */
|
|
109
|
+
--juice-shadow-tone-cool-color: color-mix(in srgb, var(--tide-accent) 45%, var(--tide-shadow));
|
|
110
|
+
--juice-shadow-tone-cool-shadow: var(--tide-line-glow), 0 18px 40px -28px color-mix(in srgb, var(--tide-accent) 45%, var(--tide-shadow));
|
|
111
|
+
--juice-shadow-tone-warm-color: var(--tide-shadow);
|
|
112
|
+
--juice-shadow-tone-warm-shadow: 0 22px 48px -22px var(--tide-shadow);
|
|
113
|
+
/* Overlay — dark frost / lagoon tint; never the unthemed white veil. */
|
|
114
|
+
--juice-overlay-frost-wash: color-mix(in srgb, var(--tide-page) 48%, transparent);
|
|
115
|
+
--juice-overlay-frost-layer: linear-gradient(var(--juice-overlay-frost-wash), var(--juice-overlay-frost-wash));
|
|
116
|
+
--juice-overlay-tint-wash: color-mix(in srgb, var(--tide-page-tint) 32%, transparent);
|
|
117
|
+
--juice-overlay-tint-layer: linear-gradient(var(--juice-overlay-tint-wash), var(--juice-overlay-tint-wash));
|
|
118
|
+
/* Modal chrome — dark scrim + elevated dark panel, not white glass.
|
|
119
|
+
Close is a surface control, not the CTA gradient. */
|
|
120
|
+
--tide-modal-overlay: color-mix(in srgb, var(--tide-page) 72%, transparent);
|
|
121
|
+
--tide-modal-panel: var(--tide-surface-strong);
|
|
122
|
+
--tide-modal-panel-border: var(--tide-border);
|
|
123
|
+
--tide-modal-panel-shadow: var(--tide-line-glow), 0 24px 56px -22px var(--tide-shadow);
|
|
124
|
+
--tide-modal-close: var(--tide-surface-strong);
|
|
125
|
+
--tide-modal-close-color: var(--tide-heading);
|
|
126
|
+
--tide-modal-close-hover: var(--tide-surface-muted);
|
|
127
|
+
--tide-modal-focus-ring: var(--tide-accent);
|
|
128
|
+
--juice-modal-overlay: var(--tide-modal-overlay);
|
|
129
|
+
--juice-modal-panel: var(--tide-modal-panel);
|
|
130
|
+
--juice-modal-panel-border: var(--tide-modal-panel-border);
|
|
131
|
+
--juice-modal-panel-shadow: var(--tide-modal-panel-shadow);
|
|
132
|
+
--juice-modal-close: var(--tide-modal-close);
|
|
133
|
+
--juice-modal-close-color: var(--tide-modal-close-color);
|
|
134
|
+
--juice-modal-close-hover: var(--tide-modal-close-hover);
|
|
135
|
+
--juice-modal-focus-ring: var(--tide-modal-focus-ring);
|
|
136
|
+
min-height: 100vh;
|
|
137
|
+
background-color: var(--tide-page);
|
|
138
|
+
background-image: var(--tide-page-background);
|
|
139
|
+
color: var(--tide-text);
|
|
140
|
+
font-family: var(--tide-body-font);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
[theme=tide] :where(main) {
|
|
144
|
+
background: transparent;
|
|
145
|
+
color: inherit;
|
|
146
|
+
min-height: 100vh;
|
|
147
|
+
width: 100%;
|
|
148
|
+
max-width: none;
|
|
149
|
+
box-sizing: border-box;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[theme=tide] :where(div) {
|
|
153
|
+
background-color: transparent;
|
|
154
|
+
color: inherit;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[theme=tide] :where(section, article, aside, nav, header, footer, form) {
|
|
158
|
+
background-color: var(--tide-surface);
|
|
159
|
+
color: var(--tide-text);
|
|
160
|
+
border: 1px solid var(--tide-border);
|
|
161
|
+
box-shadow: var(--tide-line-glow), 0 24px 60px -36px var(--tide-shadow);
|
|
162
|
+
-webkit-backdrop-filter: blur(16px);
|
|
163
|
+
backdrop-filter: blur(16px);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* Page intro is type, not a competing glass surface. */
|
|
167
|
+
[theme=tide] :where(main > header) {
|
|
168
|
+
width: min(var(--tide-measure), 100%);
|
|
169
|
+
max-width: var(--tide-measure);
|
|
170
|
+
background: transparent;
|
|
171
|
+
background-image: none;
|
|
172
|
+
color: var(--tide-text);
|
|
173
|
+
border: none;
|
|
174
|
+
box-shadow: none;
|
|
175
|
+
-webkit-backdrop-filter: none;
|
|
176
|
+
backdrop-filter: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
[theme=tide] :where(nav[type=bar], nav[type=sidebar]) {
|
|
180
|
+
background-color: var(--tide-surface-strong);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
[theme=tide] :where(nav[type=bar]) {
|
|
184
|
+
border-bottom: 1px solid var(--tide-border);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
[theme=tide] :where(h1, h2, h3, h4, h5, h6) {
|
|
188
|
+
color: var(--tide-heading);
|
|
189
|
+
font-family: var(--tide-heading-font);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
[theme=tide] :where(p, span, li, label, dt, dd, blockquote) {
|
|
193
|
+
color: var(--tide-text);
|
|
194
|
+
font-family: var(--tide-body-font);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
[theme=tide] :where(small, figcaption) {
|
|
198
|
+
color: var(--tide-text-muted);
|
|
199
|
+
font-family: var(--tide-body-font);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
[theme=tide] :where(strong, b) {
|
|
203
|
+
color: var(--tide-heading);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
[theme=tide] :where(a) {
|
|
207
|
+
color: var(--tide-accent-strong);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
[theme=tide] :where(a:hover, a:focus-visible) {
|
|
211
|
+
color: var(--tide-accent);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
[theme=tide] :where(button, input, textarea, select) {
|
|
215
|
+
background-color: var(--tide-surface-strong);
|
|
216
|
+
color: var(--tide-text);
|
|
217
|
+
border: 1px solid var(--tide-border-strong);
|
|
218
|
+
font-family: var(--tide-body-font);
|
|
219
|
+
box-shadow: 0 14px 32px -26px var(--tide-shadow);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
[theme=tide] :where(button) {
|
|
223
|
+
background-image: var(--tide-button-background);
|
|
224
|
+
color: var(--tide-heading);
|
|
225
|
+
border-color: transparent;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
[theme=tide] :where(button:hover, button:focus-visible) {
|
|
229
|
+
box-shadow: var(--tide-line-glow), 0 18px 38px -24px var(--tide-shadow);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
[theme=tide] :where(input::placeholder, textarea::placeholder) {
|
|
233
|
+
color: var(--tide-text-muted);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
[theme=tide] :where(input:focus-visible, textarea:focus-visible, select:focus-visible) {
|
|
237
|
+
outline: 2px solid rgba(60.894, 204.714, 200.995488, 0.42);
|
|
238
|
+
outline-offset: 2px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
[theme=tide] :where(code, pre) {
|
|
242
|
+
background-color: var(--tide-surface-muted);
|
|
243
|
+
color: var(--tide-heading);
|
|
244
|
+
border: 1px solid var(--tide-border);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
[theme=tide] :where(hr) {
|
|
248
|
+
border: none;
|
|
249
|
+
border-top: 1px solid var(--tide-border);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
[theme=tide] :where(ul, ol) {
|
|
253
|
+
color: var(--tide-text);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
[theme=tide][tide-card],
|
|
257
|
+
[theme=tide] [tide-card] {
|
|
258
|
+
width: min(var(--tide-measure), 100%);
|
|
259
|
+
max-width: var(--tide-measure);
|
|
260
|
+
box-sizing: border-box;
|
|
261
|
+
background: var(--tide-card-background);
|
|
262
|
+
color: var(--tide-text);
|
|
263
|
+
border: 1px solid var(--tide-border);
|
|
264
|
+
box-shadow: var(--tide-line-glow), 0 28px 70px -42px var(--tide-shadow);
|
|
265
|
+
-webkit-backdrop-filter: blur(18px);
|
|
266
|
+
backdrop-filter: blur(18px);
|
|
267
|
+
border-radius: 1.15rem;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
[theme=tide][tide-card] :where(h1, h2, h3, h4, h5, h6),
|
|
271
|
+
[theme=tide] [tide-card] :where(h1, h2, h3, h4, h5, h6) {
|
|
272
|
+
color: var(--tide-heading);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
[theme=tide][tide-card] :where(p, span, li, small),
|
|
276
|
+
[theme=tide] [tide-card] :where(p, span, li, small) {
|
|
277
|
+
color: var(--tide-text-muted);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
[theme=tide][tide-card] :where(strong, b),
|
|
281
|
+
[theme=tide] [tide-card] :where(strong, b) {
|
|
282
|
+
color: var(--tide-heading);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
[theme=tide][tide-panel],
|
|
286
|
+
[theme=tide] [tide-panel] {
|
|
287
|
+
background: var(--tide-panel-background);
|
|
288
|
+
color: var(--tide-text);
|
|
289
|
+
border: 1px solid var(--tide-border);
|
|
290
|
+
box-shadow: var(--tide-line-glow), 0 22px 56px -40px var(--tide-shadow);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
[theme=tide][tide-panel] :where(h1, h2, h3, h4, h5, h6),
|
|
294
|
+
[theme=tide] [tide-panel] :where(h1, h2, h3, h4, h5, h6) {
|
|
295
|
+
color: var(--tide-heading);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
[theme=tide][tide-panel] :where(p, span, li, small),
|
|
299
|
+
[theme=tide] [tide-panel] :where(p, span, li, small) {
|
|
300
|
+
color: var(--tide-text);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
[theme=tide][tide-panel] :where(strong, b),
|
|
304
|
+
[theme=tide] [tide-panel] :where(strong, b) {
|
|
305
|
+
color: var(--tide-heading);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
[theme=tide] [hero-eyebrow] {
|
|
309
|
+
color: var(--tide-accent);
|
|
310
|
+
text-transform: uppercase;
|
|
311
|
+
letter-spacing: 0.18em;
|
|
312
|
+
font-size: 0.72rem;
|
|
313
|
+
font-weight: 600;
|
|
314
|
+
justify-content: center;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* Accordion wrappers are structural, not default section surfaces.
|
|
318
|
+
Group FAQ stacks in [tide-card] / [tide-panel] instead.
|
|
319
|
+
Fill / chevron / focus / panel-rule come from --juice-accordion-* roles. */
|
|
320
|
+
[theme=tide] :where([accordion]) {
|
|
321
|
+
background: transparent;
|
|
322
|
+
background-image: none;
|
|
323
|
+
border: none;
|
|
324
|
+
box-shadow: none;
|
|
325
|
+
-webkit-backdrop-filter: none;
|
|
326
|
+
backdrop-filter: none;
|
|
327
|
+
gap: 0.65rem;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* Open pair reads as one tile: soft accent wash, same 1px line as idle pills.
|
|
331
|
+
Left accent stays on the header via --juice-accordion-trigger-accent. */
|
|
332
|
+
[theme=tide] [accordion]:has(> [accordion-item][aria-expanded=true]) {
|
|
333
|
+
background-color: var(--juice-accordion-trigger-open);
|
|
334
|
+
background-image: none;
|
|
335
|
+
border: 1px solid var(--juice-accordion-item-border-open);
|
|
336
|
+
border-radius: 0.95rem;
|
|
337
|
+
box-shadow: var(--juice-accordion-open-glow);
|
|
338
|
+
padding: 0.1rem 0.12rem 0.55rem;
|
|
339
|
+
gap: 0.45rem;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* Generic Tide buttons use --tide-button-background (CTA gradient).
|
|
343
|
+
Accordion triggers are surface controls, not primary actions. */
|
|
344
|
+
[theme=tide] button[accordion-item] {
|
|
345
|
+
background-image: none;
|
|
346
|
+
background-color: var(--juice-accordion-trigger);
|
|
347
|
+
color: var(--tide-heading);
|
|
348
|
+
border: 1px solid var(--juice-accordion-item-border);
|
|
349
|
+
box-shadow: var(--tide-line-glow);
|
|
350
|
+
padding-left: 1.2rem;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
[theme=tide] button[accordion-item]::after {
|
|
354
|
+
border-color: var(--juice-accordion-chevron);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
[theme=tide] button[accordion-item]:hover {
|
|
358
|
+
border-color: var(--tide-border-strong);
|
|
359
|
+
background-color: var(--juice-accordion-trigger-hover);
|
|
360
|
+
color: var(--tide-heading);
|
|
361
|
+
background-image: none;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
[theme=tide] button[accordion-item]:focus-visible {
|
|
365
|
+
outline: 2px solid var(--juice-accordion-focus-ring);
|
|
366
|
+
outline-offset: 2px;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
[theme=tide] button[accordion-item][aria-expanded=true] {
|
|
370
|
+
background-color: transparent;
|
|
371
|
+
background-image: none;
|
|
372
|
+
color: var(--tide-heading);
|
|
373
|
+
border-color: transparent;
|
|
374
|
+
box-shadow: none;
|
|
375
|
+
padding-left: 1.35rem;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
[theme=tide] [accordion] [role=region] {
|
|
379
|
+
color: var(--tide-text-muted);
|
|
380
|
+
background-color: var(--juice-accordion-panel);
|
|
381
|
+
border: 1px solid var(--tide-border);
|
|
382
|
+
border-radius: 0.7rem;
|
|
383
|
+
box-shadow: inset 0 1px 0 hsla(0, 0%, 10%, 0.4);
|
|
384
|
+
margin: 0 0.45rem 0.08rem;
|
|
385
|
+
padding: 0.85rem 1.05rem;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/* Tabs wrappers are structural. Generic Tide buttons use --tide-button-background;
|
|
389
|
+
tab triggers stay surface/text controls. */
|
|
390
|
+
[theme=tide] :where([tabs]) {
|
|
391
|
+
background: transparent;
|
|
392
|
+
background-image: none;
|
|
393
|
+
border: none;
|
|
394
|
+
box-shadow: none;
|
|
395
|
+
-webkit-backdrop-filter: none;
|
|
396
|
+
backdrop-filter: none;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
[theme=tide] [tabs]:not(:has([tabs-list], [tab-panel])),
|
|
400
|
+
[theme=tide] [tabs-list] {
|
|
401
|
+
border-bottom-color: var(--juice-tabs-list-rule);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
[theme=tide] button[tab],
|
|
405
|
+
[theme=tide] [tabs] > button,
|
|
406
|
+
[theme=tide] [tabs-list] > button {
|
|
407
|
+
background-image: none;
|
|
408
|
+
background-color: var(--juice-tabs-trigger);
|
|
409
|
+
color: var(--juice-tabs-text);
|
|
410
|
+
border: none;
|
|
411
|
+
border-bottom: 2px solid transparent;
|
|
412
|
+
border-radius: 0;
|
|
413
|
+
box-shadow: none;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
[theme=tide] button[tab]:hover,
|
|
417
|
+
[theme=tide] [tabs] > button:hover,
|
|
418
|
+
[theme=tide] [tabs-list] > button:hover {
|
|
419
|
+
background-image: none;
|
|
420
|
+
background-color: var(--juice-tabs-trigger-hover);
|
|
421
|
+
color: var(--juice-tabs-text-hover);
|
|
422
|
+
box-shadow: none;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
[theme=tide] button[tab]:focus-visible,
|
|
426
|
+
[theme=tide] [tabs] > button:focus-visible,
|
|
427
|
+
[theme=tide] [tabs-list] > button:focus-visible {
|
|
428
|
+
outline: 2px solid var(--juice-tabs-focus-ring);
|
|
429
|
+
outline-offset: 2px;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
[theme=tide] button[tab][active],
|
|
433
|
+
[theme=tide] button[tab][aria-selected=true],
|
|
434
|
+
[theme=tide] [tabs] > button[active],
|
|
435
|
+
[theme=tide] [tabs] > button[aria-selected=true],
|
|
436
|
+
[theme=tide] [tabs-list] > button[active],
|
|
437
|
+
[theme=tide] [tabs-list] > button[aria-selected=true] {
|
|
438
|
+
background-image: none;
|
|
439
|
+
background-color: var(--juice-tabs-trigger-active);
|
|
440
|
+
color: var(--juice-tabs-text-active);
|
|
441
|
+
border-bottom-color: var(--juice-tabs-indicator);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
[theme=tide] [tab-panel] {
|
|
445
|
+
color: var(--tide-text-muted);
|
|
446
|
+
background-color: var(--juice-tabs-panel);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/* Modal chrome. Generic Tide buttons use --tide-button-background;
|
|
450
|
+
[modal-close] stays a surface control. Panel stays dark. */
|
|
451
|
+
[theme=tide] [modal-overlay] {
|
|
452
|
+
background-color: var(--juice-modal-overlay);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
[theme=tide] [modal]:not([surfaceTone]) {
|
|
456
|
+
background-color: var(--juice-modal-panel);
|
|
457
|
+
border: 1px solid var(--juice-modal-panel-border);
|
|
458
|
+
box-shadow: var(--juice-modal-panel-shadow);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
[theme=tide] button[modal-close],
|
|
462
|
+
[theme=tide] [modal-close] {
|
|
463
|
+
background-image: none;
|
|
464
|
+
background-color: var(--juice-modal-close);
|
|
465
|
+
color: var(--juice-modal-close-color);
|
|
466
|
+
box-shadow: none;
|
|
467
|
+
transform: none;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
[theme=tide] button[modal-close]:hover,
|
|
471
|
+
[theme=tide] [modal-close]:hover {
|
|
472
|
+
background-image: none;
|
|
473
|
+
background-color: var(--juice-modal-close-hover);
|
|
474
|
+
color: var(--juice-modal-close-color);
|
|
475
|
+
transform: none;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
[theme=tide] button[modal-close]:focus-visible,
|
|
479
|
+
[theme=tide] [modal-close]:focus-visible {
|
|
480
|
+
outline: 2px solid var(--juice-modal-focus-ring);
|
|
481
|
+
outline-offset: 2px;
|
|
482
|
+
}
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -104,6 +104,21 @@ export declare const tokens: {
|
|
|
104
104
|
"800": string;
|
|
105
105
|
"900": string;
|
|
106
106
|
};
|
|
107
|
+
teal: {
|
|
108
|
+
"100": string;
|
|
109
|
+
"200": string;
|
|
110
|
+
"300": string;
|
|
111
|
+
"400": string;
|
|
112
|
+
"500": string;
|
|
113
|
+
"600": string;
|
|
114
|
+
"700": string;
|
|
115
|
+
"800": string;
|
|
116
|
+
"900": string;
|
|
117
|
+
swatches: {
|
|
118
|
+
source: string;
|
|
119
|
+
colors: string[];
|
|
120
|
+
};
|
|
121
|
+
};
|
|
107
122
|
white: {
|
|
108
123
|
"100": string;
|
|
109
124
|
"200": string;
|