@citrusworx/juiceui 0.9.0 → 0.9.2
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 +42 -7
- package/dist/index.css +1383 -114
- package/dist/index.d.ts +16 -0
- package/dist/index.js +2174 -913
- package/dist/js/juice.d.ts +16 -0
- package/dist/js/src/disclosure/disclosure-runtime.d.ts +51 -0
- package/dist/js/src/drawer/drawer-runtime.d.ts +6 -0
- package/dist/js/src/field/field-runtime.d.ts +53 -0
- package/dist/js/src/input/input-runtime.d.ts +55 -0
- package/dist/js/src/modal/modal-runtime.d.ts +6 -0
- package/dist/js/src/pagination/pagination-runtime.d.ts +79 -0
- package/dist/js/src/popover/popover-runtime.d.ts +5 -0
- package/dist/js/src/select/select-runtime.d.ts +52 -0
- package/dist/js/src/shared/motion.d.ts +48 -0
- package/dist/js/src/spinner/spinner-runtime.d.ts +51 -0
- package/dist/js/src/textarea/textarea-runtime.d.ts +51 -0
- package/dist/js/src/toast/toast-runtime.d.ts +5 -0
- package/dist/themes/aquaflux.css +411 -0
- package/dist/themes/citrusmint.css +404 -0
- package/dist/themes/kiwipress.css +410 -0
- package/dist/themes/retro-afterburn.css +2019 -0
- package/dist/themes/retro-arcade-glow.css +2019 -0
- package/dist/themes/retro-boardwalk.css +2082 -0
- package/dist/themes/retro-denim-dial.css +1871 -0
- package/dist/themes/retro-forest-radio.css +1871 -0
- package/dist/themes/retro-orchard-club.css +1871 -0
- package/dist/themes/retro-poolside-pop.css +1871 -0
- package/dist/themes/retro-signal-garden.css +1871 -0
- package/dist/themes/retro-sunset-motel.css +1871 -0
- package/dist/themes/retro-violet-parlor.css +1871 -0
- package/dist/themes/tide.css +403 -0
- package/package.json +92 -2
|
@@ -419,6 +419,118 @@
|
|
|
419
419
|
--juice-progress-fill: var(--kw-progress-fill);
|
|
420
420
|
--juice-progress-ink: var(--kw-progress-ink);
|
|
421
421
|
--juice-progress-focus-ring: var(--kw-progress-focus-ring);
|
|
422
|
+
/* Pagination chrome — APG page set from existing tokens. Page controls
|
|
423
|
+
are surfaces, not a kiwi CTA. The trail stays transparent. Current
|
|
424
|
+
fill is accent; ink on that fill is page. Distinct from breadcrumb,
|
|
425
|
+
nav[type="pagination"], tabs, and wizard steps. */
|
|
426
|
+
--kw-pagination-surface: var(--kw-surface);
|
|
427
|
+
--kw-pagination-surface-hover: var(--kw-surface-muted);
|
|
428
|
+
--kw-pagination-surface-current: var(--kw-accent);
|
|
429
|
+
--kw-pagination-ink: var(--kw-text);
|
|
430
|
+
--kw-pagination-ink-hover: var(--kw-accent);
|
|
431
|
+
--kw-pagination-ink-current: var(--kw-page);
|
|
432
|
+
--kw-pagination-ink-disabled: var(--kw-text-muted);
|
|
433
|
+
--kw-pagination-border: var(--kw-border);
|
|
434
|
+
--kw-pagination-focus-ring: var(--kw-accent);
|
|
435
|
+
--kw-pagination-ellipsis: var(--kw-text-muted);
|
|
436
|
+
--juice-pagination-surface: var(--kw-pagination-surface);
|
|
437
|
+
--juice-pagination-surface-hover: var(--kw-pagination-surface-hover);
|
|
438
|
+
--juice-pagination-surface-current: var(--kw-pagination-surface-current);
|
|
439
|
+
--juice-pagination-ink: var(--kw-pagination-ink);
|
|
440
|
+
--juice-pagination-ink-hover: var(--kw-pagination-ink-hover);
|
|
441
|
+
--juice-pagination-ink-current: var(--kw-pagination-ink-current);
|
|
442
|
+
--juice-pagination-ink-disabled: var(--kw-pagination-ink-disabled);
|
|
443
|
+
--juice-pagination-border: var(--kw-pagination-border);
|
|
444
|
+
--juice-pagination-focus-ring: var(--kw-pagination-focus-ring);
|
|
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);
|
|
422
534
|
background-color: var(--kw-page);
|
|
423
535
|
color: var(--kw-text);
|
|
424
536
|
font-family: var(--kw-body-font);
|
|
@@ -2173,6 +2285,304 @@
|
|
|
2173
2285
|
outline-offset: 2px;
|
|
2174
2286
|
}
|
|
2175
2287
|
|
|
2288
|
+
/* Pagination chrome. Beat generic link color and button CTAs.
|
|
2289
|
+
Page controls are surfaces, not a kiwi CTA. The trail stays inline.
|
|
2290
|
+
Runtime is later. */
|
|
2291
|
+
[theme=kiwipress] [pagination],
|
|
2292
|
+
[theme=kiwipress] nav[pagination] {
|
|
2293
|
+
background-image: none;
|
|
2294
|
+
background-color: transparent;
|
|
2295
|
+
border: none;
|
|
2296
|
+
box-shadow: none;
|
|
2297
|
+
-webkit-backdrop-filter: none;
|
|
2298
|
+
backdrop-filter: none;
|
|
2299
|
+
color: var(--juice-pagination-ink);
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
[theme=kiwipress] [pagination] a,
|
|
2303
|
+
[theme=kiwipress] [pagination-link],
|
|
2304
|
+
[theme=kiwipress] a[pagination-link],
|
|
2305
|
+
[theme=kiwipress] button[pagination-link],
|
|
2306
|
+
[theme=kiwipress] button[pagination-prev],
|
|
2307
|
+
[theme=kiwipress] button[pagination-next] {
|
|
2308
|
+
background-image: none;
|
|
2309
|
+
background-color: var(--juice-pagination-surface);
|
|
2310
|
+
border-color: var(--juice-pagination-border);
|
|
2311
|
+
color: var(--juice-pagination-ink);
|
|
2312
|
+
box-shadow: none;
|
|
2313
|
+
transform: none;
|
|
2314
|
+
text-decoration: none;
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
[theme=kiwipress] [pagination] a:hover,
|
|
2318
|
+
[theme=kiwipress] [pagination-link]:hover,
|
|
2319
|
+
[theme=kiwipress] button[pagination-link]:hover,
|
|
2320
|
+
[theme=kiwipress] button[pagination-prev]:hover,
|
|
2321
|
+
[theme=kiwipress] button[pagination-next]:hover {
|
|
2322
|
+
background-image: none;
|
|
2323
|
+
background-color: var(--juice-pagination-surface-hover);
|
|
2324
|
+
color: var(--juice-pagination-ink-hover);
|
|
2325
|
+
box-shadow: none;
|
|
2326
|
+
transform: none;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
[theme=kiwipress] [pagination] [aria-current=page],
|
|
2330
|
+
[theme=kiwipress] [pagination] [aria-current=page] :is(a, button, [pagination-link]),
|
|
2331
|
+
[theme=kiwipress] [pagination-link][aria-current=page] {
|
|
2332
|
+
background-image: none;
|
|
2333
|
+
background-color: var(--juice-pagination-surface-current);
|
|
2334
|
+
color: var(--juice-pagination-ink-current);
|
|
2335
|
+
box-shadow: none;
|
|
2336
|
+
transform: none;
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
[theme=kiwipress] [pagination] :is(a, button, [pagination-link]):is(:disabled, [disabled], [aria-disabled=true]),
|
|
2340
|
+
[theme=kiwipress] [pagination] [aria-disabled=true] :is(a, button, [pagination-link]) {
|
|
2341
|
+
background-image: none;
|
|
2342
|
+
background-color: var(--juice-pagination-surface);
|
|
2343
|
+
color: var(--juice-pagination-ink-disabled);
|
|
2344
|
+
box-shadow: none;
|
|
2345
|
+
transform: none;
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
[theme=kiwipress] [pagination] a:focus-visible,
|
|
2349
|
+
[theme=kiwipress] [pagination-link]:focus-visible,
|
|
2350
|
+
[theme=kiwipress] button[pagination-link]:focus-visible,
|
|
2351
|
+
[theme=kiwipress] button[pagination-prev]:focus-visible,
|
|
2352
|
+
[theme=kiwipress] button[pagination-next]:focus-visible {
|
|
2353
|
+
outline: 2px solid var(--juice-pagination-focus-ring);
|
|
2354
|
+
outline-offset: 2px;
|
|
2355
|
+
}
|
|
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
|
+
|
|
2176
2586
|
/* Accordion wrappers are structural, not default section surfaces.
|
|
2177
2587
|
Generic KiwiPress buttons are kiwi CTAs; triggers stay surface controls. */
|
|
2178
2588
|
[theme=kiwipress] :where([accordion]) {
|