@lilydesignsystem/themes 0.6.0 → 0.6.1

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 +629 -22
  3. package/dist/acid.css +628 -21
  4. package/dist/adobe-spectrum.css +630 -23
  5. package/dist/ant-design.css +628 -21
  6. package/dist/aqua.css +630 -23
  7. package/dist/atlassian.css +628 -21
  8. package/dist/australia-agriculture-design-system.css +4569 -0
  9. package/dist/autumn.css +630 -23
  10. package/dist/black.css +629 -22
  11. package/dist/brazil-padrao-digital-de-governo.css +4569 -0
  12. package/dist/bumblebee.css +631 -24
  13. package/dist/business.css +629 -22
  14. package/dist/canada-government-of-canada-design-system.css +4569 -0
  15. package/dist/cappuccino.css +628 -21
  16. package/dist/caramellatte.css +629 -22
  17. package/dist/cmyk.css +628 -21
  18. package/dist/coffee.css +628 -21
  19. package/dist/corporate.css +632 -25
  20. package/dist/cupcake.css +629 -22
  21. package/dist/cyberpunk.css +628 -21
  22. package/dist/dark.css +630 -23
  23. package/dist/dim.css +628 -21
  24. package/dist/dracula.css +628 -21
  25. package/dist/emerald.css +629 -22
  26. package/dist/european-union-europa-component-library.css +4569 -0
  27. package/dist/excel.css +628 -21
  28. package/dist/fantasy.css +629 -22
  29. package/dist/fluent.css +628 -21
  30. package/dist/forest.css +628 -21
  31. package/dist/garden.css +630 -23
  32. package/dist/github-primer.css +628 -21
  33. package/dist/halloween.css +629 -22
  34. package/dist/ibm-carbon.css +628 -21
  35. package/dist/japan-digital-agency-design-system.css +4569 -0
  36. package/dist/lemonade.css +628 -21
  37. package/dist/light.css +629 -22
  38. package/dist/linear.css +628 -21
  39. package/dist/lofi.css +628 -21
  40. package/dist/luxury.css +628 -21
  41. package/dist/mozilla-protocol.css +630 -23
  42. package/dist/night.css +628 -21
  43. package/dist/nord.css +628 -21
  44. package/dist/notion.css +628 -21
  45. package/dist/pastel.css +635 -28
  46. package/dist/retro.css +632 -25
  47. package/dist/salesforce.css +628 -21
  48. package/dist/sap-fiori.css +628 -21
  49. package/dist/silk.css +629 -22
  50. package/dist/singapore-government-design-system.css +4569 -0
  51. package/dist/sunset.css +628 -21
  52. package/dist/synthwave.css +628 -21
  53. package/dist/united-kingdom-government-digital-service.css +628 -21
  54. package/dist/united-kingdom-national-health-service-england-for-patients.css +652 -32
  55. package/dist/united-kingdom-national-health-service-england-for-practitioners.css +650 -30
  56. package/dist/united-kingdom-national-health-service-scotland-for-patients.css +663 -40
  57. package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +658 -35
  58. package/dist/united-kingdom-national-health-service-wales-for-patients.css +663 -38
  59. package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +656 -31
  60. package/dist/united-states-web-design-system.css +629 -22
  61. package/dist/valentine.css +632 -25
  62. package/dist/vercel.css +628 -21
  63. package/dist/winter.css +629 -22
  64. package/dist/wireframe.css +628 -21
  65. package/index.md +8 -4
  66. package/package.json +2 -2
@@ -1,8 +1,10 @@
1
1
  /* ============================================================================
2
2
  * NHS England (United Kingdom) Design System
3
3
  * ----------------------------------------------------------------------------
4
- * Upstream tracked: NHS.UK frontend v9.x visual language (v10 is in
5
- * pre-release; re-check the palette when it goes stable). Independent
4
+ * Upstream tracked: nhsuk-frontend 10.7.1 (npm, published 2026-10-29;
5
+ * re-baselined from 9.x on 2026-10-29 against the package's Sass
6
+ * settings and CHANGELOG; v10 has been stable since 10.0.0 on
7
+ * 2025-08-26). Independent
6
8
  * implementation against Lily class hooks; not affiliated with or
7
9
  * endorsed by the NHS.
8
10
  *
@@ -13,9 +15,13 @@
13
15
  * - NHS frontend tokens (Sass source):
14
16
  * https://github.com/nhsuk/nhsuk-frontend
15
17
  * - Typography: Frutiger W01 (primary), Arial / system-ui fallback
16
- * - Base font size: 16px, modular scale (14 / 16 / 19 / 22 / 26 / 32 / 48 / 64)
17
- * - Spacing scale (px): 0, 4, 8, 12, 16, 24, 32, 40, 48, 64
18
- * - WCAG 2.2 AAA target; focus outline is 4px solid #FFEB3B over #212B32
18
+ * - Base font size: 16px; nhsuk-frontend 10 type scale points (tablet px):
19
+ * 14 / 16 / 19 / 22 / 26 / 36 / 48 / 64 (point 24 was removed in 10.0.0)
20
+ * - nhsuk-frontend 10 spacing points (px): 0, 4, 8, 16, 24, 32, 40, 48, 56, 64
21
+ * (unchanged from 9.x)
22
+ * - WCAG 2.2 AAA target. Upstream focus style (unchanged in v10): #FFEB3B
23
+ * fill with a 4px #212B32 bar (`$nhsuk-focus-width`); this theme's own
24
+ * focus ring is `--lily-focus-ring` below
19
25
  *
20
26
  * Brand palette (sRGB → OKLCH conversions used below)
21
27
  * NHS Blue #005EB8 primary brand colour
@@ -30,7 +36,9 @@
30
36
  * NHS White #FFFFFF page background
31
37
  * NHS Warm Yellow #FFB81C warning / focus indicator
32
38
  * NHS Emergency Red #DA291C error / destructive action
33
- * NHS Green #009639 success / confirmation
39
+ * NHS.UK Green #007F3B success / confirmation (nhsuk-frontend 10
40
+ * `$nhsuk-success-colour`; was NHS Identity
41
+ * green #009639 until 2026-10-29)
34
42
  * NHS Dark Green #006747 success hover
35
43
  *
36
44
  * Geometry rules (NHS frontend defaults)
@@ -113,9 +121,12 @@
113
121
  /* ---- Success (NHS Green)
114
122
  -------------------------------------------- */ /*
115
123
  Confirmation, completed-step, "you have been booked"
116
- panels. */ /* NHS Green #009639 — meets 4.5:1 against white
117
- when paired below. */
118
- --color-success: oklch(56% 0.16 145);
124
+ panels. */ /* NHS.UK frontend green #007F3B, nhsuk-frontend
125
+ 10.7.1 `$nhsuk-success-colour` (core/settings/_colours-
126
+ applied.scss, new in v10). Re-baselined 2026-10-29 from NHS
127
+ Identity green #009639, which gave white content 4.37:1
128
+ (below AA); white content is now 5.19:1. */
129
+ --color-success: oklch(52% 0.14 151);
119
130
  --color-success-content: oklch(100% 0 0);
120
131
  /* ---- Warning (NHS Warm Yellow)
121
132
  -------------------------------------- */ /* Caution
@@ -146,14 +157,24 @@
146
157
  /* Inner padding hints for selectors and fields (Lily sizing). */
147
158
  --size-selector: 0.25rem;
148
159
  --size-field: 0.25rem;
149
- /* Border width: 1px hairline, matching `$nhsuk-border-width-
150
- form`. */
160
+ /* Border width: 1px hairline, Lily's own hairline, not an
161
+ upstream value: nhsuk-frontend 10 has no `$nhsuk-border-
162
+ width-form`; its form controls use `$nhsuk-border-width-
163
+ form-element` (2px). */
151
164
  --border: 1px;
152
165
  /* Depth & noise off — NHS guidance avoids shadows and
153
166
  textures so */ /* the interface looks clinical, calm, and
154
167
  easy to read. */
155
168
  --depth: 0;
156
169
  --noise: 0;
170
+ /* Fluid inline gutter for page containers and the main
171
+ region: grows with the viewport from a 1rem floor to a 2rem
172
+ ceiling. Spacing only, never text. */
173
+ --space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
174
+ /* Fluid gap between sections (stacks and grids): grows with
175
+ the viewport from a 1rem floor to a 2rem ceiling. Spacing
176
+ only, never text. */
177
+ --space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
157
178
  }
158
179
 
159
180
  /* ----------------------------------------------------------------------------
@@ -252,7 +273,7 @@
252
273
  /* --- Typography ---------------------------------------------------- */
253
274
  /* Body font stack — system fonts first so consumers get a
254
275
  native-feeling baseline without shipping a web font. */
255
- --lily-font-body:
276
+ --lily-font-body-latin:
256
277
  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
257
278
  Arial, sans-serif;
258
279
  /* Monospaced font stack — used by code, kbd, identifiers, and
@@ -359,9 +380,12 @@
359
380
  }
360
381
 
361
382
  /* Invalid input — red border. The `aria-invalid="true"` attribute is the
362
- ARIA contract; pairing it with a colour change keeps WCAG 1.4.1
363
- (no colour-only meaning) honest because the ARIA state is also there. */
364
- :where([class$="-input"], .input)[aria-invalid="true"] {
383
+ ARIA contract (server-rendered errors); `:user-invalid` is the native
384
+ state that matches only after the user has interacted, so a required
385
+ field is not styled invalid on load. Pairing a colour change with the
386
+ ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
387
+ :where([class$="-input"], .input)[aria-invalid="true"],
388
+ :where([class$="-input"], .input):user-invalid {
365
389
  border-color: var(--color-error);
366
390
  }
367
391
 
@@ -1505,13 +1529,17 @@
1505
1529
  padding: 0.75rem 1rem;
1506
1530
  }
1507
1531
 
1508
- /* Sticky promo — sits at the very top of the viewport on scroll. */
1532
+ /* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
1533
+ the component's own bottom: 0 it would stretch over the whole page and take every click. */
1509
1534
  :where(.sticky-promo-banner) {
1510
1535
  position: sticky;
1511
- inset-block-start: 0;
1512
1536
  z-index: 10;
1513
1537
  }
1514
1538
 
1539
+ :where(.sticky-promo-banner:not([data-position="bottom"])) {
1540
+ inset-block-start: 0;
1541
+ }
1542
+
1515
1543
  /* Error message — inline form-validation message. */
1516
1544
  :where(.error-message) {
1517
1545
  color: var(--lily-error-text);
@@ -1591,7 +1619,7 @@
1591
1619
  display: block;
1592
1620
  width: 100%;
1593
1621
  margin-inline: auto;
1594
- padding-inline: 1rem;
1622
+ padding-inline: var(--space-fluid-gutter);
1595
1623
  box-sizing: border-box;
1596
1624
  }
1597
1625
  /* Fixed-width — caps at a comfortable reading width (~1152px). */
@@ -1611,11 +1639,11 @@
1611
1639
  :where(.flex-stack) {
1612
1640
  display: flex;
1613
1641
  flex-direction: column;
1614
- gap: 1rem;
1642
+ gap: var(--space-fluid-section);
1615
1643
  }
1616
1644
  :where(.grid) {
1617
1645
  display: grid;
1618
- gap: 1rem;
1646
+ gap: var(--space-fluid-section);
1619
1647
  }
1620
1648
  :where(.masonry) {
1621
1649
  column-count: 3;
@@ -1670,7 +1698,7 @@
1670
1698
  :where(.content-block) {
1671
1699
  max-width: var(--content-width-normal);
1672
1700
  margin-inline: auto;
1673
- padding-inline: 1rem;
1701
+ padding-inline: var(--space-fluid-gutter);
1674
1702
  box-sizing: border-box;
1675
1703
  }
1676
1704
  :where(.content-block[data-width="narrower"]) {
@@ -1688,7 +1716,8 @@
1688
1716
 
1689
1717
  /* --- Grail layout (5-region responsive page shell) --------------------- */
1690
1718
  /* Header spans the top; left-aside / main / right-aside fill the middle;
1691
- footer spans the bottom. At ≤768px the asides drop below the main. */
1719
+ footer spans the bottom. The collapse as the window narrows is in the shared
1720
+ container section at the end of this file. */
1692
1721
  :where(.grail-layout) {
1693
1722
  display: grid;
1694
1723
  min-height: 100vh;
@@ -1728,15 +1757,7 @@
1728
1757
  }
1729
1758
  /* Main content area — primary surface, more generous padding. */
1730
1759
  :where(.grail-layout-center-main) {
1731
- padding: 1.5rem;
1732
- }
1733
- /* Mobile breakpoint — collapse to a single column, stacking the regions. */
1734
- @media (max-width: 48rem) {
1735
- :where(.grail-layout) {
1736
- grid-template-areas: "header" "main" "left" "right" "footer";
1737
- grid-template-columns: 1fr;
1738
- grid-template-rows: auto auto auto auto auto;
1739
- }
1760
+ padding: var(--space-fluid-gutter);
1740
1761
  }
1741
1762
 
1742
1763
  /* Standalone semantic header / footer landmarks. */
@@ -1827,6 +1848,15 @@
1827
1848
  /* Drawers — side panels (right edge by default; RTL-aware via logical
1828
1849
  properties). Sit above the overlay container (z-index 101). */
1829
1850
  :where(.drawer, .slide-out-drawer, .sheet) {
1851
+ /* These are <dialog> elements opened with showModal() (P18-T6): undo the
1852
+ browser's centred-box defaults so the panel docks to the edge. */
1853
+ margin: 0;
1854
+ border: 0;
1855
+ inset-inline-start: auto;
1856
+ max-block-size: none;
1857
+ max-inline-size: none;
1858
+ block-size: 100%;
1859
+ box-sizing: border-box;
1830
1860
  position: fixed;
1831
1861
  inset-block: 0;
1832
1862
  inset-inline-end: 0;
@@ -1839,6 +1869,10 @@
1839
1869
  z-index: 101;
1840
1870
  }
1841
1871
 
1872
+ :where(.drawer, .slide-out-drawer, .sheet)::backdrop {
1873
+ background-color: color-mix(in oklch, black 50%, transparent);
1874
+ }
1875
+
1842
1876
  /* ==========================================================================
1843
1877
  * Menus
1844
1878
  * ====================================================================== */
@@ -1891,7 +1925,7 @@
1891
1925
  gap: 0.25rem;
1892
1926
  }
1893
1927
  /* Hamburger — bordered icon-button. */
1894
- :where(.hamburger-menu) {
1928
+ :where(.hamburger-menu > button) {
1895
1929
  display: inline-flex;
1896
1930
  align-items: center;
1897
1931
  justify-content: center;
@@ -2867,6 +2901,50 @@
2867
2901
  }
2868
2902
  }
2869
2903
 
2904
+ /* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
2905
+ browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
2906
+ where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
2907
+ open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
2908
+ hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
2909
+ `position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
2910
+ position-area: with no anchor, position-area does nothing and a static position can be off screen. */
2911
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
2912
+ display: none;
2913
+ }
2914
+
2915
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
2916
+ display: none;
2917
+ }
2918
+
2919
+ @supports (position-area: block-end) {
2920
+ :where(.cascader-trigger) { anchor-name: --lily-cascader; }
2921
+ :where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
2922
+ :where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
2923
+ :where(.combobox > input) { anchor-name: --lily-combobox; }
2924
+ :where(.cascader-panel) { position-anchor: --lily-cascader; }
2925
+ :where(.tree-select-panel) { position-anchor: --lily-tree-select; }
2926
+ :where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
2927
+ :where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
2928
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
2929
+ position: fixed;
2930
+ inset: auto;
2931
+ margin: 0;
2932
+ position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
2933
+ width: max-content;
2934
+ max-width: calc(100vw - 1rem);
2935
+ }
2936
+ :where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
2937
+ inset-block-start: anchor(end, 25%);
2938
+ inset-inline-start: anchor(start, 25%);
2939
+ }
2940
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
2941
+ position-area: block-end span-inline-end;
2942
+ }
2943
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
2944
+ min-inline-size: anchor-size(inline);
2945
+ }
2946
+ }
2947
+
2870
2948
  :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2871
2949
  > :where(
2872
2950
  .theme-picker-option,
@@ -3823,6 +3901,81 @@
3823
3901
  min-block-size: 24px;
3824
3902
  }
3825
3903
 
3904
+ /* ============================================================================
3905
+ * Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
3906
+ *
3907
+ * Where the primary pointer is coarse (a finger), interactive hooks are at least
3908
+ * 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
3909
+ * buttons, form fields, checkboxes and radios, and the link-shaped navigation
3910
+ * hooks. Links inside running text are exempt, so bare `a` is not listed. The
3911
+ * query is the capability, never a viewport width. :where() keeps specificity
3912
+ * at zero, so any consumer rule still wins.
3913
+ * ========================================================================= */
3914
+
3915
+ @media (pointer: coarse) {
3916
+ :where(button,
3917
+ [role="button"],
3918
+ [role="tab"],
3919
+ [role="option"],
3920
+ [role="menuitem"],
3921
+ [class*="-picker-button"],
3922
+ summary,
3923
+ input:not([type="hidden"]),
3924
+ select,
3925
+ textarea,
3926
+ .action-link,
3927
+ .back-link,
3928
+ .breadcrumb-list-item > a,
3929
+ .pagination-list-item > a,
3930
+ .contents-list-item > a,
3931
+ .section-list-item > a) {
3932
+ min-inline-size: 44px;
3933
+ min-block-size: 44px;
3934
+ }
3935
+ }
3936
+
3937
+ /* ============================================================================
3938
+ * Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
3939
+ *
3940
+ * --lily-brand is the identity's decorative colour: a header band, a rule, a
3941
+ * logo background. It is NEVER a text colour or a control's boundary, because a
3942
+ * brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
3943
+ * text drawn on it. By default they follow the theme's primary pair, which every
3944
+ * theme keeps readable; an adopter whose brand colour is lighter or darker sets
3945
+ * both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
3946
+ * content pairs (--color-base-content, --lily-error-text and so on).
3947
+ * ========================================================================== */
3948
+
3949
+ :where(:root) {
3950
+ --lily-brand: var(--color-primary);
3951
+ --lily-on-brand: var(--color-primary-content);
3952
+ }
3953
+
3954
+ /* ============================================================================
3955
+ * Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
3956
+ *
3957
+ * The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
3958
+ * adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
3959
+ * and no clear-space rule, because national and local guidelines disagree: a
3960
+ * theme or the adopter sets --lily-logo-clear-space (padding around the mark)
3961
+ * and --lily-logo-min-size (its smallest inline size). Both are unset by
3962
+ * default, so nothing changes until one is set.
3963
+ * ========================================================================== */
3964
+
3965
+ @layer lily {
3966
+ :where([data-lily-logo]) {
3967
+ display: inline-block;
3968
+ padding: var(--lily-logo-clear-space, 0);
3969
+ }
3970
+
3971
+ :where([data-lily-logo] > img, [data-lily-logo] > svg) {
3972
+ display: block;
3973
+ min-inline-size: var(--lily-logo-min-size, 0);
3974
+ max-inline-size: 100%;
3975
+ block-size: auto;
3976
+ }
3977
+ }
3978
+
3826
3979
  /* ============================================================================
3827
3980
  * Overflow guards — narrow-viewport safety, shared verbatim by all themes.
3828
3981
  *
@@ -3851,6 +4004,140 @@
3851
4004
  overflow-wrap: anywhere;
3852
4005
  }
3853
4006
 
4007
+ /* ============================================================================
4008
+ * Scoped overflow — shared verbatim by all themes.
4009
+ *
4010
+ * Long unbroken strings (a national identifier, an email address, a URL) and
4011
+ * grid/flex tracks that refuse to shrink are the usual causes of horizontal
4012
+ * page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
4013
+ * `overflow-wrap: anywhere` on the places a long value lands (table cells are
4014
+ * covered by Overflow guards above), and `min-inline-size: 0` on the direct
4015
+ * children of Lily's grid and flex containers so a child can shrink below its
4016
+ * content. The identifier `-view` list below is the catalog's 70 national
4017
+ * identifier views (components-categories.tsv); bin/check-theme fails when it
4018
+ * drifts from the catalog. :where() keeps specificity at zero.
4019
+ * ========================================================================= */
4020
+
4021
+ :where(
4022
+ .alba-community-health-index-view,
4023
+ .australia-individual-healthcare-identifier-view,
4024
+ .belgique-numero-de-registre-national-view,
4025
+ .bulgaria-edinen-grazhdanski-nomer-view,
4026
+ .cesko-cestovni-pas-view,
4027
+ .cesko-rodne-cislo-view,
4028
+ .cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
4029
+ .kypros-national-passport-number-view,
4030
+ .danmark-personnummer-view,
4031
+ .deutschland-krankenversichertennummer-view,
4032
+ .eesti-isikukood-view,
4033
+ .ellada-dematerialised-securities-system-view,
4034
+ .england-national-health-service-number-view,
4035
+ .espana-codigo-de-identificacion-fiscal-view,
4036
+ .espana-tarjeta-sanitaria-individual-view,
4037
+ .france-numero-d-identification-au-repertoire-view,
4038
+ .hrvatska-osobni-identifikacijski-broj-view,
4039
+ .eire-individual-health-identifier-view,
4040
+ .island-kennitala-view,
4041
+ .italia-codice-fiscale-view,
4042
+ .latvija-personas-kods-view,
4043
+ .liechtenstein-national-identity-card-number-view,
4044
+ .liechtenstein-passport-number-view,
4045
+ .lietuva-asmens-kodas-view,
4046
+ .lietuva-pasas-view,
4047
+ .malta-national-identification-number-view,
4048
+ .malta-passport-number-view,
4049
+ .nederland-burgerservice-nummer-view,
4050
+ .nederland-identiteitskaart-nummer-view,
4051
+ .nederland-paspoort-nummer-view,
4052
+ .norge-fodselsnummer-view,
4053
+ .tuaisceart-eireann-health-and-care-number-view,
4054
+ .polska-numer-identyfikacji-podatkowej-view,
4055
+ .polska-pesel-view,
4056
+ .portugal-numero-de-identificacao-fiscal-view,
4057
+ .portugal-passaporte-view,
4058
+ .romania-cod-numeric-personal-view,
4059
+ .romania-pasaport-view,
4060
+ .slovenija-emso-view,
4061
+ .slovensko-pas-view,
4062
+ .slovensko-rodne-cislo-view,
4063
+ .suomi-henkilotunnus-view,
4064
+ .sverige-personnummer-view,
4065
+ .iban-view,
4066
+ .united-kingdom-national-health-service-number-view,
4067
+ .united-kingdom-national-insurance-number-view,
4068
+ .united-states-social-security-number-view,
4069
+ .aotearoa-national-health-index-view,
4070
+ .pilipinas-philhealth-identification-number-view,
4071
+ .brasil-cartao-nacional-de-saude-view,
4072
+ .schweiz-ahv-nummer-view,
4073
+ .canada-social-insurance-number-view,
4074
+ .hanguk-jumin-deungnok-beonho-view,
4075
+ .nihon-kojin-bango-view,
4076
+ .bharat-aadhaar-view,
4077
+ .yisrael-teudat-zehut-view,
4078
+ .south-africa-identity-number-view,
4079
+ .mexico-clave-unica-de-registro-de-poblacion-view,
4080
+ .singapore-national-registration-identity-card-view,
4081
+ .osterreich-sozialversicherungsnummer-view,
4082
+ .magyarorszag-taj-szam-view,
4083
+ .luxembourg-matricule-view,
4084
+ .zhongguo-jumin-shenfenzheng-haoma-view,
4085
+ .rossiya-snils-view,
4086
+ .turkiye-tc-kimlik-numarasi-view,
4087
+ .argentina-codigo-unico-de-identificacion-laboral-view,
4088
+ .ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
4089
+ .indonesia-nomor-induk-kependudukan-view,
4090
+ .prathet-thai-lek-prajam-tua-prachachon-view,
4091
+ .chile-rol-unico-nacional-view,
4092
+ .taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
4093
+ .hong-kong-identity-card-view,
4094
+ .iran-kod-e-melli-view,
4095
+ .as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
4096
+ .malaysia-kad-pengenalan-view,
4097
+ .viet-nam-can-cuoc-cong-dan-view,
4098
+ .pakistan-computerized-national-identity-card-view,
4099
+ .uruguay-cedula-de-identidad-view,
4100
+ .ecuador-cedula-de-identidad-view,
4101
+ .colombia-cedula-de-ciudadania-view,
4102
+ .australia-tax-file-number-view,
4103
+ .nigeria-national-identification-number-view,
4104
+ .misr-al-raqm-al-qawmi-view
4105
+ ) {
4106
+ overflow-wrap: anywhere;
4107
+ }
4108
+
4109
+ /* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
4110
+ :where(.summary-list, .summary-list-item, .description-list) {
4111
+ overflow-wrap: anywhere;
4112
+ }
4113
+
4114
+ :where(
4115
+ .grid,
4116
+ .flex-stack,
4117
+ .grail-layout,
4118
+ .summary-list,
4119
+ .summary-list-item,
4120
+ .description-list,
4121
+ .form,
4122
+ .editable-form,
4123
+ .field,
4124
+ .input-group,
4125
+ .button-group,
4126
+ .radio-group,
4127
+ .checkbox-group,
4128
+ .toggle-group,
4129
+ .tag-group,
4130
+ .split-view,
4131
+ .photo-pack,
4132
+ .data-filter-form,
4133
+ .action-bar,
4134
+ .tool-bar,
4135
+ .menu-bar,
4136
+ .tab-bar
4137
+ ) > :where(*) {
4138
+ min-inline-size: 0;
4139
+ }
4140
+
3854
4141
  /* ============================================================================
3855
4142
  * Helper packages — layout and look, shared verbatim by all themes.
3856
4143
  *
@@ -3978,6 +4265,8 @@
3978
4265
 
3979
4266
  :where(.gantt-table-td[data-in-range]) {
3980
4267
  background-color: var(--color-primary);
4268
+ /* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
4269
+ color: var(--color-primary-content);
3981
4270
  }
3982
4271
 
3983
4272
  :where(.gantt-table-td[data-in-range][data-milestone]) {
@@ -4000,3 +4289,334 @@
4000
4289
  :where(.time-zone-picker-option) {
4001
4290
  overflow-wrap: anywhere;
4002
4291
  }
4292
+
4293
+ /* ============================================================================
4294
+ * Overflow navigation — shared verbatim by all themes.
4295
+ *
4296
+ * The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
4297
+ * With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
4298
+ * (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
4299
+ * the links that do not fit into the More list. That list is in normal flow (position
4300
+ * static, never absolute), so opening it pushes the content below down and never covers it
4301
+ * (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
4302
+ * specificity at zero, so any consumer rule wins.
4303
+ * ========================================================================= */
4304
+
4305
+ :where(.navigation-menu-list) {
4306
+ display: flex;
4307
+ flex: 1 1 auto;
4308
+ flex-wrap: wrap;
4309
+ align-items: flex-start;
4310
+ gap: 0.25rem 0.5rem;
4311
+ min-inline-size: 0;
4312
+ margin: 0;
4313
+ padding: 0;
4314
+ list-style: none;
4315
+ }
4316
+
4317
+ :where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
4318
+ display: inline-block;
4319
+ min-inline-size: 24px;
4320
+ min-block-size: 24px;
4321
+ }
4322
+
4323
+ :where(.navigation-menu-more) {
4324
+ position: static;
4325
+ }
4326
+
4327
+ :where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
4328
+ display: none;
4329
+ }
4330
+
4331
+ :where(.navigation-menu-more-button) {
4332
+ min-inline-size: 24px;
4333
+ min-block-size: 24px;
4334
+ padding: 0.25rem 0.5rem;
4335
+ font: inherit;
4336
+ color: inherit;
4337
+ background: transparent;
4338
+ border: 1px solid currentcolor;
4339
+ cursor: pointer;
4340
+ }
4341
+
4342
+ :where(.navigation-menu-more-list) {
4343
+ position: static;
4344
+ margin: 0.25rem 0 0;
4345
+ padding: 0;
4346
+ list-style: none;
4347
+ }
4348
+
4349
+ /* ============================================================================
4350
+ * Container queries — shared verbatim by all themes.
4351
+ *
4352
+ * A component answers to the space it is given, not to the window: a summary
4353
+ * list in a narrow aside on a wide screen needs the narrow layout, which the
4354
+ * viewport query above cannot know. The three grail-layout regions are the
4355
+ * containers because their width comes from a grid track (`minmax(0, 1fr)`), so
4356
+ * inline-size containment cannot collapse them. `.card` is deliberately not a
4357
+ * container: in a shrink-to-fit parent (a flex row, an inline grid) containment
4358
+ * would collapse it to nothing. A component outside a grail region has no
4359
+ * container and keeps its wide layout. :where() keeps specificity at zero, so
4360
+ * any consumer rule wins.
4361
+ * ========================================================================= */
4362
+
4363
+ :where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
4364
+ container-type: inline-size;
4365
+ }
4366
+
4367
+ /* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
4368
+ window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
4369
+ Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
4370
+ (at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
4371
+ right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
4372
+ hidden, so all content stays reachable. */
4373
+ @media (max-width: 64rem) {
4374
+ :where(.grail-layout) {
4375
+ grid-template-areas:
4376
+ "header header"
4377
+ "left main"
4378
+ "right right"
4379
+ "footer footer";
4380
+ grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
4381
+ grid-template-rows: auto auto auto auto;
4382
+ }
4383
+ }
4384
+
4385
+ @media (max-width: 48rem) {
4386
+ :where(.grail-layout) {
4387
+ grid-template-areas:
4388
+ "header"
4389
+ "left"
4390
+ "main"
4391
+ "right"
4392
+ "footer";
4393
+ grid-template-columns: minmax(0, 1fr);
4394
+ grid-template-rows: auto auto auto auto auto;
4395
+ }
4396
+ }
4397
+
4398
+ @container (max-width: 30rem) {
4399
+ :where(.summary-list) {
4400
+ grid-template-columns: minmax(0, 1fr);
4401
+ row-gap: 0.25rem;
4402
+ }
4403
+
4404
+ :where(.kanban-table-td) {
4405
+ min-width: 10rem;
4406
+ }
4407
+
4408
+ :where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
4409
+ padding-inline: 0.5rem;
4410
+ }
4411
+ }
4412
+
4413
+ /* ============================================================================
4414
+ * Focus not obscured — shared verbatim by all themes.
4415
+ *
4416
+ * WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
4417
+ * entirely hidden by author-created content, such as a bar fixed to the top or
4418
+ * bottom of the viewport. The browser scrolls a focused control into view, but
4419
+ * only as far as the edge of the viewport, which is where a fixed bar sits.
4420
+ * `scroll-padding` moves that edge in by the bar's height.
4421
+ *
4422
+ * Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
4423
+ * theme's or an app's own fixed header, a mobile bottom navigation) sets the
4424
+ * bar's height on the root element:
4425
+ *
4426
+ * --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
4427
+ * --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
4428
+ *
4429
+ * With both bars, set both. The defaults are 0px, so a page without a fixed bar
4430
+ * is unchanged. Specificity is zero (`:where`), so an app's own
4431
+ * `scroll-padding` wins.
4432
+ * ========================================================================= */
4433
+
4434
+ :where(html) {
4435
+ scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
4436
+ }
4437
+
4438
+ /* ============================================================================
4439
+ * Text size and motion preferences — shared verbatim by all themes.
4440
+ *
4441
+ * The text-size-picker sets `data-text-size` on the root and the motion-picker
4442
+ * sets `data-motion`; neither styles anything itself. These rules are what make
4443
+ * the choice visible.
4444
+ *
4445
+ * Text size: the seven steps scale the root font size, and every theme sizes in
4446
+ * `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
4447
+ * own browser setting), and the scale is percentages of that, never pixels, so
4448
+ * a viewer who raised their browser font size keeps it. The steps below
4449
+ * `normal` are the viewer's explicit choice.
4450
+ *
4451
+ * Motion: `data-motion="reduce"` shortens every animation and transition to
4452
+ * 0.01ms instead of removing it. The end state still arrives and `animationend`
4453
+ * / `transitionend` still fire, so nothing that depends on them breaks and no
4454
+ * information is lost: a spinner's `role="status"` text, a disclosure's open
4455
+ * state and a toast's content are untouched. Scrolling is instant.
4456
+ * ========================================================================= */
4457
+
4458
+ :where(html[data-text-size="smallest"]) { font-size: 80%; }
4459
+ :where(html[data-text-size="smaller"]) { font-size: 90%; }
4460
+ :where(html[data-text-size="small"]) { font-size: 95%; }
4461
+ :where(html[data-text-size="normal"]) { font-size: 100%; }
4462
+ :where(html[data-text-size="large"]) { font-size: 110%; }
4463
+ :where(html[data-text-size="larger"]) { font-size: 125%; }
4464
+ :where(html[data-text-size="largest"]) { font-size: 150%; }
4465
+
4466
+ :where(html[data-motion="reduce"]) {
4467
+ scroll-behavior: auto;
4468
+ }
4469
+ :where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
4470
+ animation-duration: 0.01ms !important;
4471
+ animation-iteration-count: 1 !important;
4472
+ animation-delay: 0s !important;
4473
+ transition-duration: 0.01ms !important;
4474
+ transition-delay: 0s !important;
4475
+ scroll-behavior: auto !important;
4476
+ }
4477
+
4478
+ /* ============================================================================
4479
+ * Forced colours and contrast preference — shared verbatim by all themes.
4480
+ *
4481
+ * Forced colours (Windows High Contrast, `forced-colors: active`): the browser
4482
+ * replaces every colour with a system colour, which erases anything a control
4483
+ * told apart by background alone. These rules give such controls a border,
4484
+ * keep the focus ring, and mark selected and current items with `Highlight`
4485
+ * and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
4486
+ *
4487
+ * Contrast preference (`prefers-contrast: more`): a heavier border on controls
4488
+ * and a thicker focus ring. Colours are not changed here; a theme's colours are
4489
+ * its author's decision.
4490
+ * ========================================================================= */
4491
+
4492
+ @media (forced-colors: active) {
4493
+ :where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
4494
+ border: 1px solid ButtonBorder;
4495
+ }
4496
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
4497
+ outline: 3px solid Highlight;
4498
+ outline-offset: 2px;
4499
+ }
4500
+ :where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
4501
+ background: SelectedItem;
4502
+ color: SelectedItemText;
4503
+ forced-color-adjust: none;
4504
+ }
4505
+ :where([aria-current]:not([aria-current="false"])) {
4506
+ outline: 2px solid Highlight;
4507
+ outline-offset: -2px;
4508
+ }
4509
+ :where(:disabled, [aria-disabled="true"]) {
4510
+ border-color: GrayText;
4511
+ color: GrayText;
4512
+ }
4513
+ }
4514
+
4515
+ @media (prefers-contrast: more) {
4516
+ :where(button, input, select, textarea, [role="button"], [class$="-button"]) {
4517
+ border-width: 2px;
4518
+ border-style: solid;
4519
+ border-color: currentColor;
4520
+ }
4521
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
4522
+ outline-width: 3px;
4523
+ outline-offset: 2px;
4524
+ }
4525
+ }
4526
+
4527
+ /* ============================================================================
4528
+ * Writing systems — shared verbatim by all themes.
4529
+ *
4530
+ * A theme names its Latin font stack (`--lily-font-body-latin`). This section
4531
+ * builds `--lily-font-body` from it, with the system fonts of the element's
4532
+ * script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
4533
+ * Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
4534
+ * scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
4535
+ * Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
4536
+ * Chinese and Japanese but drawn differently, so the language picks the font,
4537
+ * not the script.
4538
+ *
4539
+ * `--lily-font-body` is re-declared on every element with a `lang`, so a
4540
+ * `<p lang="ja">` inside an English page gets Japanese fonts and a
4541
+ * `<span lang="en">` inside it gets none. A language not listed here keeps the
4542
+ * Latin stack, whose final generic family the browser resolves per language.
4543
+ *
4544
+ * `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
4545
+ * and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
4546
+ * Elements with a `lang` use it; the app's body text should too.
4547
+ *
4548
+ * To change a theme's font, set `--lily-font-body-latin`; to change a script's,
4549
+ * set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
4550
+ * itself still works on the element you set it on.
4551
+ * ========================================================================= */
4552
+
4553
+ :where(:root, [lang]) {
4554
+ --lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
4555
+ --lily-line-height-body: 1.5;
4556
+ }
4557
+
4558
+ :where([lang]) {
4559
+ --lily-font-script: initial;
4560
+ line-height: var(--lily-line-height-body);
4561
+ }
4562
+
4563
+ :where([lang|="zh"], [lang|="wuu"]) {
4564
+ --lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
4565
+ }
4566
+ :where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
4567
+ --lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
4568
+ }
4569
+ :where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
4570
+ --lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
4571
+ }
4572
+ :where([lang|="ja"]) {
4573
+ --lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
4574
+ }
4575
+ :where([lang|="ko"]) {
4576
+ --lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
4577
+ }
4578
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
4579
+ --lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
4580
+ }
4581
+ :where([lang|="ur"]) {
4582
+ --lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
4583
+ }
4584
+ :where([lang|="he"], [lang|="yi"]) {
4585
+ --lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
4586
+ }
4587
+ :where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
4588
+ --lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
4589
+ }
4590
+ :where([lang|="bn"], [lang|="as"]) {
4591
+ --lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
4592
+ }
4593
+ :where([lang|="gu"]) {
4594
+ --lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
4595
+ }
4596
+ :where([lang|="pa"]) {
4597
+ --lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
4598
+ }
4599
+ :where([lang|="kn"]) {
4600
+ --lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
4601
+ }
4602
+ :where([lang|="ta"]) {
4603
+ --lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
4604
+ }
4605
+ :where([lang|="te"]) {
4606
+ --lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
4607
+ }
4608
+ :where([lang|="th"]) {
4609
+ --lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
4610
+ }
4611
+ :where([lang|="lo"]) {
4612
+ --lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
4613
+ }
4614
+ :where([lang|="km"]) {
4615
+ --lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
4616
+ }
4617
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
4618
+ [lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
4619
+ [lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
4620
+ [lang|="lo"], [lang|="km"]) {
4621
+ --lily-line-height-body: 1.75;
4622
+ }