@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.
@@ -0,0 +1,8 @@
1
+ export { createNavigation, initNavigation, startNavigationRuntime, stopNavigationRuntime } from "./src/nav/navigation.js";
2
+ export type { NavigationController, NavigationOptions } from "./src/nav/navigation.js";
3
+ export { createAccordion, initAccordion, startAccordionRuntime, stopAccordionRuntime } from "./src/accordion/accordion-runtime.js";
4
+ export type { AccordionController, AccordionOptions } from "./src/accordion/accordion-runtime.js";
5
+ export { createTabs, initTabs, startTabsRuntime, stopTabsRuntime } from "./src/tabs/tabs-runtime.js";
6
+ export type { TabsController, TabsOptions } from "./src/tabs/tabs-runtime.js";
7
+ export { createModal, initModal, startModalRuntime, stopModalRuntime } from "./src/modal/modal-runtime.js";
8
+ export type { ModalController, ModalOptions } from "./src/modal/modal-runtime.js";
@@ -0,0 +1,16 @@
1
+ export type AccordionOptions = {
2
+ root?: ParentNode;
3
+ accordionSelector?: string;
4
+ triggerSelector?: string;
5
+ };
6
+ export type AccordionController = {
7
+ destroy: () => void;
8
+ sync: () => void;
9
+ expand: (trigger?: HTMLElement | null) => void;
10
+ collapse: (trigger?: HTMLElement | null) => void;
11
+ toggle: (trigger?: HTMLElement | null) => void;
12
+ };
13
+ export declare const createAccordion: (options?: AccordionOptions) => AccordionController;
14
+ export declare const initAccordion: (options?: AccordionOptions) => AccordionController;
15
+ export declare const startAccordionRuntime: () => AccordionController | null;
16
+ export declare const stopAccordionRuntime: () => void;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * DOM-first dialog runtime for Juice modal chrome.
3
+ *
4
+ * Markup contract:
5
+ * [modal-overlay][hidden] > [modal role="dialog"] + [modal-close]
6
+ * Closed vs open is the native `hidden` attribute on the overlay.
7
+ *
8
+ * Openers: any element whose `aria-controls` token list includes a
9
+ * `[modal-overlay]` id. `[modal-close]` closes the containing overlay.
10
+ * Backdrop click closes unless `modal-overlay="static"` or
11
+ * `closeOnBackdrop` is false.
12
+ */
13
+ export type ModalOptions = {
14
+ root?: ParentNode;
15
+ overlaySelector?: string;
16
+ dialogSelector?: string;
17
+ closeSelector?: string;
18
+ closeOnBackdrop?: boolean;
19
+ };
20
+ export type ModalController = {
21
+ destroy: () => void;
22
+ sync: () => void;
23
+ open: (target?: HTMLElement | null) => void;
24
+ close: (target?: HTMLElement | null) => void;
25
+ toggle: (target?: HTMLElement | null) => void;
26
+ };
27
+ export declare const createModal: (options?: ModalOptions) => ModalController;
28
+ export declare const initModal: (options?: ModalOptions) => ModalController;
29
+ export declare const startModalRuntime: () => ModalController | null;
30
+ export declare const stopModalRuntime: () => void;
@@ -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;
@@ -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,85 @@
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);
97
+ /* Surface tone roles — frosted / elevated / recessed from existing tokens. */
98
+ --juice-surface-soft-bg: var(--aqua-surface);
99
+ --juice-surface-soft-border: var(--aqua-border);
100
+ --juice-surface-soft-shadow: 0 18px 40px -28px var(--aqua-shadow);
101
+ --juice-surface-soft-blur: 14px;
102
+ --juice-surface-strong-bg: var(--aqua-surface-strong);
103
+ --juice-surface-strong-border: var(--aqua-border-strong);
104
+ --juice-surface-strong-shadow: 0 24px 56px -24px var(--aqua-shadow);
105
+ --juice-surface-strong-blur: 0px;
106
+ --juice-surface-muted-bg: var(--aqua-surface-muted);
107
+ --juice-surface-muted-border: var(--aqua-border);
108
+ --juice-surface-muted-shadow: none;
109
+ --juice-surface-muted-blur: 0px;
110
+ /* Border strength — existing --aqua-border tokens; 1px hairline vs 2px rule. */
111
+ --juice-border-strength-soft-width: 1px;
112
+ --juice-border-strength-soft-color: var(--aqua-border);
113
+ --juice-border-strength-bold-width: 2px;
114
+ --juice-border-strength-bold-color: var(--aqua-border-strong);
115
+ /* Shadow tone — existing blue / purple identity; no new hue family. */
116
+ --juice-shadow-tone-cool-color: var(--aqua-shadow);
117
+ --juice-shadow-tone-cool-shadow: 0 18px 40px -28px var(--aqua-shadow);
118
+ --juice-shadow-tone-warm-color: color-mix(in srgb, var(--aqua-accent-strong) 16%, transparent);
119
+ --juice-shadow-tone-warm-shadow: 0 18px 40px -28px color-mix(in srgb, var(--aqua-accent-strong) 16%, transparent);
120
+ /* Overlay — frost veil / page-tint wash; existing tokens only. */
121
+ --juice-overlay-frost-wash: color-mix(in srgb, var(--aqua-page) 42%, transparent);
122
+ --juice-overlay-frost-layer: linear-gradient(var(--juice-overlay-frost-wash), var(--juice-overlay-frost-wash));
123
+ --juice-overlay-tint-wash: color-mix(in srgb, var(--aqua-page-tint) 38%, transparent);
124
+ --juice-overlay-tint-layer: linear-gradient(var(--juice-overlay-tint-wash), var(--juice-overlay-tint-wash));
125
+ /* Modal chrome — dimming scrim + elevated panel. Close is a surface
126
+ control, not the CTA gradient. Distinct from overlay="frost|tint". */
127
+ --aqua-modal-overlay: color-mix(in srgb, var(--aqua-page-deep) 62%, transparent);
128
+ --aqua-modal-panel: var(--aqua-surface-strong);
129
+ --aqua-modal-panel-border: var(--aqua-border);
130
+ --aqua-modal-panel-shadow: 0 24px 56px -24px var(--aqua-shadow);
131
+ --aqua-modal-close: var(--aqua-surface-strong);
132
+ --aqua-modal-close-color: var(--aqua-heading);
133
+ --aqua-modal-close-hover: var(--aqua-surface-muted);
134
+ --aqua-modal-focus-ring: var(--aqua-accent);
135
+ --juice-modal-overlay: var(--aqua-modal-overlay);
136
+ --juice-modal-panel: var(--aqua-modal-panel);
137
+ --juice-modal-panel-border: var(--aqua-modal-panel-border);
138
+ --juice-modal-panel-shadow: var(--aqua-modal-panel-shadow);
139
+ --juice-modal-close: var(--aqua-modal-close);
140
+ --juice-modal-close-color: var(--aqua-modal-close-color);
141
+ --juice-modal-close-hover: var(--aqua-modal-close-hover);
142
+ --juice-modal-focus-ring: var(--aqua-modal-focus-ring);
63
143
  background-color: var(--aqua-page);
64
144
  background-image: var(--aqua-page-background);
65
145
  color: var(--aqua-text);
@@ -312,4 +392,157 @@
312
392
  [theme=aquaflux][aqua-hero] :where([aqua-card], [aqua-panel]) :where(p, span, li, small, a),
313
393
  [theme=aquaflux] [aqua-hero] :where([aqua-card], [aqua-panel]) :where(p, span, li, small, a) {
314
394
  color: var(--aqua-text-muted);
395
+ }
396
+
397
+ /* Accordion wrappers are structural, not named surfaces.
398
+ Group FAQ stacks in [aqua-card] / [aqua-panel] instead.
399
+ Fill / chevron / focus / panel-rule come from --juice-accordion-* roles. */
400
+ [theme=aquaflux] :where([accordion]) {
401
+ background: transparent;
402
+ background-image: none;
403
+ border: none;
404
+ box-shadow: none;
405
+ -webkit-backdrop-filter: none;
406
+ backdrop-filter: none;
407
+ }
408
+
409
+ /* Generic Aquaflux buttons use --aqua-button-background (CTA gradient).
410
+ Accordion triggers are surface controls, not primary actions.
411
+ Slice A extras (heading ink, hairline, shadow) stay here; fills use roles. */
412
+ [theme=aquaflux] button[accordion-item] {
413
+ background-image: none;
414
+ background-color: var(--juice-accordion-trigger);
415
+ color: var(--aqua-heading);
416
+ border: 1px solid var(--aqua-border);
417
+ box-shadow: 0 14px 32px -26px var(--aqua-shadow);
418
+ }
419
+
420
+ [theme=aquaflux] button[accordion-item]::after {
421
+ border-color: var(--juice-accordion-chevron);
422
+ }
423
+
424
+ [theme=aquaflux] button[accordion-item]:hover {
425
+ border-color: var(--aqua-border-strong);
426
+ background-color: var(--juice-accordion-trigger-hover);
427
+ color: var(--aqua-heading);
428
+ }
429
+
430
+ [theme=aquaflux] button[accordion-item]:focus-visible {
431
+ outline: 2px solid var(--juice-accordion-focus-ring);
432
+ outline-offset: 2px;
433
+ box-shadow: 0 14px 32px -26px var(--aqua-shadow);
434
+ }
435
+
436
+ [theme=aquaflux] button[accordion-item][aria-expanded=true] {
437
+ background-color: var(--juice-accordion-trigger-open);
438
+ background-image: none;
439
+ color: var(--aqua-heading);
440
+ border-color: var(--aqua-border-strong);
441
+ }
442
+
443
+ [theme=aquaflux] [accordion] [role=region] {
444
+ color: var(--aqua-text);
445
+ background-color: var(--aqua-surface-muted);
446
+ border: 1px solid var(--juice-accordion-panel-rule);
447
+ border-radius: 0.75rem;
448
+ /* Slice A framed the panel; skip the shared inset rule. */
449
+ box-shadow: none;
450
+ }
451
+
452
+ /* Tabs wrappers are structural. Generic Aquaflux buttons use the CTA gradient;
453
+ tab triggers stay surface/text controls. */
454
+ [theme=aquaflux] :where([tabs]) {
455
+ background: transparent;
456
+ background-image: none;
457
+ border: none;
458
+ box-shadow: none;
459
+ -webkit-backdrop-filter: none;
460
+ backdrop-filter: none;
461
+ }
462
+
463
+ [theme=aquaflux] [tabs]:not(:has([tabs-list], [tab-panel])),
464
+ [theme=aquaflux] [tabs-list] {
465
+ border-bottom-color: var(--juice-tabs-list-rule);
466
+ }
467
+
468
+ [theme=aquaflux] button[tab],
469
+ [theme=aquaflux] [tabs] > button,
470
+ [theme=aquaflux] [tabs-list] > button {
471
+ background-image: none;
472
+ background-color: var(--juice-tabs-trigger);
473
+ color: var(--juice-tabs-text);
474
+ border: none;
475
+ border-bottom: 2px solid transparent;
476
+ border-radius: 0;
477
+ box-shadow: none;
478
+ transform: none;
479
+ }
480
+
481
+ [theme=aquaflux] button[tab]:hover,
482
+ [theme=aquaflux] [tabs] > button:hover,
483
+ [theme=aquaflux] [tabs-list] > button:hover {
484
+ background-image: none;
485
+ background-color: var(--juice-tabs-trigger-hover);
486
+ color: var(--juice-tabs-text-hover);
487
+ box-shadow: none;
488
+ transform: none;
489
+ }
490
+
491
+ [theme=aquaflux] button[tab]:focus-visible,
492
+ [theme=aquaflux] [tabs] > button:focus-visible,
493
+ [theme=aquaflux] [tabs-list] > button:focus-visible {
494
+ outline: 2px solid var(--juice-tabs-focus-ring);
495
+ outline-offset: 2px;
496
+ box-shadow: none;
497
+ }
498
+
499
+ [theme=aquaflux] button[tab][active],
500
+ [theme=aquaflux] button[tab][aria-selected=true],
501
+ [theme=aquaflux] [tabs] > button[active],
502
+ [theme=aquaflux] [tabs] > button[aria-selected=true],
503
+ [theme=aquaflux] [tabs-list] > button[active],
504
+ [theme=aquaflux] [tabs-list] > button[aria-selected=true] {
505
+ background-image: none;
506
+ background-color: var(--juice-tabs-trigger-active);
507
+ color: var(--juice-tabs-text-active);
508
+ border-bottom-color: var(--juice-tabs-indicator);
509
+ }
510
+
511
+ [theme=aquaflux] [tab-panel] {
512
+ color: var(--aqua-text);
513
+ }
514
+
515
+ /* Modal chrome. Generic Aquaflux buttons use the CTA gradient;
516
+ [modal-close] stays a surface control. Runtime is slice B. */
517
+ [theme=aquaflux] [modal-overlay] {
518
+ background-color: var(--juice-modal-overlay);
519
+ }
520
+
521
+ [theme=aquaflux] [modal]:not([surfaceTone]) {
522
+ background-color: var(--juice-modal-panel);
523
+ border: 1px solid var(--juice-modal-panel-border);
524
+ box-shadow: var(--juice-modal-panel-shadow);
525
+ }
526
+
527
+ [theme=aquaflux] button[modal-close],
528
+ [theme=aquaflux] [modal-close] {
529
+ background-image: none;
530
+ background-color: var(--juice-modal-close);
531
+ color: var(--juice-modal-close-color);
532
+ box-shadow: none;
533
+ transform: none;
534
+ }
535
+
536
+ [theme=aquaflux] button[modal-close]:hover,
537
+ [theme=aquaflux] [modal-close]:hover {
538
+ background-image: none;
539
+ background-color: var(--juice-modal-close-hover);
540
+ color: var(--juice-modal-close-color);
541
+ transform: none;
542
+ }
543
+
544
+ [theme=aquaflux] button[modal-close]:focus-visible,
545
+ [theme=aquaflux] [modal-close]:focus-visible {
546
+ outline: 2px solid var(--juice-modal-focus-ring);
547
+ outline-offset: 2px;
315
548
  }
@@ -13,6 +13,87 @@
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);
50
+ /* Surface tone roles — thinner --cm-* set; no dedicated frost token,
51
+ so soft mixes --cm-surface to the unthemed frost alpha. */
52
+ --juice-surface-soft-bg: color-mix(in srgb, var(--cm-surface) 88%, transparent);
53
+ --juice-surface-soft-border: var(--cm-border);
54
+ --juice-surface-soft-shadow: 0 18px 40px -28px rgba(0, 102, 1.7, 0.18);
55
+ --juice-surface-soft-blur: 10px;
56
+ --juice-surface-strong-bg: var(--cm-surface);
57
+ --juice-surface-strong-border: var(--cm-border);
58
+ --juice-surface-strong-shadow: 0 22px 48px -22px rgba(0, 102, 1.7, 0.22);
59
+ --juice-surface-strong-blur: 0px;
60
+ --juice-surface-muted-bg: var(--cm-surface-muted);
61
+ --juice-surface-muted-border: var(--cm-border);
62
+ --juice-surface-muted-shadow: none;
63
+ --juice-surface-muted-blur: 0px;
64
+ /* Border strength — no --cm-border-strong; bold mixes heading for contrast. */
65
+ --juice-border-strength-soft-width: 1px;
66
+ --juice-border-strength-soft-color: var(--cm-border);
67
+ --juice-border-strength-bold-width: 2px;
68
+ --juice-border-strength-bold-color: color-mix(in srgb, var(--cm-heading) 22%, transparent);
69
+ /* Shadow tone — same green family (wintergreen cool / lime warm). */
70
+ --juice-shadow-tone-cool-color: rgba(0.3825, 76.1175, 40.7745, 0.2);
71
+ --juice-shadow-tone-cool-shadow: 0 18px 40px -28px rgba(0.3825, 76.1175, 40.7745, 0.2);
72
+ --juice-shadow-tone-warm-color: rgba(40.29, 86.7, 15.3, 0.2);
73
+ --juice-shadow-tone-warm-shadow: 0 18px 40px -28px rgba(40.29, 86.7, 15.3, 0.2);
74
+ /* Overlay — frost veil / muted green tint; thinner --cm-* set. */
75
+ --juice-overlay-frost-wash: color-mix(in srgb, var(--cm-surface) 42%, transparent);
76
+ --juice-overlay-frost-layer: linear-gradient(var(--juice-overlay-frost-wash), var(--juice-overlay-frost-wash));
77
+ --juice-overlay-tint-wash: color-mix(in srgb, var(--cm-surface-muted) 40%, transparent);
78
+ --juice-overlay-tint-layer: linear-gradient(var(--juice-overlay-tint-wash), var(--juice-overlay-tint-wash));
79
+ /* Modal chrome — thinner --cm-* set; heading stands in for accent.
80
+ Close is a surface control, not heading-fill CTA. */
81
+ --cm-modal-overlay: color-mix(in srgb, var(--cm-heading) 55%, transparent);
82
+ --cm-modal-panel: var(--cm-surface);
83
+ --cm-modal-panel-border: var(--cm-border);
84
+ --cm-modal-panel-shadow: 0 22px 48px -22px color-mix(in srgb, var(--cm-heading) 22%, transparent);
85
+ --cm-modal-close: var(--cm-surface);
86
+ --cm-modal-close-color: var(--cm-heading);
87
+ --cm-modal-close-hover: var(--cm-surface-muted);
88
+ --cm-modal-focus-ring: var(--cm-heading);
89
+ --juice-modal-overlay: var(--cm-modal-overlay);
90
+ --juice-modal-panel: var(--cm-modal-panel);
91
+ --juice-modal-panel-border: var(--cm-modal-panel-border);
92
+ --juice-modal-panel-shadow: var(--cm-modal-panel-shadow);
93
+ --juice-modal-close: var(--cm-modal-close);
94
+ --juice-modal-close-color: var(--cm-modal-close-color);
95
+ --juice-modal-close-hover: var(--cm-modal-close-hover);
96
+ --juice-modal-focus-ring: var(--cm-modal-focus-ring);
16
97
  background-color: var(--cm-page);
17
98
  color: var(--cm-text);
18
99
  font-family: var(--cm-body-font);
@@ -53,4 +134,126 @@
53
134
  color: var(--cm-surface);
54
135
  border: 1px solid transparent;
55
136
  font-family: var(--cm-body-font);
137
+ }
138
+
139
+ /* Accordion wrappers are structural, not default section surfaces.
140
+ Generic Citrusmint buttons use heading fill; triggers stay surfaces. */
141
+ [theme=citrusmint] :where([accordion]) {
142
+ background: transparent;
143
+ border: none;
144
+ }
145
+
146
+ [theme=citrusmint] button[accordion-item] {
147
+ background-color: var(--juice-accordion-trigger);
148
+ color: var(--cm-heading);
149
+ border: 1px solid var(--cm-border);
150
+ }
151
+
152
+ [theme=citrusmint] button[accordion-item]::after {
153
+ border-color: var(--juice-accordion-chevron);
154
+ }
155
+
156
+ [theme=citrusmint] button[accordion-item]:hover {
157
+ background-color: var(--juice-accordion-trigger-hover);
158
+ color: var(--cm-heading);
159
+ }
160
+
161
+ [theme=citrusmint] button[accordion-item]:focus-visible {
162
+ outline: 2px solid var(--juice-accordion-focus-ring);
163
+ outline-offset: 2px;
164
+ }
165
+
166
+ [theme=citrusmint] button[accordion-item][aria-expanded=true] {
167
+ background-color: var(--juice-accordion-trigger-open);
168
+ color: var(--cm-heading);
169
+ }
170
+
171
+ [theme=citrusmint] [accordion] [role=region] {
172
+ color: var(--cm-text);
173
+ background-color: var(--cm-surface-muted);
174
+ border: 1px solid var(--juice-accordion-panel-rule);
175
+ border-radius: 0.75rem;
176
+ }
177
+
178
+ /* Tabs wrappers are structural. Generic Citrusmint buttons use heading fill;
179
+ tab triggers stay surface/text controls. */
180
+ [theme=citrusmint] :where([tabs]) {
181
+ background: transparent;
182
+ border: none;
183
+ }
184
+
185
+ [theme=citrusmint] [tabs]:not(:has([tabs-list], [tab-panel])),
186
+ [theme=citrusmint] [tabs-list] {
187
+ border-bottom-color: var(--juice-tabs-list-rule);
188
+ }
189
+
190
+ [theme=citrusmint] button[tab],
191
+ [theme=citrusmint] [tabs] > button,
192
+ [theme=citrusmint] [tabs-list] > button {
193
+ background-color: var(--juice-tabs-trigger);
194
+ color: var(--juice-tabs-text);
195
+ border: none;
196
+ border-bottom: 2px solid transparent;
197
+ border-radius: 0;
198
+ }
199
+
200
+ [theme=citrusmint] button[tab]:hover,
201
+ [theme=citrusmint] [tabs] > button:hover,
202
+ [theme=citrusmint] [tabs-list] > button:hover {
203
+ background-color: var(--juice-tabs-trigger-hover);
204
+ color: var(--juice-tabs-text-hover);
205
+ }
206
+
207
+ [theme=citrusmint] button[tab]:focus-visible,
208
+ [theme=citrusmint] [tabs] > button:focus-visible,
209
+ [theme=citrusmint] [tabs-list] > button:focus-visible {
210
+ outline: 2px solid var(--juice-tabs-focus-ring);
211
+ outline-offset: 2px;
212
+ }
213
+
214
+ [theme=citrusmint] button[tab][active],
215
+ [theme=citrusmint] button[tab][aria-selected=true],
216
+ [theme=citrusmint] [tabs] > button[active],
217
+ [theme=citrusmint] [tabs] > button[aria-selected=true],
218
+ [theme=citrusmint] [tabs-list] > button[active],
219
+ [theme=citrusmint] [tabs-list] > button[aria-selected=true] {
220
+ background-color: var(--juice-tabs-trigger-active);
221
+ color: var(--juice-tabs-text-active);
222
+ border-bottom-color: var(--juice-tabs-indicator);
223
+ }
224
+
225
+ [theme=citrusmint] [tab-panel] {
226
+ color: var(--cm-text);
227
+ }
228
+
229
+ /* Modal chrome. Generic Citrusmint buttons use heading fill;
230
+ [modal-close] stays a surface control. Runtime is slice B. */
231
+ [theme=citrusmint] [modal-overlay] {
232
+ background-color: var(--juice-modal-overlay);
233
+ }
234
+
235
+ [theme=citrusmint] [modal]:not([surfaceTone]) {
236
+ background-color: var(--juice-modal-panel);
237
+ border: 1px solid var(--juice-modal-panel-border);
238
+ box-shadow: var(--juice-modal-panel-shadow);
239
+ }
240
+
241
+ [theme=citrusmint] button[modal-close],
242
+ [theme=citrusmint] [modal-close] {
243
+ background-color: var(--juice-modal-close);
244
+ color: var(--juice-modal-close-color);
245
+ box-shadow: none;
246
+ transform: none;
247
+ }
248
+
249
+ [theme=citrusmint] button[modal-close]:hover,
250
+ [theme=citrusmint] [modal-close]:hover {
251
+ background-color: var(--juice-modal-close-hover);
252
+ color: var(--juice-modal-close-color);
253
+ }
254
+
255
+ [theme=citrusmint] button[modal-close]:focus-visible,
256
+ [theme=citrusmint] [modal-close]:focus-visible {
257
+ outline: 2px solid var(--juice-modal-focus-ring);
258
+ outline-offset: 2px;
56
259
  }
@@ -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 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 {};