@lilydesignsystem/themes 0.6.0 → 0.6.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.
Files changed (66) hide show
  1. package/LICENSE.md +8 -8
  2. package/dist/abyss.css +635 -22
  3. package/dist/acid.css +634 -21
  4. package/dist/adobe-spectrum.css +636 -23
  5. package/dist/ant-design.css +634 -21
  6. package/dist/aqua.css +636 -23
  7. package/dist/atlassian.css +634 -21
  8. package/dist/australia-agriculture-design-system.css +4575 -0
  9. package/dist/autumn.css +636 -23
  10. package/dist/black.css +635 -22
  11. package/dist/brazil-padrao-digital-de-governo.css +4575 -0
  12. package/dist/bumblebee.css +637 -24
  13. package/dist/business.css +635 -22
  14. package/dist/canada-government-of-canada-design-system.css +4575 -0
  15. package/dist/cappuccino.css +634 -21
  16. package/dist/caramellatte.css +635 -22
  17. package/dist/cmyk.css +634 -21
  18. package/dist/coffee.css +634 -21
  19. package/dist/corporate.css +638 -25
  20. package/dist/cupcake.css +635 -22
  21. package/dist/cyberpunk.css +634 -21
  22. package/dist/dark.css +636 -23
  23. package/dist/dim.css +634 -21
  24. package/dist/dracula.css +634 -21
  25. package/dist/emerald.css +635 -22
  26. package/dist/european-union-europa-component-library.css +4575 -0
  27. package/dist/excel.css +634 -21
  28. package/dist/fantasy.css +635 -22
  29. package/dist/fluent.css +634 -21
  30. package/dist/forest.css +634 -21
  31. package/dist/garden.css +636 -23
  32. package/dist/github-primer.css +634 -21
  33. package/dist/halloween.css +635 -22
  34. package/dist/ibm-carbon.css +634 -21
  35. package/dist/japan-digital-agency-design-system.css +4575 -0
  36. package/dist/lemonade.css +634 -21
  37. package/dist/light.css +635 -22
  38. package/dist/linear.css +634 -21
  39. package/dist/lofi.css +634 -21
  40. package/dist/luxury.css +634 -21
  41. package/dist/mozilla-protocol.css +636 -23
  42. package/dist/night.css +634 -21
  43. package/dist/nord.css +634 -21
  44. package/dist/notion.css +634 -21
  45. package/dist/pastel.css +641 -28
  46. package/dist/retro.css +638 -25
  47. package/dist/salesforce.css +634 -21
  48. package/dist/sap-fiori.css +634 -21
  49. package/dist/silk.css +635 -22
  50. package/dist/singapore-government-design-system.css +4575 -0
  51. package/dist/sunset.css +634 -21
  52. package/dist/synthwave.css +634 -21
  53. package/dist/united-kingdom-government-digital-service.css +634 -21
  54. package/dist/united-kingdom-national-health-service-england-for-patients.css +658 -32
  55. package/dist/united-kingdom-national-health-service-england-for-practitioners.css +656 -30
  56. package/dist/united-kingdom-national-health-service-scotland-for-patients.css +669 -40
  57. package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +664 -35
  58. package/dist/united-kingdom-national-health-service-wales-for-patients.css +669 -38
  59. package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +662 -31
  60. package/dist/united-states-web-design-system.css +635 -22
  61. package/dist/valentine.css +638 -25
  62. package/dist/vercel.css +634 -21
  63. package/dist/winter.css +635 -22
  64. package/dist/wireframe.css +634 -21
  65. package/index.md +8 -4
  66. package/package.json +2 -2
@@ -5,8 +5,10 @@
5
5
  *
6
6
  *
7
7
  * Upstream tracked: DHCW / NHS Wales design system (2026 — navy primary,
8
- * gold rail accent, yellow focus). Independent implementation against Lily
9
- * class hooks; not affiliated with or endorsed by NHS Wales / DHCW.
8
+ * gold rail accent, yellow focus; link, hover, visited and active colours
9
+ * from the DHCW Design System private beta of 2026-10-23, read 2026-10-28).
10
+ * Independent implementation against Lily class hooks; not affiliated with
11
+ * or endorsed by NHS Wales / DHCW.
10
12
  * --------------------------------------------------------------------------
11
13
  * Practitioners variant
12
14
  * --------------------------------------------------------------------------
@@ -455,12 +457,20 @@
455
457
  /* #007F3B — the DHCW action-link green. Not NHS Green: it is
456
458
  a shade darker so the chevron reads at 5.1:1 on white. */
457
459
  --lily-action-green: oklch(52% 0.141 151);
458
- /* #7C2855 — `$nhsw-colour-link-visited`. NHS Purple. 9.2:1. */
459
- --lily-link-visited: oklch(42% 0.126 351);
460
- /* #003087 — `$nhsw-colour-link-hover`, NHS Dark Blue /
461
- Pantone 287. No longer the secondary token, but still the
462
- hovered link. 11.9:1. */
463
- --lily-link-hover: oklch(35% 0.153 261);
460
+ /* #005AA8 — `$nhswales-link-colour`, DHCW Design System
461
+ (private beta, 2026-10-23). 6.94:1 on white, 6.26:1 on
462
+ #F0F4F5: AA, just short of AAA. NHS Blue #005EB8 stays on
463
+ --color-secondary for the header band and brand chrome. */
464
+ --lily-link: oklch(46.8% 0.145 253.1);
465
+ /* #002F5C — `$nhswales-link-active-colour`. 13.45:1 on white. */
466
+ --lily-link-active: oklch(30.5% 0.093 252.7);
467
+ /* #330072 — `$nhswales-link-visited-colour`. 15.18:1 on
468
+ white. (Until 2026-10-28 this was #7C2855, which the DHCW
469
+ Design System uses for hover.) */
470
+ --lily-link-visited: oklch(29% 0.162 292.2);
471
+ /* #7C2855 — `$nhswales-link-hover-colour`. 9.16:1 on white.
472
+ (Until 2026-10-28 this was NHS Dark Blue #003087.) */
473
+ --lily-link-hover: oklch(41.8% 0.126 350.8);
464
474
  /* #00A499 — NHS Aqua Green / Pantone 3272. Demoted from the
465
475
  accent slot but retained: DHCW ships an `aqua-green` tag
466
476
  tone, and Public Health Wales and the Welsh Ambulance
@@ -493,6 +503,14 @@
493
503
  --border: 1px;
494
504
  --depth: 0;
495
505
  --noise: 0;
506
+ /* Fluid inline gutter for page containers and the main
507
+ region: grows with the viewport from a 1rem floor to a 2rem
508
+ ceiling. Spacing only, never text. */
509
+ --space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
510
+ /* Fluid gap between sections (stacks and grids): grows with
511
+ the viewport from a 1rem floor to a 2rem ceiling. Spacing
512
+ only, never text. */
513
+ --space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
496
514
  }
497
515
 
498
516
  /* ----------------------------------------------------------------------------
@@ -611,7 +629,7 @@
611
629
  /* --- Typography ---------------------------------------------------- */
612
630
  /* Body font stack — system fonts first so consumers get a
613
631
  native-feeling baseline without shipping a web font. */
614
- --lily-font-body:
632
+ --lily-font-body-latin:
615
633
  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
616
634
  Arial, sans-serif;
617
635
  /* Monospaced font stack — used by code, kbd, identifiers, and
@@ -795,9 +813,12 @@
795
813
  }
796
814
 
797
815
  /* Invalid input — red border. The `aria-invalid="true"` attribute is the
798
- ARIA contract; pairing it with a colour change keeps WCAG 1.4.1
799
- (no colour-only meaning) honest because the ARIA state is also there. */
800
- :where([class$="-input"], .input)[aria-invalid="true"] {
816
+ ARIA contract (server-rendered errors); `:user-invalid` is the native
817
+ state that matches only after the user has interacted, so a required
818
+ field is not styled invalid on load. Pairing a colour change with the
819
+ ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
820
+ :where([class$="-input"], .input)[aria-invalid="true"],
821
+ :where([class$="-input"], .input):user-invalid {
801
822
  border-color: var(--color-error);
802
823
  }
803
824
 
@@ -1167,11 +1188,14 @@
1167
1188
  On a clinical surface, reserve this for actions that destroy or
1168
1189
  retract a record. A red button in a worklist toolbar that merely
1169
1190
  filters is how people learn to click red buttons without reading. */
1191
+ /* DHCW's delete red #D5281B is 5.06:1 under a white label: AA, not the
1192
+ AAA this system targets. The fill is mixed 20% towards black (8.2:1)
1193
+ so the label meets 7:1; the hue is unchanged. */
1170
1194
  :where([class$="-button"], .button)[data-variant="warning"] {
1171
- background-color: var(--color-error);
1195
+ background-color: color-mix(in oklch, var(--color-error) 80%, black);
1172
1196
  color: var(--color-error-content);
1173
- border-color: var(--color-error);
1174
- box-shadow: 0 1px 0 color-mix(in oklch, var(--color-error) 60%, black);
1197
+ border-color: color-mix(in oklch, var(--color-error) 80%, black);
1198
+ box-shadow: 0 1px 0 color-mix(in oklch, var(--color-error) 50%, black);
1175
1199
  }
1176
1200
  :where([class$="-button"], .button)[data-variant="warning"]:hover:not(
1177
1201
  :disabled
@@ -1365,16 +1389,17 @@
1365
1389
  * exclusions (`skip-link`, `back-link`) are styled as buttons above.
1366
1390
  * ====================================================================== */
1367
1391
 
1368
- /* Links are NHS Blue (`$nhsw-colour-link`), i.e. --color-secondary
1369
- under this palette — not the navy primary. Keeping links blue and
1392
+ /* Links are `$nhswales-link-colour` #005AA8 (--lily-link), a shade
1393
+ off NHS Blue #005EB8, which stays on --color-secondary for the
1394
+ header band — not the navy primary. Keeping links blue and
1370
1395
  buttons navy is what lets a reader tell "this navigates" from "this
1371
1396
  acts" without reading either one. */
1372
1397
  :where([class$="-link"]:not(.skip-link):not(.back-link)) {
1373
- color: var(--color-secondary);
1398
+ color: var(--lily-link);
1374
1399
  text-decoration: underline;
1375
1400
  text-underline-offset: 0.12em;
1376
1401
  }
1377
- /* Hover — DHCW drops to NHS Dark Blue #003087 and thickens the rule.
1402
+ /* Hover — DHCW moves to #7C2855 and thickens the rule.
1378
1403
  Both, not either: colour alone is not a state change (WCAG 1.4.1). */
1379
1404
  :where([class$="-link"]):hover {
1380
1405
  color: var(--lily-link-hover);
@@ -1388,6 +1413,10 @@
1388
1413
  :where([class$="-link"]):visited {
1389
1414
  color: var(--lily-link-visited);
1390
1415
  }
1416
+ /* Active — #002F5C while the link is pressed. */
1417
+ :where([class$="-link"]):active {
1418
+ color: var(--lily-link-active);
1419
+ }
1391
1420
  :where(
1392
1421
  .data-table,
1393
1422
  .table,
@@ -2284,13 +2313,17 @@
2284
2313
  padding: 0.25rem 0.5rem;
2285
2314
  }
2286
2315
 
2287
- /* Sticky promo — sits at the very top of the viewport on scroll. */
2316
+ /* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
2317
+ the component's own bottom: 0 it would stretch over the whole page and take every click. */
2288
2318
  :where(.sticky-promo-banner) {
2289
2319
  position: sticky;
2290
- inset-block-start: 0;
2291
2320
  z-index: 10;
2292
2321
  }
2293
2322
 
2323
+ :where(.sticky-promo-banner:not([data-position="bottom"])) {
2324
+ inset-block-start: 0;
2325
+ }
2326
+
2294
2327
  /* Error message — inline form-validation message. */
2295
2328
  :where(.error-message) {
2296
2329
  color: var(--lily-error-text);
@@ -2468,7 +2501,8 @@
2468
2501
 
2469
2502
  /* --- Grail layout (5-region responsive page shell) --------------------- */
2470
2503
  /* Header spans the top; left-aside / main / right-aside fill the middle;
2471
- footer spans the bottom. At ≤768px the asides drop below the main. */
2504
+ footer spans the bottom. The collapse as the window narrows is in the shared
2505
+ container section at the end of this file. */
2472
2506
  :where(.grail-layout) {
2473
2507
  display: grid;
2474
2508
  min-height: 100vh;
@@ -2510,14 +2544,6 @@
2510
2544
  :where(.grail-layout-center-main) {
2511
2545
  padding: 0.5rem;
2512
2546
  }
2513
- /* Mobile breakpoint — collapse to a single column, stacking the regions. */
2514
- @media (max-width: 48rem) {
2515
- :where(.grail-layout) {
2516
- grid-template-areas: "header" "main" "left" "right" "footer";
2517
- grid-template-columns: 1fr;
2518
- grid-template-rows: auto auto auto auto auto;
2519
- }
2520
- }
2521
2547
 
2522
2548
  /* Standalone semantic header / footer landmarks. */
2523
2549
  :where(.header) {
@@ -2607,6 +2633,15 @@
2607
2633
  /* Drawers — side panels (right edge by default; RTL-aware via logical
2608
2634
  properties). Sit above the overlay container (z-index 101). */
2609
2635
  :where(.drawer, .slide-out-drawer, .sheet) {
2636
+ /* These are <dialog> elements opened with showModal() (P18-T6): undo the
2637
+ browser's centred-box defaults so the panel docks to the edge. */
2638
+ margin: 0;
2639
+ border: 0;
2640
+ inset-inline-start: auto;
2641
+ max-block-size: none;
2642
+ max-inline-size: none;
2643
+ block-size: 100%;
2644
+ box-sizing: border-box;
2610
2645
  position: fixed;
2611
2646
  inset-block: 0;
2612
2647
  inset-inline-end: 0;
@@ -2619,6 +2654,10 @@
2619
2654
  z-index: 101;
2620
2655
  }
2621
2656
 
2657
+ :where(.drawer, .slide-out-drawer, .sheet)::backdrop {
2658
+ background-color: color-mix(in oklch, black 50%, transparent);
2659
+ }
2660
+
2622
2661
  /* ==========================================================================
2623
2662
  * Menus
2624
2663
  * ====================================================================== */
@@ -2671,7 +2710,7 @@
2671
2710
  gap: 0.125rem;
2672
2711
  }
2673
2712
  /* Hamburger — bordered icon-button. */
2674
- :where(.hamburger-menu) {
2713
+ :where(.hamburger-menu > button) {
2675
2714
  display: inline-flex;
2676
2715
  align-items: center;
2677
2716
  justify-content: center;
@@ -3783,6 +3822,56 @@
3783
3822
  }
3784
3823
  }
3785
3824
 
3825
+ /* A closed popover stays closed. Author `display` beats the browser's own rule for a closed popover, so the
3826
+ menu rule above would otherwise leave every closed dropdown-menu and context-menu on the page. */
3827
+ :where([popover]:not(:popover-open)) {
3828
+ display: none;
3829
+ }
3830
+
3831
+ /* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
3832
+ browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
3833
+ where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
3834
+ open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
3835
+ hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
3836
+ `position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
3837
+ position-area: with no anchor, position-area does nothing and a static position can be off screen. */
3838
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
3839
+ display: none;
3840
+ }
3841
+
3842
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
3843
+ display: none;
3844
+ }
3845
+
3846
+ @supports (position-area: block-end) {
3847
+ :where(.cascader-trigger) { anchor-name: --lily-cascader; }
3848
+ :where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
3849
+ :where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
3850
+ :where(.combobox > input) { anchor-name: --lily-combobox; }
3851
+ :where(.cascader-panel) { position-anchor: --lily-cascader; }
3852
+ :where(.tree-select-panel) { position-anchor: --lily-tree-select; }
3853
+ :where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
3854
+ :where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
3855
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
3856
+ position: fixed;
3857
+ inset: auto;
3858
+ margin: 0;
3859
+ position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
3860
+ width: max-content;
3861
+ max-width: calc(100vw - 1rem);
3862
+ }
3863
+ :where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
3864
+ inset-block-start: anchor(end, 25%);
3865
+ inset-inline-start: anchor(start, 25%);
3866
+ }
3867
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
3868
+ position-area: block-end span-inline-end;
3869
+ }
3870
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
3871
+ min-inline-size: anchor-size(inline);
3872
+ }
3873
+ }
3874
+
3786
3875
  :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
3787
3876
  > :where(
3788
3877
  .theme-picker-option,
@@ -4995,6 +5084,81 @@
4995
5084
  min-block-size: 24px;
4996
5085
  }
4997
5086
 
5087
+ /* ============================================================================
5088
+ * Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
5089
+ *
5090
+ * Where the primary pointer is coarse (a finger), interactive hooks are at least
5091
+ * 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
5092
+ * buttons, form fields, checkboxes and radios, and the link-shaped navigation
5093
+ * hooks. Links inside running text are exempt, so bare `a` is not listed. The
5094
+ * query is the capability, never a viewport width. :where() keeps specificity
5095
+ * at zero, so any consumer rule still wins.
5096
+ * ========================================================================= */
5097
+
5098
+ @media (pointer: coarse) {
5099
+ :where(button,
5100
+ [role="button"],
5101
+ [role="tab"],
5102
+ [role="option"],
5103
+ [role="menuitem"],
5104
+ [class*="-picker-button"],
5105
+ summary,
5106
+ input:not([type="hidden"]),
5107
+ select,
5108
+ textarea,
5109
+ .action-link,
5110
+ .back-link,
5111
+ .breadcrumb-list-item > a,
5112
+ .pagination-list-item > a,
5113
+ .contents-list-item > a,
5114
+ .section-list-item > a) {
5115
+ min-inline-size: 44px;
5116
+ min-block-size: 44px;
5117
+ }
5118
+ }
5119
+
5120
+ /* ============================================================================
5121
+ * Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
5122
+ *
5123
+ * --lily-brand is the identity's decorative colour: a header band, a rule, a
5124
+ * logo background. It is NEVER a text colour or a control's boundary, because a
5125
+ * brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
5126
+ * text drawn on it. By default they follow the theme's primary pair, which every
5127
+ * theme keeps readable; an adopter whose brand colour is lighter or darker sets
5128
+ * both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
5129
+ * content pairs (--color-base-content, --lily-error-text and so on).
5130
+ * ========================================================================== */
5131
+
5132
+ :where(:root) {
5133
+ --lily-brand: var(--color-primary);
5134
+ --lily-on-brand: var(--color-primary-content);
5135
+ }
5136
+
5137
+ /* ============================================================================
5138
+ * Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
5139
+ *
5140
+ * The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
5141
+ * adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
5142
+ * and no clear-space rule, because national and local guidelines disagree: a
5143
+ * theme or the adopter sets --lily-logo-clear-space (padding around the mark)
5144
+ * and --lily-logo-min-size (its smallest inline size). Both are unset by
5145
+ * default, so nothing changes until one is set.
5146
+ * ========================================================================== */
5147
+
5148
+ @layer lily {
5149
+ :where([data-lily-logo]) {
5150
+ display: inline-block;
5151
+ padding: var(--lily-logo-clear-space, 0);
5152
+ }
5153
+
5154
+ :where([data-lily-logo] > img, [data-lily-logo] > svg) {
5155
+ display: block;
5156
+ min-inline-size: var(--lily-logo-min-size, 0);
5157
+ max-inline-size: 100%;
5158
+ block-size: auto;
5159
+ }
5160
+ }
5161
+
4998
5162
  /* ============================================================================
4999
5163
  * Overflow guards — narrow-viewport safety, shared verbatim by all themes.
5000
5164
  *
@@ -5023,6 +5187,140 @@
5023
5187
  overflow-wrap: anywhere;
5024
5188
  }
5025
5189
 
5190
+ /* ============================================================================
5191
+ * Scoped overflow — shared verbatim by all themes.
5192
+ *
5193
+ * Long unbroken strings (a national identifier, an email address, a URL) and
5194
+ * grid/flex tracks that refuse to shrink are the usual causes of horizontal
5195
+ * page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
5196
+ * `overflow-wrap: anywhere` on the places a long value lands (table cells are
5197
+ * covered by Overflow guards above), and `min-inline-size: 0` on the direct
5198
+ * children of Lily's grid and flex containers so a child can shrink below its
5199
+ * content. The identifier `-view` list below is the catalog's 70 national
5200
+ * identifier views (components-categories.tsv); bin/check-theme fails when it
5201
+ * drifts from the catalog. :where() keeps specificity at zero.
5202
+ * ========================================================================= */
5203
+
5204
+ :where(
5205
+ .alba-community-health-index-view,
5206
+ .australia-individual-healthcare-identifier-view,
5207
+ .belgique-numero-de-registre-national-view,
5208
+ .bulgaria-edinen-grazhdanski-nomer-view,
5209
+ .cesko-cestovni-pas-view,
5210
+ .cesko-rodne-cislo-view,
5211
+ .cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
5212
+ .kypros-national-passport-number-view,
5213
+ .danmark-personnummer-view,
5214
+ .deutschland-krankenversichertennummer-view,
5215
+ .eesti-isikukood-view,
5216
+ .ellada-dematerialised-securities-system-view,
5217
+ .england-national-health-service-number-view,
5218
+ .espana-codigo-de-identificacion-fiscal-view,
5219
+ .espana-tarjeta-sanitaria-individual-view,
5220
+ .france-numero-d-identification-au-repertoire-view,
5221
+ .hrvatska-osobni-identifikacijski-broj-view,
5222
+ .eire-individual-health-identifier-view,
5223
+ .island-kennitala-view,
5224
+ .italia-codice-fiscale-view,
5225
+ .latvija-personas-kods-view,
5226
+ .liechtenstein-national-identity-card-number-view,
5227
+ .liechtenstein-passport-number-view,
5228
+ .lietuva-asmens-kodas-view,
5229
+ .lietuva-pasas-view,
5230
+ .malta-national-identification-number-view,
5231
+ .malta-passport-number-view,
5232
+ .nederland-burgerservice-nummer-view,
5233
+ .nederland-identiteitskaart-nummer-view,
5234
+ .nederland-paspoort-nummer-view,
5235
+ .norge-fodselsnummer-view,
5236
+ .tuaisceart-eireann-health-and-care-number-view,
5237
+ .polska-numer-identyfikacji-podatkowej-view,
5238
+ .polska-pesel-view,
5239
+ .portugal-numero-de-identificacao-fiscal-view,
5240
+ .portugal-passaporte-view,
5241
+ .romania-cod-numeric-personal-view,
5242
+ .romania-pasaport-view,
5243
+ .slovenija-emso-view,
5244
+ .slovensko-pas-view,
5245
+ .slovensko-rodne-cislo-view,
5246
+ .suomi-henkilotunnus-view,
5247
+ .sverige-personnummer-view,
5248
+ .iban-view,
5249
+ .united-kingdom-national-health-service-number-view,
5250
+ .united-kingdom-national-insurance-number-view,
5251
+ .united-states-social-security-number-view,
5252
+ .aotearoa-national-health-index-view,
5253
+ .pilipinas-philhealth-identification-number-view,
5254
+ .brasil-cartao-nacional-de-saude-view,
5255
+ .schweiz-ahv-nummer-view,
5256
+ .canada-social-insurance-number-view,
5257
+ .hanguk-jumin-deungnok-beonho-view,
5258
+ .nihon-kojin-bango-view,
5259
+ .bharat-aadhaar-view,
5260
+ .yisrael-teudat-zehut-view,
5261
+ .south-africa-identity-number-view,
5262
+ .mexico-clave-unica-de-registro-de-poblacion-view,
5263
+ .singapore-national-registration-identity-card-view,
5264
+ .osterreich-sozialversicherungsnummer-view,
5265
+ .magyarorszag-taj-szam-view,
5266
+ .luxembourg-matricule-view,
5267
+ .zhongguo-jumin-shenfenzheng-haoma-view,
5268
+ .rossiya-snils-view,
5269
+ .turkiye-tc-kimlik-numarasi-view,
5270
+ .argentina-codigo-unico-de-identificacion-laboral-view,
5271
+ .ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
5272
+ .indonesia-nomor-induk-kependudukan-view,
5273
+ .prathet-thai-lek-prajam-tua-prachachon-view,
5274
+ .chile-rol-unico-nacional-view,
5275
+ .taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
5276
+ .hong-kong-identity-card-view,
5277
+ .iran-kod-e-melli-view,
5278
+ .as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
5279
+ .malaysia-kad-pengenalan-view,
5280
+ .viet-nam-can-cuoc-cong-dan-view,
5281
+ .pakistan-computerized-national-identity-card-view,
5282
+ .uruguay-cedula-de-identidad-view,
5283
+ .ecuador-cedula-de-identidad-view,
5284
+ .colombia-cedula-de-ciudadania-view,
5285
+ .australia-tax-file-number-view,
5286
+ .nigeria-national-identification-number-view,
5287
+ .misr-al-raqm-al-qawmi-view
5288
+ ) {
5289
+ overflow-wrap: anywhere;
5290
+ }
5291
+
5292
+ /* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
5293
+ :where(.summary-list, .summary-list-item, .description-list) {
5294
+ overflow-wrap: anywhere;
5295
+ }
5296
+
5297
+ :where(
5298
+ .grid,
5299
+ .flex-stack,
5300
+ .grail-layout,
5301
+ .summary-list,
5302
+ .summary-list-item,
5303
+ .description-list,
5304
+ .form,
5305
+ .editable-form,
5306
+ .field,
5307
+ .input-group,
5308
+ .button-group,
5309
+ .radio-group,
5310
+ .checkbox-group,
5311
+ .toggle-group,
5312
+ .tag-group,
5313
+ .split-view,
5314
+ .photo-pack,
5315
+ .data-filter-form,
5316
+ .action-bar,
5317
+ .tool-bar,
5318
+ .menu-bar,
5319
+ .tab-bar
5320
+ ) > :where(*) {
5321
+ min-inline-size: 0;
5322
+ }
5323
+
5026
5324
  /* ============================================================================
5027
5325
  * Helper packages — layout and look, shared verbatim by all themes.
5028
5326
  *
@@ -5150,6 +5448,8 @@
5150
5448
 
5151
5449
  :where(.gantt-table-td[data-in-range]) {
5152
5450
  background-color: var(--color-primary);
5451
+ /* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
5452
+ color: var(--color-primary-content);
5153
5453
  }
5154
5454
 
5155
5455
  :where(.gantt-table-td[data-in-range][data-milestone]) {
@@ -5172,3 +5472,334 @@
5172
5472
  :where(.time-zone-picker-option) {
5173
5473
  overflow-wrap: anywhere;
5174
5474
  }
5475
+
5476
+ /* ============================================================================
5477
+ * Overflow navigation — shared verbatim by all themes.
5478
+ *
5479
+ * The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
5480
+ * With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
5481
+ * (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
5482
+ * the links that do not fit into the More list. That list is in normal flow (position
5483
+ * static, never absolute), so opening it pushes the content below down and never covers it
5484
+ * (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
5485
+ * specificity at zero, so any consumer rule wins.
5486
+ * ========================================================================= */
5487
+
5488
+ :where(.navigation-menu-list) {
5489
+ display: flex;
5490
+ flex: 1 1 auto;
5491
+ flex-wrap: wrap;
5492
+ align-items: flex-start;
5493
+ gap: 0.25rem 0.5rem;
5494
+ min-inline-size: 0;
5495
+ margin: 0;
5496
+ padding: 0;
5497
+ list-style: none;
5498
+ }
5499
+
5500
+ :where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
5501
+ display: inline-block;
5502
+ min-inline-size: 24px;
5503
+ min-block-size: 24px;
5504
+ }
5505
+
5506
+ :where(.navigation-menu-more) {
5507
+ position: static;
5508
+ }
5509
+
5510
+ :where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
5511
+ display: none;
5512
+ }
5513
+
5514
+ :where(.navigation-menu-more-button) {
5515
+ min-inline-size: 24px;
5516
+ min-block-size: 24px;
5517
+ padding: 0.25rem 0.5rem;
5518
+ font: inherit;
5519
+ color: inherit;
5520
+ background: transparent;
5521
+ border: 1px solid currentcolor;
5522
+ cursor: pointer;
5523
+ }
5524
+
5525
+ :where(.navigation-menu-more-list) {
5526
+ position: static;
5527
+ margin: 0.25rem 0 0;
5528
+ padding: 0;
5529
+ list-style: none;
5530
+ }
5531
+
5532
+ /* ============================================================================
5533
+ * Container queries — shared verbatim by all themes.
5534
+ *
5535
+ * A component answers to the space it is given, not to the window: a summary
5536
+ * list in a narrow aside on a wide screen needs the narrow layout, which the
5537
+ * viewport query above cannot know. The three grail-layout regions are the
5538
+ * containers because their width comes from a grid track (`minmax(0, 1fr)`), so
5539
+ * inline-size containment cannot collapse them. `.card` is deliberately not a
5540
+ * container: in a shrink-to-fit parent (a flex row, an inline grid) containment
5541
+ * would collapse it to nothing. A component outside a grail region has no
5542
+ * container and keeps its wide layout. :where() keeps specificity at zero, so
5543
+ * any consumer rule wins.
5544
+ * ========================================================================= */
5545
+
5546
+ :where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
5547
+ container-type: inline-size;
5548
+ }
5549
+
5550
+ /* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
5551
+ window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
5552
+ Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
5553
+ (at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
5554
+ right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
5555
+ hidden, so all content stays reachable. */
5556
+ @media (max-width: 64rem) {
5557
+ :where(.grail-layout) {
5558
+ grid-template-areas:
5559
+ "header header"
5560
+ "left main"
5561
+ "right right"
5562
+ "footer footer";
5563
+ grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
5564
+ grid-template-rows: auto auto auto auto;
5565
+ }
5566
+ }
5567
+
5568
+ @media (max-width: 48rem) {
5569
+ :where(.grail-layout) {
5570
+ grid-template-areas:
5571
+ "header"
5572
+ "left"
5573
+ "main"
5574
+ "right"
5575
+ "footer";
5576
+ grid-template-columns: minmax(0, 1fr);
5577
+ grid-template-rows: auto auto auto auto auto;
5578
+ }
5579
+ }
5580
+
5581
+ @container (max-width: 30rem) {
5582
+ :where(.summary-list) {
5583
+ grid-template-columns: minmax(0, 1fr);
5584
+ row-gap: 0.25rem;
5585
+ }
5586
+
5587
+ :where(.kanban-table-td) {
5588
+ min-width: 10rem;
5589
+ }
5590
+
5591
+ :where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
5592
+ padding-inline: 0.5rem;
5593
+ }
5594
+ }
5595
+
5596
+ /* ============================================================================
5597
+ * Focus not obscured — shared verbatim by all themes.
5598
+ *
5599
+ * WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
5600
+ * entirely hidden by author-created content, such as a bar fixed to the top or
5601
+ * bottom of the viewport. The browser scrolls a focused control into view, but
5602
+ * only as far as the edge of the viewport, which is where a fixed bar sits.
5603
+ * `scroll-padding` moves that edge in by the bar's height.
5604
+ *
5605
+ * Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
5606
+ * theme's or an app's own fixed header, a mobile bottom navigation) sets the
5607
+ * bar's height on the root element:
5608
+ *
5609
+ * --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
5610
+ * --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
5611
+ *
5612
+ * With both bars, set both. The defaults are 0px, so a page without a fixed bar
5613
+ * is unchanged. Specificity is zero (`:where`), so an app's own
5614
+ * `scroll-padding` wins.
5615
+ * ========================================================================= */
5616
+
5617
+ :where(html) {
5618
+ scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
5619
+ }
5620
+
5621
+ /* ============================================================================
5622
+ * Text size and motion preferences — shared verbatim by all themes.
5623
+ *
5624
+ * The text-size-picker sets `data-text-size` on the root and the motion-picker
5625
+ * sets `data-motion`; neither styles anything itself. These rules are what make
5626
+ * the choice visible.
5627
+ *
5628
+ * Text size: the seven steps scale the root font size, and every theme sizes in
5629
+ * `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
5630
+ * own browser setting), and the scale is percentages of that, never pixels, so
5631
+ * a viewer who raised their browser font size keeps it. The steps below
5632
+ * `normal` are the viewer's explicit choice.
5633
+ *
5634
+ * Motion: `data-motion="reduce"` shortens every animation and transition to
5635
+ * 0.01ms instead of removing it. The end state still arrives and `animationend`
5636
+ * / `transitionend` still fire, so nothing that depends on them breaks and no
5637
+ * information is lost: a spinner's `role="status"` text, a disclosure's open
5638
+ * state and a toast's content are untouched. Scrolling is instant.
5639
+ * ========================================================================= */
5640
+
5641
+ :where(html[data-text-size="smallest"]) { font-size: 80%; }
5642
+ :where(html[data-text-size="smaller"]) { font-size: 90%; }
5643
+ :where(html[data-text-size="small"]) { font-size: 95%; }
5644
+ :where(html[data-text-size="normal"]) { font-size: 100%; }
5645
+ :where(html[data-text-size="large"]) { font-size: 110%; }
5646
+ :where(html[data-text-size="larger"]) { font-size: 125%; }
5647
+ :where(html[data-text-size="largest"]) { font-size: 150%; }
5648
+
5649
+ :where(html[data-motion="reduce"]) {
5650
+ scroll-behavior: auto;
5651
+ }
5652
+ :where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
5653
+ animation-duration: 0.01ms !important;
5654
+ animation-iteration-count: 1 !important;
5655
+ animation-delay: 0s !important;
5656
+ transition-duration: 0.01ms !important;
5657
+ transition-delay: 0s !important;
5658
+ scroll-behavior: auto !important;
5659
+ }
5660
+
5661
+ /* ============================================================================
5662
+ * Forced colours and contrast preference — shared verbatim by all themes.
5663
+ *
5664
+ * Forced colours (Windows High Contrast, `forced-colors: active`): the browser
5665
+ * replaces every colour with a system colour, which erases anything a control
5666
+ * told apart by background alone. These rules give such controls a border,
5667
+ * keep the focus ring, and mark selected and current items with `Highlight`
5668
+ * and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
5669
+ *
5670
+ * Contrast preference (`prefers-contrast: more`): a heavier border on controls
5671
+ * and a thicker focus ring. Colours are not changed here; a theme's colours are
5672
+ * its author's decision.
5673
+ * ========================================================================= */
5674
+
5675
+ @media (forced-colors: active) {
5676
+ :where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
5677
+ border: 1px solid ButtonBorder;
5678
+ }
5679
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
5680
+ outline: 3px solid Highlight;
5681
+ outline-offset: 2px;
5682
+ }
5683
+ :where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
5684
+ background: SelectedItem;
5685
+ color: SelectedItemText;
5686
+ forced-color-adjust: none;
5687
+ }
5688
+ :where([aria-current]:not([aria-current="false"])) {
5689
+ outline: 2px solid Highlight;
5690
+ outline-offset: -2px;
5691
+ }
5692
+ :where(:disabled, [aria-disabled="true"]) {
5693
+ border-color: GrayText;
5694
+ color: GrayText;
5695
+ }
5696
+ }
5697
+
5698
+ @media (prefers-contrast: more) {
5699
+ :where(button, input, select, textarea, [role="button"], [class$="-button"]) {
5700
+ border-width: 2px;
5701
+ border-style: solid;
5702
+ border-color: currentColor;
5703
+ }
5704
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
5705
+ outline-width: 3px;
5706
+ outline-offset: 2px;
5707
+ }
5708
+ }
5709
+
5710
+ /* ============================================================================
5711
+ * Writing systems — shared verbatim by all themes.
5712
+ *
5713
+ * A theme names its Latin font stack (`--lily-font-body-latin`). This section
5714
+ * builds `--lily-font-body` from it, with the system fonts of the element's
5715
+ * script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
5716
+ * Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
5717
+ * scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
5718
+ * Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
5719
+ * Chinese and Japanese but drawn differently, so the language picks the font,
5720
+ * not the script.
5721
+ *
5722
+ * `--lily-font-body` is re-declared on every element with a `lang`, so a
5723
+ * `<p lang="ja">` inside an English page gets Japanese fonts and a
5724
+ * `<span lang="en">` inside it gets none. A language not listed here keeps the
5725
+ * Latin stack, whose final generic family the browser resolves per language.
5726
+ *
5727
+ * `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
5728
+ * and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
5729
+ * Elements with a `lang` use it; the app's body text should too.
5730
+ *
5731
+ * To change a theme's font, set `--lily-font-body-latin`; to change a script's,
5732
+ * set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
5733
+ * itself still works on the element you set it on.
5734
+ * ========================================================================= */
5735
+
5736
+ :where(:root, [lang]) {
5737
+ --lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
5738
+ --lily-line-height-body: 1.5;
5739
+ }
5740
+
5741
+ :where([lang]) {
5742
+ --lily-font-script: initial;
5743
+ line-height: var(--lily-line-height-body);
5744
+ }
5745
+
5746
+ :where([lang|="zh"], [lang|="wuu"]) {
5747
+ --lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
5748
+ }
5749
+ :where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
5750
+ --lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
5751
+ }
5752
+ :where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
5753
+ --lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
5754
+ }
5755
+ :where([lang|="ja"]) {
5756
+ --lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
5757
+ }
5758
+ :where([lang|="ko"]) {
5759
+ --lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
5760
+ }
5761
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
5762
+ --lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
5763
+ }
5764
+ :where([lang|="ur"]) {
5765
+ --lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
5766
+ }
5767
+ :where([lang|="he"], [lang|="yi"]) {
5768
+ --lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
5769
+ }
5770
+ :where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
5771
+ --lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
5772
+ }
5773
+ :where([lang|="bn"], [lang|="as"]) {
5774
+ --lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
5775
+ }
5776
+ :where([lang|="gu"]) {
5777
+ --lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
5778
+ }
5779
+ :where([lang|="pa"]) {
5780
+ --lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
5781
+ }
5782
+ :where([lang|="kn"]) {
5783
+ --lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
5784
+ }
5785
+ :where([lang|="ta"]) {
5786
+ --lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
5787
+ }
5788
+ :where([lang|="te"]) {
5789
+ --lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
5790
+ }
5791
+ :where([lang|="th"]) {
5792
+ --lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
5793
+ }
5794
+ :where([lang|="lo"]) {
5795
+ --lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
5796
+ }
5797
+ :where([lang|="km"]) {
5798
+ --lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
5799
+ }
5800
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
5801
+ [lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
5802
+ [lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
5803
+ [lang|="lo"], [lang|="km"]) {
5804
+ --lily-line-height-body: 1.75;
5805
+ }