@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
@@ -30,20 +30,20 @@
30
30
  --color-base-300: oklch(89% 0.061 343.231);
31
31
  /* Primary text colour. High-contrast against base-100 to meet
32
32
  WCAG contrast ratios for body copy. */
33
- --color-base-content: oklch(52% 0.223 3.958);
33
+ --color-base-content: oklch(48% 0.223 3.958);
34
34
  /* Primary brand / action colour. Used on primary buttons,
35
35
  active navigation items, selected states, and the focus
36
36
  ring. */
37
37
  --color-primary: oklch(65% 0.241 354.308);
38
38
  /* Foreground colour used over `--color-primary` fills (so
39
39
  primary buttons retain a guaranteed contrast ratio). */
40
- --color-primary-content: oklch(100% 0 0);
40
+ --color-primary-content: #000000;
41
41
  /* Secondary brand colour. Pressed/hover state for primary
42
42
  buttons and visited links; also drives the secondary chrome
43
43
  family. */
44
44
  --color-secondary: oklch(62% 0.265 303.9);
45
45
  /* Foreground colour used over `--color-secondary` fills. */
46
- --color-secondary-content: oklch(97% 0.014 308.299);
46
+ --color-secondary-content: #000000;
47
47
  /* Accent colour — used sparingly for emphasis, the AI label,
48
48
  illustrations, and tertiary call-outs. */
49
49
  --color-accent: oklch(82% 0.111 230.318);
@@ -78,7 +78,7 @@
78
78
  red RAG status. */
79
79
  --color-error: oklch(63% 0.237 25.331);
80
80
  /* Foreground colour used over `--color-error` fills. */
81
- --color-error-content: oklch(97% 0.013 17.38);
81
+ --color-error-content: #000000;
82
82
  /* Smallest corner radius. Applied to chips, badges, switches,
83
83
  and radio/checkbox containers (mapped to `--lily-radius-
84
84
  sm`). */
@@ -111,6 +111,14 @@
111
111
  want to layer a subtle texture; the baseline rules do not
112
112
  consume it. */
113
113
  --noise: 0;
114
+ /* Fluid inline gutter for page containers and the main
115
+ region: grows with the viewport from a 1rem floor to a 2rem
116
+ ceiling. Spacing only, never text. */
117
+ --space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
118
+ /* Fluid gap between sections (stacks and grids): grows with
119
+ the viewport from a 1rem floor to a 2rem ceiling. Spacing
120
+ only, never text. */
121
+ --space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
114
122
  }
115
123
 
116
124
  /* ----------------------------------------------------------------------------
@@ -212,7 +220,7 @@
212
220
  /* --- Typography ---------------------------------------------------- */
213
221
  /* Body font stack — system fonts first so consumers get a
214
222
  native-feeling baseline without shipping a web font. */
215
- --lily-font-body:
223
+ --lily-font-body-latin:
216
224
  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
217
225
  Arial, sans-serif;
218
226
  /* Monospaced font stack — used by code, kbd, identifiers, and
@@ -319,9 +327,12 @@
319
327
  }
320
328
 
321
329
  /* Invalid input — red border. The `aria-invalid="true"` attribute is the
322
- ARIA contract; pairing it with a colour change keeps WCAG 1.4.1
323
- (no colour-only meaning) honest because the ARIA state is also there. */
324
- :where([class$="-input"], .input)[aria-invalid="true"] {
330
+ ARIA contract (server-rendered errors); `:user-invalid` is the native
331
+ state that matches only after the user has interacted, so a required
332
+ field is not styled invalid on load. Pairing a colour change with the
333
+ ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
334
+ :where([class$="-input"], .input)[aria-invalid="true"],
335
+ :where([class$="-input"], .input):user-invalid {
325
336
  border-color: var(--color-error);
326
337
  }
327
338
 
@@ -1465,13 +1476,17 @@
1465
1476
  padding: 0.75rem 1rem;
1466
1477
  }
1467
1478
 
1468
- /* Sticky promo — sits at the very top of the viewport on scroll. */
1479
+ /* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
1480
+ the component's own bottom: 0 it would stretch over the whole page and take every click. */
1469
1481
  :where(.sticky-promo-banner) {
1470
1482
  position: sticky;
1471
- inset-block-start: 0;
1472
1483
  z-index: 10;
1473
1484
  }
1474
1485
 
1486
+ :where(.sticky-promo-banner:not([data-position="bottom"])) {
1487
+ inset-block-start: 0;
1488
+ }
1489
+
1475
1490
  /* Error message — inline form-validation message. */
1476
1491
  :where(.error-message) {
1477
1492
  color: var(--lily-error-text);
@@ -1551,7 +1566,7 @@
1551
1566
  display: block;
1552
1567
  width: 100%;
1553
1568
  margin-inline: auto;
1554
- padding-inline: 1rem;
1569
+ padding-inline: var(--space-fluid-gutter);
1555
1570
  box-sizing: border-box;
1556
1571
  }
1557
1572
  /* Fixed-width — caps at a comfortable reading width (~1152px). */
@@ -1571,11 +1586,11 @@
1571
1586
  :where(.flex-stack) {
1572
1587
  display: flex;
1573
1588
  flex-direction: column;
1574
- gap: 1rem;
1589
+ gap: var(--space-fluid-section);
1575
1590
  }
1576
1591
  :where(.grid) {
1577
1592
  display: grid;
1578
- gap: 1rem;
1593
+ gap: var(--space-fluid-section);
1579
1594
  }
1580
1595
  :where(.masonry) {
1581
1596
  column-count: 3;
@@ -1630,7 +1645,7 @@
1630
1645
  :where(.content-block) {
1631
1646
  max-width: var(--content-width-normal);
1632
1647
  margin-inline: auto;
1633
- padding-inline: 1rem;
1648
+ padding-inline: var(--space-fluid-gutter);
1634
1649
  box-sizing: border-box;
1635
1650
  }
1636
1651
  :where(.content-block[data-width="narrower"]) {
@@ -1648,7 +1663,8 @@
1648
1663
 
1649
1664
  /* --- Grail layout (5-region responsive page shell) --------------------- */
1650
1665
  /* Header spans the top; left-aside / main / right-aside fill the middle;
1651
- footer spans the bottom. At ≤768px the asides drop below the main. */
1666
+ footer spans the bottom. The collapse as the window narrows is in the shared
1667
+ container section at the end of this file. */
1652
1668
  :where(.grail-layout) {
1653
1669
  display: grid;
1654
1670
  min-height: 100vh;
@@ -1688,15 +1704,7 @@
1688
1704
  }
1689
1705
  /* Main content area — primary surface, more generous padding. */
1690
1706
  :where(.grail-layout-center-main) {
1691
- padding: 1.5rem;
1692
- }
1693
- /* Mobile breakpoint — collapse to a single column, stacking the regions. */
1694
- @media (max-width: 48rem) {
1695
- :where(.grail-layout) {
1696
- grid-template-areas: "header" "main" "left" "right" "footer";
1697
- grid-template-columns: 1fr;
1698
- grid-template-rows: auto auto auto auto auto;
1699
- }
1707
+ padding: var(--space-fluid-gutter);
1700
1708
  }
1701
1709
 
1702
1710
  /* Standalone semantic header / footer landmarks. */
@@ -1787,6 +1795,15 @@
1787
1795
  /* Drawers — side panels (right edge by default; RTL-aware via logical
1788
1796
  properties). Sit above the overlay container (z-index 101). */
1789
1797
  :where(.drawer, .slide-out-drawer, .sheet) {
1798
+ /* These are <dialog> elements opened with showModal() (P18-T6): undo the
1799
+ browser's centred-box defaults so the panel docks to the edge. */
1800
+ margin: 0;
1801
+ border: 0;
1802
+ inset-inline-start: auto;
1803
+ max-block-size: none;
1804
+ max-inline-size: none;
1805
+ block-size: 100%;
1806
+ box-sizing: border-box;
1790
1807
  position: fixed;
1791
1808
  inset-block: 0;
1792
1809
  inset-inline-end: 0;
@@ -1799,6 +1816,10 @@
1799
1816
  z-index: 101;
1800
1817
  }
1801
1818
 
1819
+ :where(.drawer, .slide-out-drawer, .sheet)::backdrop {
1820
+ background-color: color-mix(in oklch, black 50%, transparent);
1821
+ }
1822
+
1802
1823
  /* ==========================================================================
1803
1824
  * Menus
1804
1825
  * ====================================================================== */
@@ -1851,7 +1872,7 @@
1851
1872
  gap: 0.25rem;
1852
1873
  }
1853
1874
  /* Hamburger — bordered icon-button. */
1854
- :where(.hamburger-menu) {
1875
+ :where(.hamburger-menu > button) {
1855
1876
  display: inline-flex;
1856
1877
  align-items: center;
1857
1878
  justify-content: center;
@@ -2827,6 +2848,50 @@
2827
2848
  }
2828
2849
  }
2829
2850
 
2851
+ /* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
2852
+ browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
2853
+ where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
2854
+ open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
2855
+ hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
2856
+ `position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
2857
+ position-area: with no anchor, position-area does nothing and a static position can be off screen. */
2858
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
2859
+ display: none;
2860
+ }
2861
+
2862
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
2863
+ display: none;
2864
+ }
2865
+
2866
+ @supports (position-area: block-end) {
2867
+ :where(.cascader-trigger) { anchor-name: --lily-cascader; }
2868
+ :where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
2869
+ :where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
2870
+ :where(.combobox > input) { anchor-name: --lily-combobox; }
2871
+ :where(.cascader-panel) { position-anchor: --lily-cascader; }
2872
+ :where(.tree-select-panel) { position-anchor: --lily-tree-select; }
2873
+ :where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
2874
+ :where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
2875
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
2876
+ position: fixed;
2877
+ inset: auto;
2878
+ margin: 0;
2879
+ position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
2880
+ width: max-content;
2881
+ max-width: calc(100vw - 1rem);
2882
+ }
2883
+ :where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
2884
+ inset-block-start: anchor(end, 25%);
2885
+ inset-inline-start: anchor(start, 25%);
2886
+ }
2887
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
2888
+ position-area: block-end span-inline-end;
2889
+ }
2890
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
2891
+ min-inline-size: anchor-size(inline);
2892
+ }
2893
+ }
2894
+
2830
2895
  :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2831
2896
  > :where(
2832
2897
  .theme-picker-option,
@@ -3783,6 +3848,81 @@
3783
3848
  min-block-size: 24px;
3784
3849
  }
3785
3850
 
3851
+ /* ============================================================================
3852
+ * Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
3853
+ *
3854
+ * Where the primary pointer is coarse (a finger), interactive hooks are at least
3855
+ * 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
3856
+ * buttons, form fields, checkboxes and radios, and the link-shaped navigation
3857
+ * hooks. Links inside running text are exempt, so bare `a` is not listed. The
3858
+ * query is the capability, never a viewport width. :where() keeps specificity
3859
+ * at zero, so any consumer rule still wins.
3860
+ * ========================================================================= */
3861
+
3862
+ @media (pointer: coarse) {
3863
+ :where(button,
3864
+ [role="button"],
3865
+ [role="tab"],
3866
+ [role="option"],
3867
+ [role="menuitem"],
3868
+ [class*="-picker-button"],
3869
+ summary,
3870
+ input:not([type="hidden"]),
3871
+ select,
3872
+ textarea,
3873
+ .action-link,
3874
+ .back-link,
3875
+ .breadcrumb-list-item > a,
3876
+ .pagination-list-item > a,
3877
+ .contents-list-item > a,
3878
+ .section-list-item > a) {
3879
+ min-inline-size: 44px;
3880
+ min-block-size: 44px;
3881
+ }
3882
+ }
3883
+
3884
+ /* ============================================================================
3885
+ * Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
3886
+ *
3887
+ * --lily-brand is the identity's decorative colour: a header band, a rule, a
3888
+ * logo background. It is NEVER a text colour or a control's boundary, because a
3889
+ * brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
3890
+ * text drawn on it. By default they follow the theme's primary pair, which every
3891
+ * theme keeps readable; an adopter whose brand colour is lighter or darker sets
3892
+ * both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
3893
+ * content pairs (--color-base-content, --lily-error-text and so on).
3894
+ * ========================================================================== */
3895
+
3896
+ :where(:root) {
3897
+ --lily-brand: var(--color-primary);
3898
+ --lily-on-brand: var(--color-primary-content);
3899
+ }
3900
+
3901
+ /* ============================================================================
3902
+ * Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
3903
+ *
3904
+ * The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
3905
+ * adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
3906
+ * and no clear-space rule, because national and local guidelines disagree: a
3907
+ * theme or the adopter sets --lily-logo-clear-space (padding around the mark)
3908
+ * and --lily-logo-min-size (its smallest inline size). Both are unset by
3909
+ * default, so nothing changes until one is set.
3910
+ * ========================================================================== */
3911
+
3912
+ @layer lily {
3913
+ :where([data-lily-logo]) {
3914
+ display: inline-block;
3915
+ padding: var(--lily-logo-clear-space, 0);
3916
+ }
3917
+
3918
+ :where([data-lily-logo] > img, [data-lily-logo] > svg) {
3919
+ display: block;
3920
+ min-inline-size: var(--lily-logo-min-size, 0);
3921
+ max-inline-size: 100%;
3922
+ block-size: auto;
3923
+ }
3924
+ }
3925
+
3786
3926
  /* ============================================================================
3787
3927
  * Overflow guards — narrow-viewport safety, shared verbatim by all themes.
3788
3928
  *
@@ -3811,6 +3951,140 @@
3811
3951
  overflow-wrap: anywhere;
3812
3952
  }
3813
3953
 
3954
+ /* ============================================================================
3955
+ * Scoped overflow — shared verbatim by all themes.
3956
+ *
3957
+ * Long unbroken strings (a national identifier, an email address, a URL) and
3958
+ * grid/flex tracks that refuse to shrink are the usual causes of horizontal
3959
+ * page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
3960
+ * `overflow-wrap: anywhere` on the places a long value lands (table cells are
3961
+ * covered by Overflow guards above), and `min-inline-size: 0` on the direct
3962
+ * children of Lily's grid and flex containers so a child can shrink below its
3963
+ * content. The identifier `-view` list below is the catalog's 70 national
3964
+ * identifier views (components-categories.tsv); bin/check-theme fails when it
3965
+ * drifts from the catalog. :where() keeps specificity at zero.
3966
+ * ========================================================================= */
3967
+
3968
+ :where(
3969
+ .alba-community-health-index-view,
3970
+ .australia-individual-healthcare-identifier-view,
3971
+ .belgique-numero-de-registre-national-view,
3972
+ .bulgaria-edinen-grazhdanski-nomer-view,
3973
+ .cesko-cestovni-pas-view,
3974
+ .cesko-rodne-cislo-view,
3975
+ .cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
3976
+ .kypros-national-passport-number-view,
3977
+ .danmark-personnummer-view,
3978
+ .deutschland-krankenversichertennummer-view,
3979
+ .eesti-isikukood-view,
3980
+ .ellada-dematerialised-securities-system-view,
3981
+ .england-national-health-service-number-view,
3982
+ .espana-codigo-de-identificacion-fiscal-view,
3983
+ .espana-tarjeta-sanitaria-individual-view,
3984
+ .france-numero-d-identification-au-repertoire-view,
3985
+ .hrvatska-osobni-identifikacijski-broj-view,
3986
+ .eire-individual-health-identifier-view,
3987
+ .island-kennitala-view,
3988
+ .italia-codice-fiscale-view,
3989
+ .latvija-personas-kods-view,
3990
+ .liechtenstein-national-identity-card-number-view,
3991
+ .liechtenstein-passport-number-view,
3992
+ .lietuva-asmens-kodas-view,
3993
+ .lietuva-pasas-view,
3994
+ .malta-national-identification-number-view,
3995
+ .malta-passport-number-view,
3996
+ .nederland-burgerservice-nummer-view,
3997
+ .nederland-identiteitskaart-nummer-view,
3998
+ .nederland-paspoort-nummer-view,
3999
+ .norge-fodselsnummer-view,
4000
+ .tuaisceart-eireann-health-and-care-number-view,
4001
+ .polska-numer-identyfikacji-podatkowej-view,
4002
+ .polska-pesel-view,
4003
+ .portugal-numero-de-identificacao-fiscal-view,
4004
+ .portugal-passaporte-view,
4005
+ .romania-cod-numeric-personal-view,
4006
+ .romania-pasaport-view,
4007
+ .slovenija-emso-view,
4008
+ .slovensko-pas-view,
4009
+ .slovensko-rodne-cislo-view,
4010
+ .suomi-henkilotunnus-view,
4011
+ .sverige-personnummer-view,
4012
+ .iban-view,
4013
+ .united-kingdom-national-health-service-number-view,
4014
+ .united-kingdom-national-insurance-number-view,
4015
+ .united-states-social-security-number-view,
4016
+ .aotearoa-national-health-index-view,
4017
+ .pilipinas-philhealth-identification-number-view,
4018
+ .brasil-cartao-nacional-de-saude-view,
4019
+ .schweiz-ahv-nummer-view,
4020
+ .canada-social-insurance-number-view,
4021
+ .hanguk-jumin-deungnok-beonho-view,
4022
+ .nihon-kojin-bango-view,
4023
+ .bharat-aadhaar-view,
4024
+ .yisrael-teudat-zehut-view,
4025
+ .south-africa-identity-number-view,
4026
+ .mexico-clave-unica-de-registro-de-poblacion-view,
4027
+ .singapore-national-registration-identity-card-view,
4028
+ .osterreich-sozialversicherungsnummer-view,
4029
+ .magyarorszag-taj-szam-view,
4030
+ .luxembourg-matricule-view,
4031
+ .zhongguo-jumin-shenfenzheng-haoma-view,
4032
+ .rossiya-snils-view,
4033
+ .turkiye-tc-kimlik-numarasi-view,
4034
+ .argentina-codigo-unico-de-identificacion-laboral-view,
4035
+ .ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
4036
+ .indonesia-nomor-induk-kependudukan-view,
4037
+ .prathet-thai-lek-prajam-tua-prachachon-view,
4038
+ .chile-rol-unico-nacional-view,
4039
+ .taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
4040
+ .hong-kong-identity-card-view,
4041
+ .iran-kod-e-melli-view,
4042
+ .as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
4043
+ .malaysia-kad-pengenalan-view,
4044
+ .viet-nam-can-cuoc-cong-dan-view,
4045
+ .pakistan-computerized-national-identity-card-view,
4046
+ .uruguay-cedula-de-identidad-view,
4047
+ .ecuador-cedula-de-identidad-view,
4048
+ .colombia-cedula-de-ciudadania-view,
4049
+ .australia-tax-file-number-view,
4050
+ .nigeria-national-identification-number-view,
4051
+ .misr-al-raqm-al-qawmi-view
4052
+ ) {
4053
+ overflow-wrap: anywhere;
4054
+ }
4055
+
4056
+ /* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
4057
+ :where(.summary-list, .summary-list-item, .description-list) {
4058
+ overflow-wrap: anywhere;
4059
+ }
4060
+
4061
+ :where(
4062
+ .grid,
4063
+ .flex-stack,
4064
+ .grail-layout,
4065
+ .summary-list,
4066
+ .summary-list-item,
4067
+ .description-list,
4068
+ .form,
4069
+ .editable-form,
4070
+ .field,
4071
+ .input-group,
4072
+ .button-group,
4073
+ .radio-group,
4074
+ .checkbox-group,
4075
+ .toggle-group,
4076
+ .tag-group,
4077
+ .split-view,
4078
+ .photo-pack,
4079
+ .data-filter-form,
4080
+ .action-bar,
4081
+ .tool-bar,
4082
+ .menu-bar,
4083
+ .tab-bar
4084
+ ) > :where(*) {
4085
+ min-inline-size: 0;
4086
+ }
4087
+
3814
4088
  /* ============================================================================
3815
4089
  * Helper packages — layout and look, shared verbatim by all themes.
3816
4090
  *
@@ -3938,6 +4212,8 @@
3938
4212
 
3939
4213
  :where(.gantt-table-td[data-in-range]) {
3940
4214
  background-color: var(--color-primary);
4215
+ /* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
4216
+ color: var(--color-primary-content);
3941
4217
  }
3942
4218
 
3943
4219
  :where(.gantt-table-td[data-in-range][data-milestone]) {
@@ -3960,3 +4236,334 @@
3960
4236
  :where(.time-zone-picker-option) {
3961
4237
  overflow-wrap: anywhere;
3962
4238
  }
4239
+
4240
+ /* ============================================================================
4241
+ * Overflow navigation — shared verbatim by all themes.
4242
+ *
4243
+ * The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
4244
+ * With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
4245
+ * (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
4246
+ * the links that do not fit into the More list. That list is in normal flow (position
4247
+ * static, never absolute), so opening it pushes the content below down and never covers it
4248
+ * (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
4249
+ * specificity at zero, so any consumer rule wins.
4250
+ * ========================================================================= */
4251
+
4252
+ :where(.navigation-menu-list) {
4253
+ display: flex;
4254
+ flex: 1 1 auto;
4255
+ flex-wrap: wrap;
4256
+ align-items: flex-start;
4257
+ gap: 0.25rem 0.5rem;
4258
+ min-inline-size: 0;
4259
+ margin: 0;
4260
+ padding: 0;
4261
+ list-style: none;
4262
+ }
4263
+
4264
+ :where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
4265
+ display: inline-block;
4266
+ min-inline-size: 24px;
4267
+ min-block-size: 24px;
4268
+ }
4269
+
4270
+ :where(.navigation-menu-more) {
4271
+ position: static;
4272
+ }
4273
+
4274
+ :where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
4275
+ display: none;
4276
+ }
4277
+
4278
+ :where(.navigation-menu-more-button) {
4279
+ min-inline-size: 24px;
4280
+ min-block-size: 24px;
4281
+ padding: 0.25rem 0.5rem;
4282
+ font: inherit;
4283
+ color: inherit;
4284
+ background: transparent;
4285
+ border: 1px solid currentcolor;
4286
+ cursor: pointer;
4287
+ }
4288
+
4289
+ :where(.navigation-menu-more-list) {
4290
+ position: static;
4291
+ margin: 0.25rem 0 0;
4292
+ padding: 0;
4293
+ list-style: none;
4294
+ }
4295
+
4296
+ /* ============================================================================
4297
+ * Container queries — shared verbatim by all themes.
4298
+ *
4299
+ * A component answers to the space it is given, not to the window: a summary
4300
+ * list in a narrow aside on a wide screen needs the narrow layout, which the
4301
+ * viewport query above cannot know. The three grail-layout regions are the
4302
+ * containers because their width comes from a grid track (`minmax(0, 1fr)`), so
4303
+ * inline-size containment cannot collapse them. `.card` is deliberately not a
4304
+ * container: in a shrink-to-fit parent (a flex row, an inline grid) containment
4305
+ * would collapse it to nothing. A component outside a grail region has no
4306
+ * container and keeps its wide layout. :where() keeps specificity at zero, so
4307
+ * any consumer rule wins.
4308
+ * ========================================================================= */
4309
+
4310
+ :where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
4311
+ container-type: inline-size;
4312
+ }
4313
+
4314
+ /* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
4315
+ window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
4316
+ Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
4317
+ (at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
4318
+ right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
4319
+ hidden, so all content stays reachable. */
4320
+ @media (max-width: 64rem) {
4321
+ :where(.grail-layout) {
4322
+ grid-template-areas:
4323
+ "header header"
4324
+ "left main"
4325
+ "right right"
4326
+ "footer footer";
4327
+ grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
4328
+ grid-template-rows: auto auto auto auto;
4329
+ }
4330
+ }
4331
+
4332
+ @media (max-width: 48rem) {
4333
+ :where(.grail-layout) {
4334
+ grid-template-areas:
4335
+ "header"
4336
+ "left"
4337
+ "main"
4338
+ "right"
4339
+ "footer";
4340
+ grid-template-columns: minmax(0, 1fr);
4341
+ grid-template-rows: auto auto auto auto auto;
4342
+ }
4343
+ }
4344
+
4345
+ @container (max-width: 30rem) {
4346
+ :where(.summary-list) {
4347
+ grid-template-columns: minmax(0, 1fr);
4348
+ row-gap: 0.25rem;
4349
+ }
4350
+
4351
+ :where(.kanban-table-td) {
4352
+ min-width: 10rem;
4353
+ }
4354
+
4355
+ :where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
4356
+ padding-inline: 0.5rem;
4357
+ }
4358
+ }
4359
+
4360
+ /* ============================================================================
4361
+ * Focus not obscured — shared verbatim by all themes.
4362
+ *
4363
+ * WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
4364
+ * entirely hidden by author-created content, such as a bar fixed to the top or
4365
+ * bottom of the viewport. The browser scrolls a focused control into view, but
4366
+ * only as far as the edge of the viewport, which is where a fixed bar sits.
4367
+ * `scroll-padding` moves that edge in by the bar's height.
4368
+ *
4369
+ * Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
4370
+ * theme's or an app's own fixed header, a mobile bottom navigation) sets the
4371
+ * bar's height on the root element:
4372
+ *
4373
+ * --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
4374
+ * --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
4375
+ *
4376
+ * With both bars, set both. The defaults are 0px, so a page without a fixed bar
4377
+ * is unchanged. Specificity is zero (`:where`), so an app's own
4378
+ * `scroll-padding` wins.
4379
+ * ========================================================================= */
4380
+
4381
+ :where(html) {
4382
+ scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
4383
+ }
4384
+
4385
+ /* ============================================================================
4386
+ * Text size and motion preferences — shared verbatim by all themes.
4387
+ *
4388
+ * The text-size-picker sets `data-text-size` on the root and the motion-picker
4389
+ * sets `data-motion`; neither styles anything itself. These rules are what make
4390
+ * the choice visible.
4391
+ *
4392
+ * Text size: the seven steps scale the root font size, and every theme sizes in
4393
+ * `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
4394
+ * own browser setting), and the scale is percentages of that, never pixels, so
4395
+ * a viewer who raised their browser font size keeps it. The steps below
4396
+ * `normal` are the viewer's explicit choice.
4397
+ *
4398
+ * Motion: `data-motion="reduce"` shortens every animation and transition to
4399
+ * 0.01ms instead of removing it. The end state still arrives and `animationend`
4400
+ * / `transitionend` still fire, so nothing that depends on them breaks and no
4401
+ * information is lost: a spinner's `role="status"` text, a disclosure's open
4402
+ * state and a toast's content are untouched. Scrolling is instant.
4403
+ * ========================================================================= */
4404
+
4405
+ :where(html[data-text-size="smallest"]) { font-size: 80%; }
4406
+ :where(html[data-text-size="smaller"]) { font-size: 90%; }
4407
+ :where(html[data-text-size="small"]) { font-size: 95%; }
4408
+ :where(html[data-text-size="normal"]) { font-size: 100%; }
4409
+ :where(html[data-text-size="large"]) { font-size: 110%; }
4410
+ :where(html[data-text-size="larger"]) { font-size: 125%; }
4411
+ :where(html[data-text-size="largest"]) { font-size: 150%; }
4412
+
4413
+ :where(html[data-motion="reduce"]) {
4414
+ scroll-behavior: auto;
4415
+ }
4416
+ :where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
4417
+ animation-duration: 0.01ms !important;
4418
+ animation-iteration-count: 1 !important;
4419
+ animation-delay: 0s !important;
4420
+ transition-duration: 0.01ms !important;
4421
+ transition-delay: 0s !important;
4422
+ scroll-behavior: auto !important;
4423
+ }
4424
+
4425
+ /* ============================================================================
4426
+ * Forced colours and contrast preference — shared verbatim by all themes.
4427
+ *
4428
+ * Forced colours (Windows High Contrast, `forced-colors: active`): the browser
4429
+ * replaces every colour with a system colour, which erases anything a control
4430
+ * told apart by background alone. These rules give such controls a border,
4431
+ * keep the focus ring, and mark selected and current items with `Highlight`
4432
+ * and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
4433
+ *
4434
+ * Contrast preference (`prefers-contrast: more`): a heavier border on controls
4435
+ * and a thicker focus ring. Colours are not changed here; a theme's colours are
4436
+ * its author's decision.
4437
+ * ========================================================================= */
4438
+
4439
+ @media (forced-colors: active) {
4440
+ :where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
4441
+ border: 1px solid ButtonBorder;
4442
+ }
4443
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
4444
+ outline: 3px solid Highlight;
4445
+ outline-offset: 2px;
4446
+ }
4447
+ :where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
4448
+ background: SelectedItem;
4449
+ color: SelectedItemText;
4450
+ forced-color-adjust: none;
4451
+ }
4452
+ :where([aria-current]:not([aria-current="false"])) {
4453
+ outline: 2px solid Highlight;
4454
+ outline-offset: -2px;
4455
+ }
4456
+ :where(:disabled, [aria-disabled="true"]) {
4457
+ border-color: GrayText;
4458
+ color: GrayText;
4459
+ }
4460
+ }
4461
+
4462
+ @media (prefers-contrast: more) {
4463
+ :where(button, input, select, textarea, [role="button"], [class$="-button"]) {
4464
+ border-width: 2px;
4465
+ border-style: solid;
4466
+ border-color: currentColor;
4467
+ }
4468
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
4469
+ outline-width: 3px;
4470
+ outline-offset: 2px;
4471
+ }
4472
+ }
4473
+
4474
+ /* ============================================================================
4475
+ * Writing systems — shared verbatim by all themes.
4476
+ *
4477
+ * A theme names its Latin font stack (`--lily-font-body-latin`). This section
4478
+ * builds `--lily-font-body` from it, with the system fonts of the element's
4479
+ * script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
4480
+ * Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
4481
+ * scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
4482
+ * Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
4483
+ * Chinese and Japanese but drawn differently, so the language picks the font,
4484
+ * not the script.
4485
+ *
4486
+ * `--lily-font-body` is re-declared on every element with a `lang`, so a
4487
+ * `<p lang="ja">` inside an English page gets Japanese fonts and a
4488
+ * `<span lang="en">` inside it gets none. A language not listed here keeps the
4489
+ * Latin stack, whose final generic family the browser resolves per language.
4490
+ *
4491
+ * `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
4492
+ * and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
4493
+ * Elements with a `lang` use it; the app's body text should too.
4494
+ *
4495
+ * To change a theme's font, set `--lily-font-body-latin`; to change a script's,
4496
+ * set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
4497
+ * itself still works on the element you set it on.
4498
+ * ========================================================================= */
4499
+
4500
+ :where(:root, [lang]) {
4501
+ --lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
4502
+ --lily-line-height-body: 1.5;
4503
+ }
4504
+
4505
+ :where([lang]) {
4506
+ --lily-font-script: initial;
4507
+ line-height: var(--lily-line-height-body);
4508
+ }
4509
+
4510
+ :where([lang|="zh"], [lang|="wuu"]) {
4511
+ --lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
4512
+ }
4513
+ :where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
4514
+ --lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
4515
+ }
4516
+ :where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
4517
+ --lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
4518
+ }
4519
+ :where([lang|="ja"]) {
4520
+ --lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
4521
+ }
4522
+ :where([lang|="ko"]) {
4523
+ --lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
4524
+ }
4525
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
4526
+ --lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
4527
+ }
4528
+ :where([lang|="ur"]) {
4529
+ --lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
4530
+ }
4531
+ :where([lang|="he"], [lang|="yi"]) {
4532
+ --lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
4533
+ }
4534
+ :where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
4535
+ --lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
4536
+ }
4537
+ :where([lang|="bn"], [lang|="as"]) {
4538
+ --lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
4539
+ }
4540
+ :where([lang|="gu"]) {
4541
+ --lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
4542
+ }
4543
+ :where([lang|="pa"]) {
4544
+ --lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
4545
+ }
4546
+ :where([lang|="kn"]) {
4547
+ --lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
4548
+ }
4549
+ :where([lang|="ta"]) {
4550
+ --lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
4551
+ }
4552
+ :where([lang|="te"]) {
4553
+ --lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
4554
+ }
4555
+ :where([lang|="th"]) {
4556
+ --lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
4557
+ }
4558
+ :where([lang|="lo"]) {
4559
+ --lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
4560
+ }
4561
+ :where([lang|="km"]) {
4562
+ --lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
4563
+ }
4564
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
4565
+ [lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
4566
+ [lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
4567
+ [lang|="lo"], [lang|="km"]) {
4568
+ --lily-line-height-body: 1.75;
4569
+ }