@citrusworx/juiceui 0.9.1 → 0.9.3

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 (51) hide show
  1. package/README.md +59 -6
  2. package/dist/components/accordion/accordion.d.ts +2 -1
  3. package/dist/index.css +2767 -328
  4. package/dist/index.d.ts +41 -19
  5. package/dist/index.js +3804 -1967
  6. package/dist/js/juice.d.ts +41 -19
  7. package/dist/js/src/accordion/accordion-runtime.d.ts +6 -0
  8. package/dist/js/src/avatar/avatar-runtime.d.ts +74 -0
  9. package/dist/js/src/banner/banner-runtime.d.ts +5 -0
  10. package/dist/js/src/breadcrumb/breadcrumb-runtime.d.ts +6 -0
  11. package/dist/js/src/checkbox/checkbox-runtime.d.ts +4 -0
  12. package/dist/js/src/combobox/combobox-runtime.d.ts +6 -0
  13. package/dist/js/src/disclosure/disclosure-runtime.d.ts +56 -0
  14. package/dist/js/src/drawer/drawer-runtime.d.ts +11 -0
  15. package/dist/js/src/field/field-runtime.d.ts +58 -0
  16. package/dist/js/src/icon-button/icon-button-runtime.d.ts +67 -0
  17. package/dist/js/src/input/input-runtime.d.ts +63 -0
  18. package/dist/js/src/menu/menu-runtime.d.ts +5 -0
  19. package/dist/js/src/modal/modal-runtime.d.ts +11 -0
  20. package/dist/js/src/nav/navigation.d.ts +5 -0
  21. package/dist/js/src/pagination/pagination-runtime.d.ts +6 -0
  22. package/dist/js/src/popover/popover-runtime.d.ts +10 -0
  23. package/dist/js/src/progress/progress-runtime.d.ts +5 -0
  24. package/dist/js/src/radio/radio-runtime.d.ts +7 -0
  25. package/dist/js/src/select/select-runtime.d.ts +61 -0
  26. package/dist/js/src/shared/change.d.ts +32 -0
  27. package/dist/js/src/shared/motion.d.ts +48 -0
  28. package/dist/js/src/slider/slider-runtime.d.ts +4 -0
  29. package/dist/js/src/spinner/spinner-runtime.d.ts +55 -0
  30. package/dist/js/src/switch/switch-runtime.d.ts +4 -0
  31. package/dist/js/src/table/table-runtime.d.ts +99 -0
  32. package/dist/js/src/tabs/tabs-runtime.d.ts +6 -0
  33. package/dist/js/src/textarea/textarea-runtime.d.ts +59 -0
  34. package/dist/js/src/toast/toast-runtime.d.ts +10 -0
  35. package/dist/js/src/tooltip/tooltip-runtime.d.ts +5 -0
  36. package/dist/js/src/wizard/wizard-runtime.d.ts +4 -0
  37. package/dist/themes/aquaflux.css +318 -0
  38. package/dist/themes/citrusmint.css +317 -0
  39. package/dist/themes/kiwipress.css +317 -0
  40. package/dist/themes/retro-afterburn.css +318 -0
  41. package/dist/themes/retro-arcade-glow.css +318 -0
  42. package/dist/themes/retro-boardwalk.css +585 -56
  43. package/dist/themes/retro-denim-dial.css +318 -0
  44. package/dist/themes/retro-forest-radio.css +318 -0
  45. package/dist/themes/retro-orchard-club.css +318 -0
  46. package/dist/themes/retro-poolside-pop.css +318 -0
  47. package/dist/themes/retro-signal-garden.css +318 -0
  48. package/dist/themes/retro-sunset-motel.css +318 -0
  49. package/dist/themes/retro-violet-parlor.css +318 -0
  50. package/dist/themes/tide.css +318 -0
  51. package/package.json +2 -2
@@ -443,6 +443,94 @@
443
443
  --juice-pagination-border: var(--kw-pagination-border);
444
444
  --juice-pagination-focus-ring: var(--kw-pagination-focus-ring);
445
445
  --juice-pagination-ellipsis: var(--kw-pagination-ellipsis);
446
+ /* Disclosure chrome — standalone APG disclosure from existing tokens.
447
+ One trigger and one panel, not an accordion and not a kiwi CTA.
448
+ Open fill is accent-soft. Distinct from [accordion]. */
449
+ --kw-disclosure-surface: var(--kw-surface);
450
+ --kw-disclosure-border: var(--kw-border);
451
+ --kw-disclosure-trigger: var(--kw-surface-strong);
452
+ --kw-disclosure-trigger-hover: var(--kw-surface-muted);
453
+ --kw-disclosure-trigger-open: var(--kw-accent-soft);
454
+ --kw-disclosure-ink: var(--kw-text);
455
+ --kw-disclosure-chevron: var(--kw-accent);
456
+ --kw-disclosure-focus-ring: var(--kw-accent);
457
+ --juice-disclosure-surface: var(--kw-disclosure-surface);
458
+ --juice-disclosure-border: var(--kw-disclosure-border);
459
+ --juice-disclosure-trigger: var(--kw-disclosure-trigger);
460
+ --juice-disclosure-trigger-hover: var(--kw-disclosure-trigger-hover);
461
+ --juice-disclosure-trigger-open: var(--kw-disclosure-trigger-open);
462
+ --juice-disclosure-ink: var(--kw-disclosure-ink);
463
+ --juice-disclosure-chevron: var(--kw-disclosure-chevron);
464
+ --juice-disclosure-focus-ring: var(--kw-disclosure-focus-ring);
465
+ /* Spinner chrome — standalone indeterminate busy indicator from existing
466
+ tokens. The ring is a border stroke, not a kiwi CTA and not a progress
467
+ bar. Indicator is accent. Ink is text. Inline status — no overlay.
468
+ CSS owns the spin. Runtime is later. */
469
+ --kw-spinner-track: var(--kw-border);
470
+ --kw-spinner-indicator: var(--kw-accent);
471
+ --kw-spinner-ink: var(--kw-text);
472
+ --kw-spinner-focus-ring: var(--kw-accent);
473
+ --juice-spinner-track: var(--kw-spinner-track);
474
+ --juice-spinner-indicator: var(--kw-spinner-indicator);
475
+ --juice-spinner-ink: var(--kw-spinner-ink);
476
+ --juice-spinner-focus-ring: var(--kw-spinner-focus-ring);
477
+ /* Select chrome — styled native <select> from existing tokens.
478
+ Field fill is a surface, not a kiwi CTA and not a combobox.
479
+ Chevron is accent. Ink is text. The platform popup stays native.
480
+ Runtime is later. */
481
+ --kw-select-surface: var(--kw-surface);
482
+ --kw-select-border: var(--kw-border);
483
+ --kw-select-ink: var(--kw-text);
484
+ --kw-select-chevron: var(--kw-accent);
485
+ --kw-select-focus-ring: var(--kw-accent);
486
+ --juice-select-surface: var(--kw-select-surface);
487
+ --juice-select-border: var(--kw-select-border);
488
+ --juice-select-ink: var(--kw-select-ink);
489
+ --juice-select-chevron: var(--kw-select-chevron);
490
+ --juice-select-focus-ring: var(--kw-select-focus-ring);
491
+ /* Input chrome — styled native text field from existing tokens.
492
+ Field fill is a surface, not a kiwi CTA and not a combobox.
493
+ Placeholder is soft text. Text-like types only. Runtime is later. */
494
+ --kw-input-surface: var(--kw-surface);
495
+ --kw-input-border: var(--kw-border);
496
+ --kw-input-ink: var(--kw-text);
497
+ --kw-input-placeholder: var(--kw-text-soft);
498
+ --kw-input-focus-ring: var(--kw-accent);
499
+ --juice-input-surface: var(--kw-input-surface);
500
+ --juice-input-border: var(--kw-input-border);
501
+ --juice-input-ink: var(--kw-input-ink);
502
+ --juice-input-placeholder: var(--kw-input-placeholder);
503
+ --juice-input-focus-ring: var(--kw-input-focus-ring);
504
+ /* Textarea chrome — styled native multi-line field from existing tokens.
505
+ Field fill is a surface, not a kiwi CTA and not an input.
506
+ Placeholder is soft text. Runtime is later. */
507
+ --kw-textarea-surface: var(--kw-surface);
508
+ --kw-textarea-border: var(--kw-border);
509
+ --kw-textarea-ink: var(--kw-text);
510
+ --kw-textarea-placeholder: var(--kw-text-soft);
511
+ --kw-textarea-focus-ring: var(--kw-accent);
512
+ --juice-textarea-surface: var(--kw-textarea-surface);
513
+ --juice-textarea-border: var(--kw-textarea-border);
514
+ --juice-textarea-ink: var(--kw-textarea-ink);
515
+ --juice-textarea-placeholder: var(--kw-textarea-placeholder);
516
+ --juice-textarea-focus-ring: var(--kw-textarea-focus-ring);
517
+ /* Field chrome — wrapper around a control from existing tokens.
518
+ Surface is a field, not a kiwi CTA. Gap is the dense step.
519
+ Help is soft text. Error ink and the invalid border reuse banner
520
+ error. Not an input, not a textarea, and not a select.
521
+ Runtime is later. */
522
+ --kw-field-surface: var(--kw-surface);
523
+ --kw-field-gap: 0.35rem;
524
+ --kw-field-label-ink: var(--kw-text);
525
+ --kw-field-help-ink: var(--kw-text-soft);
526
+ --kw-field-error-ink: var(--kw-banner-error);
527
+ --kw-field-invalid-border: var(--kw-banner-error);
528
+ --juice-field-surface: var(--kw-field-surface);
529
+ --juice-field-gap: var(--kw-field-gap);
530
+ --juice-field-label-ink: var(--kw-field-label-ink);
531
+ --juice-field-help-ink: var(--kw-field-help-ink);
532
+ --juice-field-error-ink: var(--kw-field-error-ink);
533
+ --juice-field-invalid-border: var(--kw-field-invalid-border);
446
534
  background-color: var(--kw-page);
447
535
  color: var(--kw-text);
448
536
  font-family: var(--kw-body-font);
@@ -2266,6 +2354,235 @@
2266
2354
  outline-offset: 2px;
2267
2355
  }
2268
2356
 
2357
+ /* Disclosure chrome. Beat generic button CTAs.
2358
+ Standalone one-trigger disclosure, not an accordion and not a kiwi CTA.
2359
+ Runtime is later. */
2360
+ [theme=kiwipress] [disclosure] {
2361
+ background-image: none;
2362
+ background-color: transparent;
2363
+ border-color: var(--juice-disclosure-border);
2364
+ box-shadow: none;
2365
+ color: var(--juice-disclosure-ink);
2366
+ }
2367
+
2368
+ [theme=kiwipress] button[disclosure-trigger],
2369
+ [theme=kiwipress] a[disclosure-trigger],
2370
+ [theme=kiwipress] [disclosure-trigger] {
2371
+ background-image: none;
2372
+ background-color: var(--juice-disclosure-trigger);
2373
+ color: var(--juice-disclosure-ink);
2374
+ box-shadow: none;
2375
+ transform: none;
2376
+ text-decoration: none;
2377
+ }
2378
+
2379
+ [theme=kiwipress] button[disclosure-trigger]:hover,
2380
+ [theme=kiwipress] a[disclosure-trigger]:hover,
2381
+ [theme=kiwipress] [disclosure-trigger]:hover {
2382
+ background-image: none;
2383
+ background-color: var(--juice-disclosure-trigger-hover);
2384
+ color: var(--juice-disclosure-ink);
2385
+ box-shadow: none;
2386
+ transform: none;
2387
+ }
2388
+
2389
+ [theme=kiwipress] button[disclosure-trigger][aria-expanded=true],
2390
+ [theme=kiwipress] a[disclosure-trigger][aria-expanded=true],
2391
+ [theme=kiwipress] [disclosure-trigger][aria-expanded=true] {
2392
+ background-image: none;
2393
+ background-color: var(--juice-disclosure-trigger-open);
2394
+ color: var(--juice-disclosure-ink);
2395
+ box-shadow: none;
2396
+ transform: none;
2397
+ }
2398
+
2399
+ [theme=kiwipress] [disclosure-trigger]::after {
2400
+ border-color: var(--juice-disclosure-chevron);
2401
+ }
2402
+
2403
+ [theme=kiwipress] button[disclosure-trigger]:focus-visible,
2404
+ [theme=kiwipress] a[disclosure-trigger]:focus-visible,
2405
+ [theme=kiwipress] [disclosure-trigger]:focus-visible {
2406
+ outline: 2px solid var(--juice-disclosure-focus-ring);
2407
+ outline-offset: 2px;
2408
+ box-shadow: none;
2409
+ }
2410
+
2411
+ [theme=kiwipress] [disclosure-panel],
2412
+ [theme=kiwipress] [disclosure] > [disclosure-trigger] + :not([disclosure-trigger]) {
2413
+ background-image: none;
2414
+ background-color: var(--juice-disclosure-surface);
2415
+ border-color: var(--juice-disclosure-border);
2416
+ color: var(--juice-disclosure-ink);
2417
+ box-shadow: none;
2418
+ }
2419
+
2420
+ /* Spinner chrome. Beat generic div fills.
2421
+ Standalone indeterminate busy indicator, not a progress bar and not a kiwi CTA.
2422
+ CSS owns the spin. Runtime is later. */
2423
+ [theme=kiwipress] [spinner] {
2424
+ background-image: none;
2425
+ background-color: transparent;
2426
+ border: none;
2427
+ box-shadow: none;
2428
+ color: var(--juice-spinner-ink);
2429
+ }
2430
+
2431
+ [theme=kiwipress] [spinner]::before {
2432
+ background-image: none;
2433
+ background-color: transparent;
2434
+ border-color: var(--juice-spinner-track);
2435
+ border-top-color: var(--juice-spinner-indicator);
2436
+ box-shadow: none;
2437
+ }
2438
+
2439
+ [theme=kiwipress] [spinner-label] {
2440
+ background-image: none;
2441
+ background-color: transparent;
2442
+ color: var(--juice-spinner-ink);
2443
+ box-shadow: none;
2444
+ }
2445
+
2446
+ [theme=kiwipress] [spinner]:focus-visible {
2447
+ outline: 2px solid var(--juice-spinner-focus-ring);
2448
+ outline-offset: 2px;
2449
+ }
2450
+
2451
+ /* Select chrome. Beat [theme] :where(select) defaults.
2452
+ Styled native dropdown, not a combobox and not a CTA.
2453
+ Chevron stays a background so the control still opens.
2454
+ Runtime is later. */
2455
+ [theme=kiwipress] select[select] {
2456
+ background-color: var(--juice-select-surface);
2457
+ border-color: var(--juice-select-border);
2458
+ color: var(--juice-select-ink);
2459
+ }
2460
+
2461
+ [theme=kiwipress] select[select]:focus-visible {
2462
+ outline: 2px solid var(--juice-select-focus-ring);
2463
+ outline-offset: 2px;
2464
+ }
2465
+
2466
+ [theme=kiwipress] [select-label] {
2467
+ background-image: none;
2468
+ background-color: transparent;
2469
+ color: var(--juice-select-ink);
2470
+ box-shadow: none;
2471
+ }
2472
+
2473
+ /* Input chrome. Beat [theme] :where(input) defaults.
2474
+ Styled native text field, not a combobox, not a select, and not a CTA.
2475
+ Text-like types only. Border color only, so KiwiPress keeps its 2px
2476
+ control border. Runtime is later. */
2477
+ [theme=kiwipress] input[input]:is(:not([type]),
2478
+ [type=""],
2479
+ [type=text i],
2480
+ [type=email i],
2481
+ [type=password i],
2482
+ [type=search i],
2483
+ [type=tel i],
2484
+ [type=url i],
2485
+ [type=number i]):not([combobox-input]) {
2486
+ background-color: var(--juice-input-surface);
2487
+ border-color: var(--juice-input-border);
2488
+ color: var(--juice-input-ink);
2489
+ }
2490
+
2491
+ [theme=kiwipress] input[input]:is(:not([type]),
2492
+ [type=""],
2493
+ [type=text i],
2494
+ [type=email i],
2495
+ [type=password i],
2496
+ [type=search i],
2497
+ [type=tel i],
2498
+ [type=url i],
2499
+ [type=number i]):not([combobox-input])::placeholder {
2500
+ color: var(--juice-input-placeholder);
2501
+ opacity: 1;
2502
+ }
2503
+
2504
+ [theme=kiwipress] input[input]:is(:not([type]),
2505
+ [type=""],
2506
+ [type=text i],
2507
+ [type=email i],
2508
+ [type=password i],
2509
+ [type=search i],
2510
+ [type=tel i],
2511
+ [type=url i],
2512
+ [type=number i]):not([combobox-input]):focus-visible {
2513
+ outline: 2px solid var(--juice-input-focus-ring);
2514
+ outline-offset: 2px;
2515
+ }
2516
+
2517
+ [theme=kiwipress] [input-label] {
2518
+ background-image: none;
2519
+ background-color: transparent;
2520
+ color: var(--juice-input-ink);
2521
+ box-shadow: none;
2522
+ }
2523
+
2524
+ /* Textarea chrome. Beat [theme] :where(textarea) defaults.
2525
+ Styled native multi-line field, not an input, not a select, and not a
2526
+ combobox. Border color only, so KiwiPress keeps its 2px control border.
2527
+ Runtime is later. */
2528
+ [theme=kiwipress] textarea[textarea] {
2529
+ background-color: var(--juice-textarea-surface);
2530
+ border-color: var(--juice-textarea-border);
2531
+ color: var(--juice-textarea-ink);
2532
+ }
2533
+
2534
+ [theme=kiwipress] textarea[textarea]::placeholder {
2535
+ color: var(--juice-textarea-placeholder);
2536
+ opacity: 1;
2537
+ }
2538
+
2539
+ [theme=kiwipress] textarea[textarea]:focus-visible {
2540
+ outline: 2px solid var(--juice-textarea-focus-ring);
2541
+ outline-offset: 2px;
2542
+ }
2543
+
2544
+ [theme=kiwipress] [textarea-label] {
2545
+ background-image: none;
2546
+ background-color: transparent;
2547
+ color: var(--juice-textarea-ink);
2548
+ box-shadow: none;
2549
+ }
2550
+
2551
+ /* Field chrome. Wrapper around a control — label, help, error, invalid.
2552
+ Not an input, not a textarea, not a select, and not the legacy form
2553
+ layout. Paint is surface, gap, ink, and the invalid border, so nested
2554
+ controls keep their own chrome. Runtime is later. */
2555
+ [theme=kiwipress] [field] {
2556
+ background-color: var(--juice-field-surface);
2557
+ gap: var(--juice-field-gap);
2558
+ border-width: 2px;
2559
+ }
2560
+
2561
+ [theme=kiwipress] [field][invalid] {
2562
+ border-color: var(--juice-field-invalid-border);
2563
+ }
2564
+
2565
+ [theme=kiwipress] [field-label] {
2566
+ background-image: none;
2567
+ background-color: transparent;
2568
+ color: var(--juice-field-label-ink);
2569
+ box-shadow: none;
2570
+ }
2571
+
2572
+ [theme=kiwipress] [field-help] {
2573
+ background-image: none;
2574
+ background-color: transparent;
2575
+ color: var(--juice-field-help-ink);
2576
+ box-shadow: none;
2577
+ }
2578
+
2579
+ [theme=kiwipress] [field-error] {
2580
+ background-image: none;
2581
+ background-color: transparent;
2582
+ color: var(--juice-field-error-ink);
2583
+ box-shadow: none;
2584
+ }
2585
+
2269
2586
  /* Accordion wrappers are structural, not default section surfaces.
2270
2587
  Generic KiwiPress buttons are kiwi CTAs; triggers stay surface controls. */
2271
2588
  [theme=kiwipress] :where([accordion]) {
@@ -471,6 +471,96 @@
471
471
  --juice-pagination-border: var(--afb-pagination-border);
472
472
  --juice-pagination-focus-ring: var(--afb-pagination-focus-ring);
473
473
  --juice-pagination-ellipsis: var(--afb-pagination-ellipsis);
474
+ /* Disclosure chrome — standalone APG disclosure from existing tokens.
475
+ One trigger and one panel. Trigger is a surface, not a CTA.
476
+ Distinct from [accordion]. */
477
+ --afb-disclosure-surface: var(--afb-surface);
478
+ --afb-disclosure-border: var(--afb-border);
479
+ --afb-disclosure-trigger: var(--afb-surface-strong);
480
+ --afb-disclosure-trigger-hover: var(--afb-surface-muted);
481
+ --afb-disclosure-trigger-open: var(--afb-surface-muted);
482
+ --afb-disclosure-ink: var(--afb-text);
483
+ --afb-disclosure-chevron: var(--afb-accent);
484
+ --afb-disclosure-focus-ring: var(--afb-accent);
485
+ --juice-disclosure-surface: var(--afb-disclosure-surface);
486
+ --juice-disclosure-border: var(--afb-disclosure-border);
487
+ --juice-disclosure-trigger: var(--afb-disclosure-trigger);
488
+ --juice-disclosure-trigger-hover: var(--afb-disclosure-trigger-hover);
489
+ --juice-disclosure-trigger-open: var(--afb-disclosure-trigger-open);
490
+ --juice-disclosure-ink: var(--afb-disclosure-ink);
491
+ --juice-disclosure-chevron: var(--afb-disclosure-chevron);
492
+ --juice-disclosure-focus-ring: var(--afb-disclosure-focus-ring);
493
+ /* Spinner chrome — standalone indeterminate busy indicator from existing
494
+ tokens. The ring is a border stroke, not a CTA and not a progress
495
+ bar. Indicator is accent. Ink is text. Inline status — no overlay.
496
+ CSS owns the spin. Runtime is later. */
497
+ --afb-spinner-track: var(--afb-border);
498
+ --afb-spinner-indicator: var(--afb-accent);
499
+ --afb-spinner-ink: var(--afb-text);
500
+ --afb-spinner-focus-ring: var(--afb-accent);
501
+ --juice-spinner-track: var(--afb-spinner-track);
502
+ --juice-spinner-indicator: var(--afb-spinner-indicator);
503
+ --juice-spinner-ink: var(--afb-spinner-ink);
504
+ --juice-spinner-focus-ring: var(--afb-spinner-focus-ring);
505
+ /* Select chrome — styled native <select> from existing tokens.
506
+ Field fill matches the combobox input surface. Not a combobox,
507
+ not a custom listbox, and not a CTA. Chevron is accent.
508
+ The platform popup stays native. Runtime is later. */
509
+ --afb-select-surface: var(--afb-surface-strong);
510
+ --afb-select-border: var(--afb-border-strong);
511
+ --afb-select-ink: var(--afb-text);
512
+ --afb-select-chevron: var(--afb-accent);
513
+ --afb-select-focus-ring: var(--afb-accent);
514
+ --juice-select-surface: var(--afb-select-surface);
515
+ --juice-select-border: var(--afb-select-border);
516
+ --juice-select-ink: var(--afb-select-ink);
517
+ --juice-select-chevron: var(--afb-select-chevron);
518
+ --juice-select-focus-ring: var(--afb-select-focus-ring);
519
+ /* Input chrome — styled native text field from existing tokens.
520
+ Field fill matches the combobox input surface. Not a combobox,
521
+ not a select, and not a CTA. Placeholder follows this theme's
522
+ existing placeholder ink. Text-like types only. Runtime is later. */
523
+ --afb-input-surface: var(--afb-surface-strong);
524
+ --afb-input-border: var(--afb-border-strong);
525
+ --afb-input-ink: var(--afb-text);
526
+ --afb-input-placeholder: var(--afb-text-soft);
527
+ --afb-input-focus-ring: var(--afb-accent);
528
+ --juice-input-surface: var(--afb-input-surface);
529
+ --juice-input-border: var(--afb-input-border);
530
+ --juice-input-ink: var(--afb-input-ink);
531
+ --juice-input-placeholder: var(--afb-input-placeholder);
532
+ --juice-input-focus-ring: var(--afb-input-focus-ring);
533
+ /* Textarea chrome — styled native multi-line field from existing tokens.
534
+ Field fill matches the input surface. Not an input, not a select,
535
+ and not a combobox. Placeholder follows this theme's existing
536
+ placeholder ink. Runtime is later. */
537
+ --afb-textarea-surface: var(--afb-surface-strong);
538
+ --afb-textarea-border: var(--afb-border-strong);
539
+ --afb-textarea-ink: var(--afb-text);
540
+ --afb-textarea-placeholder: var(--afb-text-soft);
541
+ --afb-textarea-focus-ring: var(--afb-accent);
542
+ --juice-textarea-surface: var(--afb-textarea-surface);
543
+ --juice-textarea-border: var(--afb-textarea-border);
544
+ --juice-textarea-ink: var(--afb-textarea-ink);
545
+ --juice-textarea-placeholder: var(--afb-textarea-placeholder);
546
+ --juice-textarea-focus-ring: var(--afb-textarea-focus-ring);
547
+ /* Field chrome — wrapper around a control from existing tokens.
548
+ Surface matches the input field. Help follows this theme's
549
+ placeholder ink. Error ink and the invalid border reuse banner
550
+ error. Not an input, not a textarea, not a select, and not a CTA.
551
+ Runtime is later. */
552
+ --afb-field-surface: var(--afb-surface-strong);
553
+ --afb-field-gap: 0.5rem;
554
+ --afb-field-label-ink: var(--afb-text);
555
+ --afb-field-help-ink: var(--afb-text-soft);
556
+ --afb-field-error-ink: var(--afb-banner-error);
557
+ --afb-field-invalid-border: var(--afb-banner-error);
558
+ --juice-field-surface: var(--afb-field-surface);
559
+ --juice-field-gap: var(--afb-field-gap);
560
+ --juice-field-label-ink: var(--afb-field-label-ink);
561
+ --juice-field-help-ink: var(--afb-field-help-ink);
562
+ --juice-field-error-ink: var(--afb-field-error-ink);
563
+ --juice-field-invalid-border: var(--afb-field-invalid-border);
474
564
  background-color: var(--afb-page);
475
565
  background-image: var(--afb-page-background);
476
566
  color: var(--afb-text);
@@ -1651,6 +1741,234 @@
1651
1741
  outline-offset: 2px;
1652
1742
  }
1653
1743
 
1744
+ /* Disclosure chrome. Beat button CTAs.
1745
+ Standalone one-trigger disclosure, not an accordion and not a CTA.
1746
+ Runtime is later. */
1747
+ [theme=retro-afterburn] [disclosure] {
1748
+ background-image: none;
1749
+ background-color: transparent;
1750
+ border-color: var(--juice-disclosure-border);
1751
+ box-shadow: none;
1752
+ color: var(--juice-disclosure-ink);
1753
+ }
1754
+
1755
+ [theme=retro-afterburn] button[disclosure-trigger],
1756
+ [theme=retro-afterburn] a[disclosure-trigger],
1757
+ [theme=retro-afterburn] [disclosure-trigger] {
1758
+ background-image: none;
1759
+ background-color: var(--juice-disclosure-trigger);
1760
+ color: var(--juice-disclosure-ink);
1761
+ box-shadow: none;
1762
+ transform: none;
1763
+ text-decoration: none;
1764
+ }
1765
+
1766
+ [theme=retro-afterburn] button[disclosure-trigger]:hover,
1767
+ [theme=retro-afterburn] a[disclosure-trigger]:hover,
1768
+ [theme=retro-afterburn] [disclosure-trigger]:hover {
1769
+ background-image: none;
1770
+ background-color: var(--juice-disclosure-trigger-hover);
1771
+ color: var(--juice-disclosure-ink);
1772
+ box-shadow: none;
1773
+ transform: none;
1774
+ }
1775
+
1776
+ [theme=retro-afterburn] button[disclosure-trigger][aria-expanded=true],
1777
+ [theme=retro-afterburn] a[disclosure-trigger][aria-expanded=true],
1778
+ [theme=retro-afterburn] [disclosure-trigger][aria-expanded=true] {
1779
+ background-image: none;
1780
+ background-color: var(--juice-disclosure-trigger-open);
1781
+ color: var(--juice-disclosure-ink);
1782
+ box-shadow: none;
1783
+ transform: none;
1784
+ }
1785
+
1786
+ [theme=retro-afterburn] [disclosure-trigger]::after {
1787
+ border-color: var(--juice-disclosure-chevron);
1788
+ }
1789
+
1790
+ [theme=retro-afterburn] button[disclosure-trigger]:focus-visible,
1791
+ [theme=retro-afterburn] a[disclosure-trigger]:focus-visible,
1792
+ [theme=retro-afterburn] [disclosure-trigger]:focus-visible {
1793
+ outline: 2px solid var(--juice-disclosure-focus-ring);
1794
+ outline-offset: 2px;
1795
+ box-shadow: none;
1796
+ }
1797
+
1798
+ [theme=retro-afterburn] [disclosure-panel],
1799
+ [theme=retro-afterburn] [disclosure] > [disclosure-trigger] + :not([disclosure-trigger]) {
1800
+ background-image: none;
1801
+ background-color: var(--juice-disclosure-surface);
1802
+ border-color: var(--juice-disclosure-border);
1803
+ color: var(--juice-disclosure-ink);
1804
+ box-shadow: none;
1805
+ }
1806
+
1807
+ /* Spinner chrome. Beat generic div fills.
1808
+ Standalone indeterminate busy indicator, not a progress bar and not a CTA.
1809
+ CSS owns the spin. Runtime is later. */
1810
+ [theme=retro-afterburn] [spinner] {
1811
+ background-image: none;
1812
+ background-color: transparent;
1813
+ border: none;
1814
+ box-shadow: none;
1815
+ color: var(--juice-spinner-ink);
1816
+ }
1817
+
1818
+ [theme=retro-afterburn] [spinner]::before {
1819
+ background-image: none;
1820
+ background-color: transparent;
1821
+ border-color: var(--juice-spinner-track);
1822
+ border-top-color: var(--juice-spinner-indicator);
1823
+ box-shadow: none;
1824
+ }
1825
+
1826
+ [theme=retro-afterburn] [spinner-label] {
1827
+ background-image: none;
1828
+ background-color: transparent;
1829
+ color: var(--juice-spinner-ink);
1830
+ box-shadow: none;
1831
+ }
1832
+
1833
+ [theme=retro-afterburn] [spinner]:focus-visible {
1834
+ outline: 2px solid var(--juice-spinner-focus-ring);
1835
+ outline-offset: 2px;
1836
+ }
1837
+
1838
+ /* Select chrome. Beat [theme] :where(select) defaults.
1839
+ Styled native dropdown, not a combobox and not a CTA.
1840
+ Chevron stays a background so the control still opens.
1841
+ Runtime is later. */
1842
+ [theme=retro-afterburn] select[select] {
1843
+ background-color: var(--juice-select-surface);
1844
+ border-color: var(--juice-select-border);
1845
+ color: var(--juice-select-ink);
1846
+ }
1847
+
1848
+ [theme=retro-afterburn] select[select]:focus-visible {
1849
+ outline: 2px solid var(--juice-select-focus-ring);
1850
+ outline-offset: 2px;
1851
+ }
1852
+
1853
+ [theme=retro-afterburn] [select-label] {
1854
+ background-image: none;
1855
+ background-color: transparent;
1856
+ color: var(--juice-select-ink);
1857
+ box-shadow: none;
1858
+ }
1859
+
1860
+ /* Input chrome. Beat [theme] :where(input) defaults.
1861
+ Styled native text field, not a combobox, not a select, and not a CTA.
1862
+ Text-like types only. Border color only, so KiwiPress keeps its 2px
1863
+ control border. Runtime is later. */
1864
+ [theme=retro-afterburn] input[input]:is(:not([type]),
1865
+ [type=""],
1866
+ [type=text i],
1867
+ [type=email i],
1868
+ [type=password i],
1869
+ [type=search i],
1870
+ [type=tel i],
1871
+ [type=url i],
1872
+ [type=number i]):not([combobox-input]) {
1873
+ background-color: var(--juice-input-surface);
1874
+ border-color: var(--juice-input-border);
1875
+ color: var(--juice-input-ink);
1876
+ }
1877
+
1878
+ [theme=retro-afterburn] input[input]:is(:not([type]),
1879
+ [type=""],
1880
+ [type=text i],
1881
+ [type=email i],
1882
+ [type=password i],
1883
+ [type=search i],
1884
+ [type=tel i],
1885
+ [type=url i],
1886
+ [type=number i]):not([combobox-input])::placeholder {
1887
+ color: var(--juice-input-placeholder);
1888
+ opacity: 1;
1889
+ }
1890
+
1891
+ [theme=retro-afterburn] input[input]:is(:not([type]),
1892
+ [type=""],
1893
+ [type=text i],
1894
+ [type=email i],
1895
+ [type=password i],
1896
+ [type=search i],
1897
+ [type=tel i],
1898
+ [type=url i],
1899
+ [type=number i]):not([combobox-input]):focus-visible {
1900
+ outline: 2px solid var(--juice-input-focus-ring);
1901
+ outline-offset: 2px;
1902
+ }
1903
+
1904
+ [theme=retro-afterburn] [input-label] {
1905
+ background-image: none;
1906
+ background-color: transparent;
1907
+ color: var(--juice-input-ink);
1908
+ box-shadow: none;
1909
+ }
1910
+
1911
+ /* Textarea chrome. Beat [theme] :where(textarea) defaults.
1912
+ Styled native multi-line field, not an input, not a select, and not a
1913
+ combobox. Border color only, so KiwiPress keeps its 2px control border.
1914
+ Runtime is later. */
1915
+ [theme=retro-afterburn] textarea[textarea] {
1916
+ background-color: var(--juice-textarea-surface);
1917
+ border-color: var(--juice-textarea-border);
1918
+ color: var(--juice-textarea-ink);
1919
+ }
1920
+
1921
+ [theme=retro-afterburn] textarea[textarea]::placeholder {
1922
+ color: var(--juice-textarea-placeholder);
1923
+ opacity: 1;
1924
+ }
1925
+
1926
+ [theme=retro-afterburn] textarea[textarea]:focus-visible {
1927
+ outline: 2px solid var(--juice-textarea-focus-ring);
1928
+ outline-offset: 2px;
1929
+ }
1930
+
1931
+ [theme=retro-afterburn] [textarea-label] {
1932
+ background-image: none;
1933
+ background-color: transparent;
1934
+ color: var(--juice-textarea-ink);
1935
+ box-shadow: none;
1936
+ }
1937
+
1938
+ /* Field chrome. Wrapper around a control — label, help, error, invalid.
1939
+ Not an input, not a textarea, not a select, and not the legacy form
1940
+ layout. Paint is surface, gap, ink, and the invalid border, so nested
1941
+ controls keep their own chrome. Runtime is later. */
1942
+ [theme=retro-afterburn] [field] {
1943
+ background-color: var(--juice-field-surface);
1944
+ gap: var(--juice-field-gap);
1945
+ }
1946
+
1947
+ [theme=retro-afterburn] [field][invalid] {
1948
+ border-color: var(--juice-field-invalid-border);
1949
+ }
1950
+
1951
+ [theme=retro-afterburn] [field-label] {
1952
+ background-image: none;
1953
+ background-color: transparent;
1954
+ color: var(--juice-field-label-ink);
1955
+ box-shadow: none;
1956
+ }
1957
+
1958
+ [theme=retro-afterburn] [field-help] {
1959
+ background-image: none;
1960
+ background-color: transparent;
1961
+ color: var(--juice-field-help-ink);
1962
+ box-shadow: none;
1963
+ }
1964
+
1965
+ [theme=retro-afterburn] [field-error] {
1966
+ background-image: none;
1967
+ background-color: transparent;
1968
+ color: var(--juice-field-error-ink);
1969
+ box-shadow: none;
1970
+ }
1971
+
1654
1972
  /* Primary CTA ink only. Outline, secondary, and component controls keep their own roles. */
1655
1973
  [theme=retro-afterburn] :where(button:not([btn])) {
1656
1974
  color: #140c05;