@citrusworx/juiceui 0.3.0 → 0.4.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 +263 -233
- package/dist/index.css +807 -3
- package/dist/index.d.ts +4 -0
- package/dist/index.js +418 -45
- package/dist/js/juice.d.ts +6 -0
- package/dist/js/src/accordion/accordion-runtime.d.ts +16 -0
- package/dist/js/src/tabs/tabs-runtime.d.ts +16 -0
- package/dist/themes/aquaflux.css +152 -0
- package/dist/themes/citrusmint.css +124 -0
- package/dist/themes/index.d.ts +2 -0
- package/dist/themes/kiwipress.css +123 -10
- package/dist/tokens/index.d.ts +15 -0
- package/package.json +117 -109
- package/dist/components/accordion/accordion.test.d.ts +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type TabsOptions = {
|
|
2
|
+
root?: ParentNode;
|
|
3
|
+
tabsSelector?: string;
|
|
4
|
+
listSelector?: string;
|
|
5
|
+
triggerSelector?: string;
|
|
6
|
+
panelSelector?: string;
|
|
7
|
+
};
|
|
8
|
+
export type TabsController = {
|
|
9
|
+
destroy: () => void;
|
|
10
|
+
sync: () => void;
|
|
11
|
+
select: (trigger?: HTMLElement | null) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const createTabs: (options?: TabsOptions) => TabsController;
|
|
14
|
+
export declare const initTabs: (options?: TabsOptions) => TabsController;
|
|
15
|
+
export declare const startTabsRuntime: () => TabsController | null;
|
|
16
|
+
export declare const stopTabsRuntime: () => void;
|
package/dist/themes/aquaflux.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
/*
|
|
2
3
|
Aquaflux is the first fully expressed Juice theme contract.
|
|
3
4
|
The theme owns:
|
|
@@ -60,6 +61,39 @@
|
|
|
60
61
|
--aqua-buybox-shadow: 0 32px 70px -42px rgba(10.2, 51, 91.8, 0.24);
|
|
61
62
|
--aqua-spec-background:
|
|
62
63
|
linear-gradient(180deg, rgba(232.05, 242.25, 252.45, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
|
|
64
|
+
/* Accordion chrome roles — same names as KiwiPress / Citrusmint.
|
|
65
|
+
Bound from existing Aquaflux tokens; no new hue family. */
|
|
66
|
+
--aqua-trigger: var(--aqua-surface-strong);
|
|
67
|
+
--aqua-trigger-hover: var(--aqua-surface-muted);
|
|
68
|
+
--aqua-trigger-open: var(--aqua-highlight);
|
|
69
|
+
--aqua-chevron: var(--aqua-accent);
|
|
70
|
+
--aqua-panel-rule: var(--aqua-border);
|
|
71
|
+
--aqua-focus-ring: var(--aqua-accent);
|
|
72
|
+
--juice-accordion-trigger: var(--aqua-trigger);
|
|
73
|
+
--juice-accordion-trigger-hover: var(--aqua-trigger-hover);
|
|
74
|
+
--juice-accordion-trigger-open: var(--aqua-trigger-open);
|
|
75
|
+
--juice-accordion-chevron: var(--aqua-chevron);
|
|
76
|
+
--juice-accordion-panel-rule: var(--aqua-panel-rule);
|
|
77
|
+
--juice-accordion-focus-ring: var(--aqua-focus-ring);
|
|
78
|
+
/* Tabs chrome roles — surface/text controls, not the CTA gradient. */
|
|
79
|
+
--aqua-tabs-trigger: transparent;
|
|
80
|
+
--aqua-tabs-trigger-hover: transparent;
|
|
81
|
+
--aqua-tabs-trigger-active: transparent;
|
|
82
|
+
--aqua-tabs-text: var(--aqua-text-muted);
|
|
83
|
+
--aqua-tabs-text-hover: var(--aqua-heading);
|
|
84
|
+
--aqua-tabs-text-active: var(--aqua-accent);
|
|
85
|
+
--aqua-tabs-indicator: var(--aqua-accent);
|
|
86
|
+
--aqua-tabs-list-rule: var(--aqua-border);
|
|
87
|
+
--aqua-tabs-focus-ring: var(--aqua-accent);
|
|
88
|
+
--juice-tabs-trigger: var(--aqua-tabs-trigger);
|
|
89
|
+
--juice-tabs-trigger-hover: var(--aqua-tabs-trigger-hover);
|
|
90
|
+
--juice-tabs-trigger-active: var(--aqua-tabs-trigger-active);
|
|
91
|
+
--juice-tabs-text: var(--aqua-tabs-text);
|
|
92
|
+
--juice-tabs-text-hover: var(--aqua-tabs-text-hover);
|
|
93
|
+
--juice-tabs-text-active: var(--aqua-tabs-text-active);
|
|
94
|
+
--juice-tabs-indicator: var(--aqua-tabs-indicator);
|
|
95
|
+
--juice-tabs-list-rule: var(--aqua-tabs-list-rule);
|
|
96
|
+
--juice-tabs-focus-ring: var(--aqua-tabs-focus-ring);
|
|
63
97
|
background-color: var(--aqua-page);
|
|
64
98
|
background-image: var(--aqua-page-background);
|
|
65
99
|
color: var(--aqua-text);
|
|
@@ -312,4 +346,122 @@
|
|
|
312
346
|
[theme=aquaflux][aqua-hero] :where([aqua-card], [aqua-panel]) :where(p, span, li, small, a),
|
|
313
347
|
[theme=aquaflux] [aqua-hero] :where([aqua-card], [aqua-panel]) :where(p, span, li, small, a) {
|
|
314
348
|
color: var(--aqua-text-muted);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/* Accordion wrappers are structural, not named surfaces.
|
|
352
|
+
Group FAQ stacks in [aqua-card] / [aqua-panel] instead.
|
|
353
|
+
Fill / chevron / focus / panel-rule come from --juice-accordion-* roles. */
|
|
354
|
+
[theme=aquaflux] :where([accordion]) {
|
|
355
|
+
background: transparent;
|
|
356
|
+
background-image: none;
|
|
357
|
+
border: none;
|
|
358
|
+
box-shadow: none;
|
|
359
|
+
-webkit-backdrop-filter: none;
|
|
360
|
+
backdrop-filter: none;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* Generic Aquaflux buttons use --aqua-button-background (CTA gradient).
|
|
364
|
+
Accordion triggers are surface controls, not primary actions.
|
|
365
|
+
Slice A extras (heading ink, hairline, shadow) stay here; fills use roles. */
|
|
366
|
+
[theme=aquaflux] button[accordion-item] {
|
|
367
|
+
background-image: none;
|
|
368
|
+
background-color: var(--juice-accordion-trigger);
|
|
369
|
+
color: var(--aqua-heading);
|
|
370
|
+
border: 1px solid var(--aqua-border);
|
|
371
|
+
box-shadow: 0 14px 32px -26px var(--aqua-shadow);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
[theme=aquaflux] button[accordion-item]::after {
|
|
375
|
+
border-color: var(--juice-accordion-chevron);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
[theme=aquaflux] button[accordion-item]:hover {
|
|
379
|
+
border-color: var(--aqua-border-strong);
|
|
380
|
+
background-color: var(--juice-accordion-trigger-hover);
|
|
381
|
+
color: var(--aqua-heading);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
[theme=aquaflux] button[accordion-item]:focus-visible {
|
|
385
|
+
outline: 2px solid var(--juice-accordion-focus-ring);
|
|
386
|
+
outline-offset: 2px;
|
|
387
|
+
box-shadow: 0 14px 32px -26px var(--aqua-shadow);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
[theme=aquaflux] button[accordion-item][aria-expanded=true] {
|
|
391
|
+
background-color: var(--juice-accordion-trigger-open);
|
|
392
|
+
background-image: none;
|
|
393
|
+
color: var(--aqua-heading);
|
|
394
|
+
border-color: var(--aqua-border-strong);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
[theme=aquaflux] [accordion] [role=region] {
|
|
398
|
+
color: var(--aqua-text);
|
|
399
|
+
background-color: var(--aqua-surface-muted);
|
|
400
|
+
border: 1px solid var(--juice-accordion-panel-rule);
|
|
401
|
+
border-radius: 0.75rem;
|
|
402
|
+
/* Slice A framed the panel; skip the shared inset rule. */
|
|
403
|
+
box-shadow: none;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* Tabs wrappers are structural. Generic Aquaflux buttons use the CTA gradient;
|
|
407
|
+
tab triggers stay surface/text controls. */
|
|
408
|
+
[theme=aquaflux] :where([tabs]) {
|
|
409
|
+
background: transparent;
|
|
410
|
+
background-image: none;
|
|
411
|
+
border: none;
|
|
412
|
+
box-shadow: none;
|
|
413
|
+
-webkit-backdrop-filter: none;
|
|
414
|
+
backdrop-filter: none;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
[theme=aquaflux] [tabs]:not(:has([tabs-list], [tab-panel])),
|
|
418
|
+
[theme=aquaflux] [tabs-list] {
|
|
419
|
+
border-bottom-color: var(--juice-tabs-list-rule);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
[theme=aquaflux] button[tab],
|
|
423
|
+
[theme=aquaflux] [tabs] > button,
|
|
424
|
+
[theme=aquaflux] [tabs-list] > button {
|
|
425
|
+
background-image: none;
|
|
426
|
+
background-color: var(--juice-tabs-trigger);
|
|
427
|
+
color: var(--juice-tabs-text);
|
|
428
|
+
border: none;
|
|
429
|
+
border-bottom: 2px solid transparent;
|
|
430
|
+
border-radius: 0;
|
|
431
|
+
box-shadow: none;
|
|
432
|
+
transform: none;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
[theme=aquaflux] button[tab]:hover,
|
|
436
|
+
[theme=aquaflux] [tabs] > button:hover,
|
|
437
|
+
[theme=aquaflux] [tabs-list] > button:hover {
|
|
438
|
+
background-image: none;
|
|
439
|
+
background-color: var(--juice-tabs-trigger-hover);
|
|
440
|
+
color: var(--juice-tabs-text-hover);
|
|
441
|
+
box-shadow: none;
|
|
442
|
+
transform: none;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
[theme=aquaflux] button[tab]:focus-visible,
|
|
446
|
+
[theme=aquaflux] [tabs] > button:focus-visible,
|
|
447
|
+
[theme=aquaflux] [tabs-list] > button:focus-visible {
|
|
448
|
+
outline: 2px solid var(--juice-tabs-focus-ring);
|
|
449
|
+
outline-offset: 2px;
|
|
450
|
+
box-shadow: none;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
[theme=aquaflux] button[tab][active],
|
|
454
|
+
[theme=aquaflux] button[tab][aria-selected=true],
|
|
455
|
+
[theme=aquaflux] [tabs] > button[active],
|
|
456
|
+
[theme=aquaflux] [tabs] > button[aria-selected=true],
|
|
457
|
+
[theme=aquaflux] [tabs-list] > button[active],
|
|
458
|
+
[theme=aquaflux] [tabs-list] > button[aria-selected=true] {
|
|
459
|
+
background-image: none;
|
|
460
|
+
background-color: var(--juice-tabs-trigger-active);
|
|
461
|
+
color: var(--juice-tabs-text-active);
|
|
462
|
+
border-bottom-color: var(--juice-tabs-indicator);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
[theme=aquaflux] [tab-panel] {
|
|
466
|
+
color: var(--aqua-text);
|
|
315
467
|
}
|
|
@@ -13,6 +13,40 @@
|
|
|
13
13
|
--cm-heading: hsl(121, 100%, 20%);
|
|
14
14
|
--cm-body-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
15
15
|
--cm-heading-font: "Archivo Black", var(--cm-body-font);
|
|
16
|
+
/* Accordion chrome roles — thinner --cm-* set, same names as other themes.
|
|
17
|
+
No accent token: heading / surface-muted stand in. */
|
|
18
|
+
--cm-trigger: var(--cm-surface);
|
|
19
|
+
--cm-trigger-hover: var(--cm-surface-muted);
|
|
20
|
+
--cm-trigger-open: var(--cm-surface-muted);
|
|
21
|
+
--cm-chevron: var(--cm-heading);
|
|
22
|
+
--cm-panel-rule: var(--cm-border);
|
|
23
|
+
--cm-focus-ring: var(--cm-heading);
|
|
24
|
+
--juice-accordion-trigger: var(--cm-trigger);
|
|
25
|
+
--juice-accordion-trigger-hover: var(--cm-trigger-hover);
|
|
26
|
+
--juice-accordion-trigger-open: var(--cm-trigger-open);
|
|
27
|
+
--juice-accordion-chevron: var(--cm-chevron);
|
|
28
|
+
--juice-accordion-panel-rule: var(--cm-panel-rule);
|
|
29
|
+
--juice-accordion-focus-ring: var(--cm-focus-ring);
|
|
30
|
+
/* Tabs chrome roles — surface/text controls, not heading-fill CTAs.
|
|
31
|
+
No accent token: heading stands in. */
|
|
32
|
+
--cm-tabs-trigger: transparent;
|
|
33
|
+
--cm-tabs-trigger-hover: transparent;
|
|
34
|
+
--cm-tabs-trigger-active: transparent;
|
|
35
|
+
--cm-tabs-text: var(--cm-text-muted);
|
|
36
|
+
--cm-tabs-text-hover: var(--cm-heading);
|
|
37
|
+
--cm-tabs-text-active: var(--cm-heading);
|
|
38
|
+
--cm-tabs-indicator: var(--cm-heading);
|
|
39
|
+
--cm-tabs-list-rule: var(--cm-border);
|
|
40
|
+
--cm-tabs-focus-ring: var(--cm-heading);
|
|
41
|
+
--juice-tabs-trigger: var(--cm-tabs-trigger);
|
|
42
|
+
--juice-tabs-trigger-hover: var(--cm-tabs-trigger-hover);
|
|
43
|
+
--juice-tabs-trigger-active: var(--cm-tabs-trigger-active);
|
|
44
|
+
--juice-tabs-text: var(--cm-tabs-text);
|
|
45
|
+
--juice-tabs-text-hover: var(--cm-tabs-text-hover);
|
|
46
|
+
--juice-tabs-text-active: var(--cm-tabs-text-active);
|
|
47
|
+
--juice-tabs-indicator: var(--cm-tabs-indicator);
|
|
48
|
+
--juice-tabs-list-rule: var(--cm-tabs-list-rule);
|
|
49
|
+
--juice-tabs-focus-ring: var(--cm-tabs-focus-ring);
|
|
16
50
|
background-color: var(--cm-page);
|
|
17
51
|
color: var(--cm-text);
|
|
18
52
|
font-family: var(--cm-body-font);
|
|
@@ -53,4 +87,94 @@
|
|
|
53
87
|
color: var(--cm-surface);
|
|
54
88
|
border: 1px solid transparent;
|
|
55
89
|
font-family: var(--cm-body-font);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Accordion wrappers are structural, not default section surfaces.
|
|
93
|
+
Generic Citrusmint buttons use heading fill; triggers stay surfaces. */
|
|
94
|
+
[theme=citrusmint] :where([accordion]) {
|
|
95
|
+
background: transparent;
|
|
96
|
+
border: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[theme=citrusmint] button[accordion-item] {
|
|
100
|
+
background-color: var(--juice-accordion-trigger);
|
|
101
|
+
color: var(--cm-heading);
|
|
102
|
+
border: 1px solid var(--cm-border);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[theme=citrusmint] button[accordion-item]::after {
|
|
106
|
+
border-color: var(--juice-accordion-chevron);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
[theme=citrusmint] button[accordion-item]:hover {
|
|
110
|
+
background-color: var(--juice-accordion-trigger-hover);
|
|
111
|
+
color: var(--cm-heading);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
[theme=citrusmint] button[accordion-item]:focus-visible {
|
|
115
|
+
outline: 2px solid var(--juice-accordion-focus-ring);
|
|
116
|
+
outline-offset: 2px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[theme=citrusmint] button[accordion-item][aria-expanded=true] {
|
|
120
|
+
background-color: var(--juice-accordion-trigger-open);
|
|
121
|
+
color: var(--cm-heading);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[theme=citrusmint] [accordion] [role=region] {
|
|
125
|
+
color: var(--cm-text);
|
|
126
|
+
background-color: var(--cm-surface-muted);
|
|
127
|
+
border: 1px solid var(--juice-accordion-panel-rule);
|
|
128
|
+
border-radius: 0.75rem;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Tabs wrappers are structural. Generic Citrusmint buttons use heading fill;
|
|
132
|
+
tab triggers stay surface/text controls. */
|
|
133
|
+
[theme=citrusmint] :where([tabs]) {
|
|
134
|
+
background: transparent;
|
|
135
|
+
border: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[theme=citrusmint] [tabs]:not(:has([tabs-list], [tab-panel])),
|
|
139
|
+
[theme=citrusmint] [tabs-list] {
|
|
140
|
+
border-bottom-color: var(--juice-tabs-list-rule);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
[theme=citrusmint] button[tab],
|
|
144
|
+
[theme=citrusmint] [tabs] > button,
|
|
145
|
+
[theme=citrusmint] [tabs-list] > button {
|
|
146
|
+
background-color: var(--juice-tabs-trigger);
|
|
147
|
+
color: var(--juice-tabs-text);
|
|
148
|
+
border: none;
|
|
149
|
+
border-bottom: 2px solid transparent;
|
|
150
|
+
border-radius: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
[theme=citrusmint] button[tab]:hover,
|
|
154
|
+
[theme=citrusmint] [tabs] > button:hover,
|
|
155
|
+
[theme=citrusmint] [tabs-list] > button:hover {
|
|
156
|
+
background-color: var(--juice-tabs-trigger-hover);
|
|
157
|
+
color: var(--juice-tabs-text-hover);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
[theme=citrusmint] button[tab]:focus-visible,
|
|
161
|
+
[theme=citrusmint] [tabs] > button:focus-visible,
|
|
162
|
+
[theme=citrusmint] [tabs-list] > button:focus-visible {
|
|
163
|
+
outline: 2px solid var(--juice-tabs-focus-ring);
|
|
164
|
+
outline-offset: 2px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
[theme=citrusmint] button[tab][active],
|
|
168
|
+
[theme=citrusmint] button[tab][aria-selected=true],
|
|
169
|
+
[theme=citrusmint] [tabs] > button[active],
|
|
170
|
+
[theme=citrusmint] [tabs] > button[aria-selected=true],
|
|
171
|
+
[theme=citrusmint] [tabs-list] > button[active],
|
|
172
|
+
[theme=citrusmint] [tabs-list] > button[aria-selected=true] {
|
|
173
|
+
background-color: var(--juice-tabs-trigger-active);
|
|
174
|
+
color: var(--juice-tabs-text-active);
|
|
175
|
+
border-bottom-color: var(--juice-tabs-indicator);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
[theme=citrusmint] [tab-panel] {
|
|
179
|
+
color: var(--cm-text);
|
|
56
180
|
}
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -2,5 +2,7 @@
|
|
|
2
2
|
* Theme metadata for JS consumers is not part of the Beta public API.
|
|
3
3
|
* Theme contracts live beside SCSS as `<themeId>.yaml` under `src/themes/<themeId>/`.
|
|
4
4
|
* Draft themes live under `src/themes/_draft/` and are not imported from juice.scss.
|
|
5
|
+
* Draft SCSS (for example tide) compiles to `dist/themes/_draft/` for local demos.
|
|
6
|
+
* Those files are blocked from package `exports` and omitted from the published tarball.
|
|
5
7
|
*/
|
|
6
8
|
export {};
|
|
@@ -54,6 +54,38 @@
|
|
|
54
54
|
--kw-workflow-background: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(152, 81%, 96%) 100%);
|
|
55
55
|
--kw-pricing-background: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(210, 20%, 98%) 100%);
|
|
56
56
|
--kw-step-marker-background: linear-gradient(135deg, hsl(161, 94%, 30%) 0%, hsl(163, 94%, 24%) 100%);
|
|
57
|
+
/* Accordion chrome roles — same names as Aquaflux / Citrusmint. */
|
|
58
|
+
--kw-trigger: var(--kw-surface-strong);
|
|
59
|
+
--kw-trigger-hover: var(--kw-surface-muted);
|
|
60
|
+
--kw-trigger-open: var(--kw-accent-soft);
|
|
61
|
+
--kw-chevron: var(--kw-accent);
|
|
62
|
+
--kw-panel-rule: var(--kw-border);
|
|
63
|
+
--kw-focus-ring: var(--kw-accent);
|
|
64
|
+
--juice-accordion-trigger: var(--kw-trigger);
|
|
65
|
+
--juice-accordion-trigger-hover: var(--kw-trigger-hover);
|
|
66
|
+
--juice-accordion-trigger-open: var(--kw-trigger-open);
|
|
67
|
+
--juice-accordion-chevron: var(--kw-chevron);
|
|
68
|
+
--juice-accordion-panel-rule: var(--kw-panel-rule);
|
|
69
|
+
--juice-accordion-focus-ring: var(--kw-focus-ring);
|
|
70
|
+
/* Tabs chrome roles — surface/text controls, not the kiwi CTA. */
|
|
71
|
+
--kw-tabs-trigger: transparent;
|
|
72
|
+
--kw-tabs-trigger-hover: transparent;
|
|
73
|
+
--kw-tabs-trigger-active: transparent;
|
|
74
|
+
--kw-tabs-text: var(--kw-text-soft);
|
|
75
|
+
--kw-tabs-text-hover: var(--kw-heading);
|
|
76
|
+
--kw-tabs-text-active: var(--kw-accent);
|
|
77
|
+
--kw-tabs-indicator: var(--kw-accent);
|
|
78
|
+
--kw-tabs-list-rule: var(--kw-border);
|
|
79
|
+
--kw-tabs-focus-ring: var(--kw-accent);
|
|
80
|
+
--juice-tabs-trigger: var(--kw-tabs-trigger);
|
|
81
|
+
--juice-tabs-trigger-hover: var(--kw-tabs-trigger-hover);
|
|
82
|
+
--juice-tabs-trigger-active: var(--kw-tabs-trigger-active);
|
|
83
|
+
--juice-tabs-text: var(--kw-tabs-text);
|
|
84
|
+
--juice-tabs-text-hover: var(--kw-tabs-text-hover);
|
|
85
|
+
--juice-tabs-text-active: var(--kw-tabs-text-active);
|
|
86
|
+
--juice-tabs-indicator: var(--kw-tabs-indicator);
|
|
87
|
+
--juice-tabs-list-rule: var(--kw-tabs-list-rule);
|
|
88
|
+
--juice-tabs-focus-ring: var(--kw-tabs-focus-ring);
|
|
57
89
|
background-color: var(--kw-page);
|
|
58
90
|
color: var(--kw-text);
|
|
59
91
|
font-family: var(--kw-body-font);
|
|
@@ -407,29 +439,65 @@
|
|
|
407
439
|
box-shadow: 0 2px 8px var(--kw-shadow);
|
|
408
440
|
}
|
|
409
441
|
|
|
410
|
-
/* Tabs
|
|
411
|
-
|
|
412
|
-
|
|
442
|
+
/* Tabs wrappers are structural. Generic KiwiPress buttons are kiwi CTAs;
|
|
443
|
+
tab triggers stay surface/text controls. */
|
|
444
|
+
[theme=kiwipress] :where([tabs]) {
|
|
445
|
+
background: transparent;
|
|
446
|
+
border: none;
|
|
447
|
+
box-shadow: none;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
[theme=kiwipress] [tabs]:not(:has([tabs-list], [tab-panel])),
|
|
451
|
+
[theme=kiwipress] [tabs-list] {
|
|
452
|
+
border-bottom-color: var(--juice-tabs-list-rule);
|
|
413
453
|
}
|
|
414
454
|
|
|
455
|
+
[theme=kiwipress] button[tab],
|
|
415
456
|
[theme=kiwipress] [tabs] > button,
|
|
457
|
+
[theme=kiwipress] [tabs-list] > button,
|
|
416
458
|
[theme=kiwipress] [tab] {
|
|
417
|
-
background-color:
|
|
418
|
-
color: var(--
|
|
459
|
+
background-color: var(--juice-tabs-trigger);
|
|
460
|
+
color: var(--juice-tabs-text);
|
|
461
|
+
border-radius: 0;
|
|
462
|
+
box-shadow: none;
|
|
463
|
+
transform: none;
|
|
419
464
|
}
|
|
420
465
|
|
|
466
|
+
[theme=kiwipress] button[tab]:hover,
|
|
421
467
|
[theme=kiwipress] [tabs] > button:hover,
|
|
468
|
+
[theme=kiwipress] [tabs-list] > button:hover,
|
|
422
469
|
[theme=kiwipress] [tab]:hover {
|
|
423
|
-
background-color:
|
|
424
|
-
color: var(--
|
|
470
|
+
background-color: var(--juice-tabs-trigger-hover);
|
|
471
|
+
color: var(--juice-tabs-text-hover);
|
|
425
472
|
transform: none;
|
|
426
473
|
box-shadow: none;
|
|
427
474
|
}
|
|
428
475
|
|
|
476
|
+
[theme=kiwipress] button[tab]:focus-visible,
|
|
477
|
+
[theme=kiwipress] [tabs] > button:focus-visible,
|
|
478
|
+
[theme=kiwipress] [tabs-list] > button:focus-visible,
|
|
479
|
+
[theme=kiwipress] [tab]:focus-visible {
|
|
480
|
+
outline: 2px solid var(--juice-tabs-focus-ring);
|
|
481
|
+
outline-offset: 2px;
|
|
482
|
+
box-shadow: none;
|
|
483
|
+
transform: none;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
[theme=kiwipress] button[tab][active],
|
|
487
|
+
[theme=kiwipress] button[tab][aria-selected=true],
|
|
429
488
|
[theme=kiwipress] [tabs] > button[active],
|
|
430
|
-
[theme=kiwipress] [
|
|
431
|
-
|
|
432
|
-
|
|
489
|
+
[theme=kiwipress] [tabs] > button[aria-selected=true],
|
|
490
|
+
[theme=kiwipress] [tabs-list] > button[active],
|
|
491
|
+
[theme=kiwipress] [tabs-list] > button[aria-selected=true],
|
|
492
|
+
[theme=kiwipress] [tab][active],
|
|
493
|
+
[theme=kiwipress] [tab][aria-selected=true] {
|
|
494
|
+
background-color: var(--juice-tabs-trigger-active);
|
|
495
|
+
color: var(--juice-tabs-text-active);
|
|
496
|
+
border-bottom-color: var(--juice-tabs-indicator);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
[theme=kiwipress] [tab-panel] {
|
|
500
|
+
color: var(--kw-text);
|
|
433
501
|
}
|
|
434
502
|
|
|
435
503
|
/* How It Works ---------------------------------------------------------
|
|
@@ -1206,6 +1274,51 @@
|
|
|
1206
1274
|
transform: rotate(90deg);
|
|
1207
1275
|
}
|
|
1208
1276
|
|
|
1277
|
+
/* Accordion wrappers are structural, not default section surfaces.
|
|
1278
|
+
Generic KiwiPress buttons are kiwi CTAs; triggers stay surface controls. */
|
|
1279
|
+
[theme=kiwipress] :where([accordion]) {
|
|
1280
|
+
background: transparent;
|
|
1281
|
+
border: none;
|
|
1282
|
+
box-shadow: none;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
[theme=kiwipress] button[accordion-item] {
|
|
1286
|
+
background-color: var(--juice-accordion-trigger);
|
|
1287
|
+
color: var(--kw-heading);
|
|
1288
|
+
border: 1px solid var(--kw-border);
|
|
1289
|
+
box-shadow: none;
|
|
1290
|
+
transform: none;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
[theme=kiwipress] button[accordion-item]::after {
|
|
1294
|
+
border-color: var(--juice-accordion-chevron);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
[theme=kiwipress] button[accordion-item]:hover,
|
|
1298
|
+
[theme=kiwipress] button[accordion-item]:focus-visible {
|
|
1299
|
+
background-color: var(--juice-accordion-trigger-hover);
|
|
1300
|
+
color: var(--kw-heading);
|
|
1301
|
+
transform: none;
|
|
1302
|
+
box-shadow: none;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
[theme=kiwipress] button[accordion-item]:focus-visible {
|
|
1306
|
+
outline: 2px solid var(--juice-accordion-focus-ring);
|
|
1307
|
+
outline-offset: 2px;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
[theme=kiwipress] button[accordion-item][aria-expanded=true] {
|
|
1311
|
+
background-color: var(--juice-accordion-trigger-open);
|
|
1312
|
+
color: var(--kw-heading);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
[theme=kiwipress] [accordion] [role=region] {
|
|
1316
|
+
color: var(--kw-text);
|
|
1317
|
+
background-color: var(--kw-surface-muted);
|
|
1318
|
+
border: 1px solid var(--juice-accordion-panel-rule);
|
|
1319
|
+
border-radius: 0.75rem;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1209
1322
|
/* =====================================================================
|
|
1210
1323
|
Animations (declared outside the theme scope so animation refs work)
|
|
1211
1324
|
===================================================================== */
|
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;
|