@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
  * Patients variant
12
14
  * --------------------------------------------------------------------------
@@ -376,7 +378,7 @@
376
378
  published NHSW library needs that have no slot in the *
377
379
  upstream `--color-*` contract. They are declared here
378
380
  rather than * inline in the component rules so a consumer
379
- can retheme a DHCW * service by overriding tokens alone. *
381
+ can retheme a DHCW * service by overriding tokens alone. *
380
382
  -----------------------------------------------------------
381
383
  ------- */ /* #FFEB3B — `$nhsw-colour-focus`. The GDS-
382
384
  lineage focus block. */
@@ -404,12 +406,20 @@
404
406
  /* #007F3B — the DHCW action-link green. Not NHS Green: it is
405
407
  a shade darker so the 36px chevron reads at 5.1:1 on white. */
406
408
  --lily-action-green: oklch(52% 0.141 151);
407
- /* #7C2855 — `$nhsw-colour-link-visited`. NHS Purple. 9.2:1. */
408
- --lily-link-visited: oklch(42% 0.126 351);
409
- /* #003087 — `$nhsw-colour-link-hover`, NHS Dark Blue /
410
- Pantone 287. No longer the secondary token, but still the
411
- hovered link. 11.9:1. */
412
- --lily-link-hover: oklch(35% 0.153 261);
409
+ /* #005AA8 — `$nhswales-link-colour`, DHCW Design System
410
+ (private beta, 2026-10-23). 6.94:1 on white, 6.26:1 on
411
+ #F0F4F5: AA, just short of AAA. NHS Blue #005EB8 stays on
412
+ --color-secondary for the header band and brand chrome. */
413
+ --lily-link: oklch(46.8% 0.145 253.1);
414
+ /* #002F5C — `$nhswales-link-active-colour`. 13.45:1 on white. */
415
+ --lily-link-active: oklch(30.5% 0.093 252.7);
416
+ /* #330072 — `$nhswales-link-visited-colour`. 15.18:1 on
417
+ white. (Until 2026-10-28 this was #7C2855, which the DHCW
418
+ Design System uses for hover.) */
419
+ --lily-link-visited: oklch(29% 0.162 292.2);
420
+ /* #7C2855 — `$nhswales-link-hover-colour`. 9.16:1 on white.
421
+ (Until 2026-10-28 this was NHS Dark Blue #003087.) */
422
+ --lily-link-hover: oklch(41.8% 0.126 350.8);
413
423
  /* #00A499 — NHS Aqua Green / Pantone 3272. Demoted from the
414
424
  accent slot but retained: DHCW ships an `aqua-green` tag
415
425
  tone, and Public Health Wales and the Welsh Ambulance
@@ -441,6 +451,14 @@
441
451
  --border: 1px;
442
452
  --depth: 0;
443
453
  --noise: 0;
454
+ /* Fluid inline gutter for page containers and the main
455
+ region: grows with the viewport from a 1rem floor to a 2rem
456
+ ceiling. Spacing only, never text. */
457
+ --space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
458
+ /* Fluid gap between sections (stacks and grids): grows with
459
+ the viewport from a 1rem floor to a 2rem ceiling. Spacing
460
+ only, never text. */
461
+ --space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
444
462
  }
445
463
 
446
464
  /* ----------------------------------------------------------------------------
@@ -551,7 +569,7 @@
551
569
  /* --- Typography ---------------------------------------------------- */
552
570
  /* Body font stack — system fonts first so consumers get a
553
571
  native-feeling baseline without shipping a web font. */
554
- --lily-font-body:
572
+ --lily-font-body-latin:
555
573
  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
556
574
  Arial, sans-serif;
557
575
  /* Monospaced font stack — used by code, kbd, identifiers, and
@@ -711,9 +729,12 @@
711
729
  }
712
730
 
713
731
  /* Invalid input — red border. The `aria-invalid="true"` attribute is the
714
- ARIA contract; pairing it with a colour change keeps WCAG 1.4.1
715
- (no colour-only meaning) honest because the ARIA state is also there. */
716
- :where([class$="-input"], .input)[aria-invalid="true"] {
732
+ ARIA contract (server-rendered errors); `:user-invalid` is the native
733
+ state that matches only after the user has interacted, so a required
734
+ field is not styled invalid on load. Pairing a colour change with the
735
+ ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
736
+ :where([class$="-input"], .input)[aria-invalid="true"],
737
+ :where([class$="-input"], .input):user-invalid {
717
738
  border-color: var(--color-error);
718
739
  }
719
740
 
@@ -1071,11 +1092,14 @@
1071
1092
  the published library rather than inventing a third vocabulary, at
1072
1093
  the cost of it not meaning "caution". If you need caution, that is
1073
1094
  the warning-callout below, not a button. */
1095
+ /* DHCW's delete red #D5281B is 5.06:1 under a white label: AA, not the
1096
+ AAA this system targets. The fill is mixed 20% towards black (8.2:1)
1097
+ so the label meets 7:1; the hue is unchanged. */
1074
1098
  :where([class$="-button"], .button)[data-variant="warning"] {
1075
- background-color: var(--color-error);
1099
+ background-color: color-mix(in oklch, var(--color-error) 80%, black);
1076
1100
  color: var(--color-error-content);
1077
- border-color: var(--color-error);
1078
- box-shadow: 0 2px 0 color-mix(in oklch, var(--color-error) 60%, black);
1101
+ border-color: color-mix(in oklch, var(--color-error) 80%, black);
1102
+ box-shadow: 0 2px 0 color-mix(in oklch, var(--color-error) 50%, black);
1079
1103
  }
1080
1104
  :where([class$="-button"], .button)[data-variant="warning"]:hover:not(
1081
1105
  :disabled
@@ -1276,28 +1300,33 @@
1276
1300
  * exclusions (`skip-link`, `back-link`) are styled as buttons above.
1277
1301
  * ====================================================================== */
1278
1302
 
1279
- /* Links are NHS Blue (`$nhsw-colour-link`), i.e. --color-secondary
1280
- under this palette — not the navy primary. Keeping links blue and
1303
+ /* Links are `$nhswales-link-colour` #005AA8 (--lily-link), a shade
1304
+ off NHS Blue #005EB8, which stays on --color-secondary for the
1305
+ header band — not the navy primary. Keeping links blue and
1281
1306
  buttons navy is what lets a reader tell "this navigates" from "this
1282
1307
  acts" without reading either one. */
1283
1308
  :where([class$="-link"]:not(.skip-link):not(.back-link)) {
1284
- color: var(--color-secondary);
1309
+ color: var(--lily-link);
1285
1310
  text-decoration: underline;
1286
1311
  text-underline-offset: 0.12em;
1287
1312
  }
1288
- /* Hover — DHCW drops to NHS Dark Blue #003087 and thickens the rule.
1313
+ /* Hover — DHCW moves to #7C2855 and thickens the rule.
1289
1314
  Both, not either: colour alone is not a state change (WCAG 1.4.1). */
1290
1315
  :where([class$="-link"]):hover {
1291
1316
  color: var(--lily-link-hover);
1292
1317
  text-decoration-thickness: max(3px, 0.1875rem);
1293
1318
  }
1294
- /* Visited — NHS Purple #7C2855 (`$nhsw-colour-link-visited`). Worth
1319
+ /* Visited — #330072 (`$nhswales-link-visited-colour`). Worth
1295
1320
  keeping on a patient surface specifically: someone working through
1296
1321
  a list of conditions or services needs to see where they have
1297
1322
  already been, and that is the whole job of a visited colour. */
1298
1323
  :where([class$="-link"]):visited {
1299
1324
  color: var(--lily-link-visited);
1300
1325
  }
1326
+ /* Active — #002F5C while the link is pressed. */
1327
+ :where([class$="-link"]):active {
1328
+ color: var(--lily-link-active);
1329
+ }
1301
1330
 
1302
1331
  /* ----------------------------------------------------------------------
1303
1332
  * Action link — DHCW's green-chevron call to action
@@ -2162,13 +2191,17 @@
2162
2191
  padding: 0.75rem 1rem;
2163
2192
  }
2164
2193
 
2165
- /* Sticky promo — sits at the very top of the viewport on scroll. */
2194
+ /* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
2195
+ the component's own bottom: 0 it would stretch over the whole page and take every click. */
2166
2196
  :where(.sticky-promo-banner) {
2167
2197
  position: sticky;
2168
- inset-block-start: 0;
2169
2198
  z-index: 10;
2170
2199
  }
2171
2200
 
2201
+ :where(.sticky-promo-banner:not([data-position="bottom"])) {
2202
+ inset-block-start: 0;
2203
+ }
2204
+
2172
2205
  /* Error message — inline form-validation message. */
2173
2206
  :where(.error-message) {
2174
2207
  color: var(--lily-error-text);
@@ -2248,7 +2281,7 @@
2248
2281
  display: block;
2249
2282
  width: 100%;
2250
2283
  margin-inline: auto;
2251
- padding-inline: 1rem;
2284
+ padding-inline: var(--space-fluid-gutter);
2252
2285
  box-sizing: border-box;
2253
2286
  }
2254
2287
  /* Fixed-width — caps at a comfortable reading width (~1152px). */
@@ -2268,11 +2301,11 @@
2268
2301
  :where(.flex-stack) {
2269
2302
  display: flex;
2270
2303
  flex-direction: column;
2271
- gap: 1rem;
2304
+ gap: var(--space-fluid-section);
2272
2305
  }
2273
2306
  :where(.grid) {
2274
2307
  display: grid;
2275
- gap: 1rem;
2308
+ gap: var(--space-fluid-section);
2276
2309
  }
2277
2310
  :where(.masonry) {
2278
2311
  column-count: 3;
@@ -2327,7 +2360,7 @@
2327
2360
  :where(.content-block) {
2328
2361
  max-width: var(--content-width-normal);
2329
2362
  margin-inline: auto;
2330
- padding-inline: 1rem;
2363
+ padding-inline: var(--space-fluid-gutter);
2331
2364
  box-sizing: border-box;
2332
2365
  }
2333
2366
  :where(.content-block[data-width="narrower"]) {
@@ -2345,7 +2378,8 @@
2345
2378
 
2346
2379
  /* --- Grail layout (5-region responsive page shell) --------------------- */
2347
2380
  /* Header spans the top; left-aside / main / right-aside fill the middle;
2348
- footer spans the bottom. At ≤768px the asides drop below the main. */
2381
+ footer spans the bottom. The collapse as the window narrows is in the shared
2382
+ container section at the end of this file. */
2349
2383
  :where(.grail-layout) {
2350
2384
  display: grid;
2351
2385
  min-height: 100vh;
@@ -2385,15 +2419,7 @@
2385
2419
  }
2386
2420
  /* Main content area — primary surface, more generous padding. */
2387
2421
  :where(.grail-layout-center-main) {
2388
- padding: 1.5rem;
2389
- }
2390
- /* Mobile breakpoint — collapse to a single column, stacking the regions. */
2391
- @media (max-width: 48rem) {
2392
- :where(.grail-layout) {
2393
- grid-template-areas: "header" "main" "left" "right" "footer";
2394
- grid-template-columns: 1fr;
2395
- grid-template-rows: auto auto auto auto auto;
2396
- }
2422
+ padding: var(--space-fluid-gutter);
2397
2423
  }
2398
2424
 
2399
2425
  /* Standalone semantic header / footer landmarks. */
@@ -2484,6 +2510,15 @@
2484
2510
  /* Drawers — side panels (right edge by default; RTL-aware via logical
2485
2511
  properties). Sit above the overlay container (z-index 101). */
2486
2512
  :where(.drawer, .slide-out-drawer, .sheet) {
2513
+ /* These are <dialog> elements opened with showModal() (P18-T6): undo the
2514
+ browser's centred-box defaults so the panel docks to the edge. */
2515
+ margin: 0;
2516
+ border: 0;
2517
+ inset-inline-start: auto;
2518
+ max-block-size: none;
2519
+ max-inline-size: none;
2520
+ block-size: 100%;
2521
+ box-sizing: border-box;
2487
2522
  position: fixed;
2488
2523
  inset-block: 0;
2489
2524
  inset-inline-end: 0;
@@ -2496,6 +2531,10 @@
2496
2531
  z-index: 101;
2497
2532
  }
2498
2533
 
2534
+ :where(.drawer, .slide-out-drawer, .sheet)::backdrop {
2535
+ background-color: color-mix(in oklch, black 50%, transparent);
2536
+ }
2537
+
2499
2538
  /* ==========================================================================
2500
2539
  * Menus
2501
2540
  * ====================================================================== */
@@ -2548,7 +2587,7 @@
2548
2587
  gap: 0.25rem;
2549
2588
  }
2550
2589
  /* Hamburger — bordered icon-button. */
2551
- :where(.hamburger-menu) {
2590
+ :where(.hamburger-menu > button) {
2552
2591
  display: inline-flex;
2553
2592
  align-items: center;
2554
2593
  justify-content: center;
@@ -3641,6 +3680,56 @@
3641
3680
  }
3642
3681
  }
3643
3682
 
3683
+ /* A closed popover stays closed. Author `display` beats the browser's own rule for a closed popover, so the
3684
+ menu rule above would otherwise leave every closed dropdown-menu and context-menu on the page. */
3685
+ :where([popover]:not(:popover-open)) {
3686
+ display: none;
3687
+ }
3688
+
3689
+ /* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
3690
+ browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
3691
+ where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
3692
+ open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
3693
+ hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
3694
+ `position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
3695
+ position-area: with no anchor, position-area does nothing and a static position can be off screen. */
3696
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
3697
+ display: none;
3698
+ }
3699
+
3700
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
3701
+ display: none;
3702
+ }
3703
+
3704
+ @supports (position-area: block-end) {
3705
+ :where(.cascader-trigger) { anchor-name: --lily-cascader; }
3706
+ :where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
3707
+ :where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
3708
+ :where(.combobox > input) { anchor-name: --lily-combobox; }
3709
+ :where(.cascader-panel) { position-anchor: --lily-cascader; }
3710
+ :where(.tree-select-panel) { position-anchor: --lily-tree-select; }
3711
+ :where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
3712
+ :where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
3713
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
3714
+ position: fixed;
3715
+ inset: auto;
3716
+ margin: 0;
3717
+ position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
3718
+ width: max-content;
3719
+ max-width: calc(100vw - 1rem);
3720
+ }
3721
+ :where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
3722
+ inset-block-start: anchor(end, 25%);
3723
+ inset-inline-start: anchor(start, 25%);
3724
+ }
3725
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
3726
+ position-area: block-end span-inline-end;
3727
+ }
3728
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
3729
+ min-inline-size: anchor-size(inline);
3730
+ }
3731
+ }
3732
+
3644
3733
  :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
3645
3734
  > :where(
3646
3735
  .theme-picker-option,
@@ -4819,6 +4908,81 @@
4819
4908
  min-block-size: 24px;
4820
4909
  }
4821
4910
 
4911
+ /* ============================================================================
4912
+ * Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
4913
+ *
4914
+ * Where the primary pointer is coarse (a finger), interactive hooks are at least
4915
+ * 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
4916
+ * buttons, form fields, checkboxes and radios, and the link-shaped navigation
4917
+ * hooks. Links inside running text are exempt, so bare `a` is not listed. The
4918
+ * query is the capability, never a viewport width. :where() keeps specificity
4919
+ * at zero, so any consumer rule still wins.
4920
+ * ========================================================================= */
4921
+
4922
+ @media (pointer: coarse) {
4923
+ :where(button,
4924
+ [role="button"],
4925
+ [role="tab"],
4926
+ [role="option"],
4927
+ [role="menuitem"],
4928
+ [class*="-picker-button"],
4929
+ summary,
4930
+ input:not([type="hidden"]),
4931
+ select,
4932
+ textarea,
4933
+ .action-link,
4934
+ .back-link,
4935
+ .breadcrumb-list-item > a,
4936
+ .pagination-list-item > a,
4937
+ .contents-list-item > a,
4938
+ .section-list-item > a) {
4939
+ min-inline-size: 44px;
4940
+ min-block-size: 44px;
4941
+ }
4942
+ }
4943
+
4944
+ /* ============================================================================
4945
+ * Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
4946
+ *
4947
+ * --lily-brand is the identity's decorative colour: a header band, a rule, a
4948
+ * logo background. It is NEVER a text colour or a control's boundary, because a
4949
+ * brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
4950
+ * text drawn on it. By default they follow the theme's primary pair, which every
4951
+ * theme keeps readable; an adopter whose brand colour is lighter or darker sets
4952
+ * both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
4953
+ * content pairs (--color-base-content, --lily-error-text and so on).
4954
+ * ========================================================================== */
4955
+
4956
+ :where(:root) {
4957
+ --lily-brand: var(--color-primary);
4958
+ --lily-on-brand: var(--color-primary-content);
4959
+ }
4960
+
4961
+ /* ============================================================================
4962
+ * Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
4963
+ *
4964
+ * The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
4965
+ * adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
4966
+ * and no clear-space rule, because national and local guidelines disagree: a
4967
+ * theme or the adopter sets --lily-logo-clear-space (padding around the mark)
4968
+ * and --lily-logo-min-size (its smallest inline size). Both are unset by
4969
+ * default, so nothing changes until one is set.
4970
+ * ========================================================================== */
4971
+
4972
+ @layer lily {
4973
+ :where([data-lily-logo]) {
4974
+ display: inline-block;
4975
+ padding: var(--lily-logo-clear-space, 0);
4976
+ }
4977
+
4978
+ :where([data-lily-logo] > img, [data-lily-logo] > svg) {
4979
+ display: block;
4980
+ min-inline-size: var(--lily-logo-min-size, 0);
4981
+ max-inline-size: 100%;
4982
+ block-size: auto;
4983
+ }
4984
+ }
4985
+
4822
4986
  /* ============================================================================
4823
4987
  * Overflow guards — narrow-viewport safety, shared verbatim by all themes.
4824
4988
  *
@@ -4847,6 +5011,140 @@
4847
5011
  overflow-wrap: anywhere;
4848
5012
  }
4849
5013
 
5014
+ /* ============================================================================
5015
+ * Scoped overflow — shared verbatim by all themes.
5016
+ *
5017
+ * Long unbroken strings (a national identifier, an email address, a URL) and
5018
+ * grid/flex tracks that refuse to shrink are the usual causes of horizontal
5019
+ * page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
5020
+ * `overflow-wrap: anywhere` on the places a long value lands (table cells are
5021
+ * covered by Overflow guards above), and `min-inline-size: 0` on the direct
5022
+ * children of Lily's grid and flex containers so a child can shrink below its
5023
+ * content. The identifier `-view` list below is the catalog's 70 national
5024
+ * identifier views (components-categories.tsv); bin/check-theme fails when it
5025
+ * drifts from the catalog. :where() keeps specificity at zero.
5026
+ * ========================================================================= */
5027
+
5028
+ :where(
5029
+ .alba-community-health-index-view,
5030
+ .australia-individual-healthcare-identifier-view,
5031
+ .belgique-numero-de-registre-national-view,
5032
+ .bulgaria-edinen-grazhdanski-nomer-view,
5033
+ .cesko-cestovni-pas-view,
5034
+ .cesko-rodne-cislo-view,
5035
+ .cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
5036
+ .kypros-national-passport-number-view,
5037
+ .danmark-personnummer-view,
5038
+ .deutschland-krankenversichertennummer-view,
5039
+ .eesti-isikukood-view,
5040
+ .ellada-dematerialised-securities-system-view,
5041
+ .england-national-health-service-number-view,
5042
+ .espana-codigo-de-identificacion-fiscal-view,
5043
+ .espana-tarjeta-sanitaria-individual-view,
5044
+ .france-numero-d-identification-au-repertoire-view,
5045
+ .hrvatska-osobni-identifikacijski-broj-view,
5046
+ .eire-individual-health-identifier-view,
5047
+ .island-kennitala-view,
5048
+ .italia-codice-fiscale-view,
5049
+ .latvija-personas-kods-view,
5050
+ .liechtenstein-national-identity-card-number-view,
5051
+ .liechtenstein-passport-number-view,
5052
+ .lietuva-asmens-kodas-view,
5053
+ .lietuva-pasas-view,
5054
+ .malta-national-identification-number-view,
5055
+ .malta-passport-number-view,
5056
+ .nederland-burgerservice-nummer-view,
5057
+ .nederland-identiteitskaart-nummer-view,
5058
+ .nederland-paspoort-nummer-view,
5059
+ .norge-fodselsnummer-view,
5060
+ .tuaisceart-eireann-health-and-care-number-view,
5061
+ .polska-numer-identyfikacji-podatkowej-view,
5062
+ .polska-pesel-view,
5063
+ .portugal-numero-de-identificacao-fiscal-view,
5064
+ .portugal-passaporte-view,
5065
+ .romania-cod-numeric-personal-view,
5066
+ .romania-pasaport-view,
5067
+ .slovenija-emso-view,
5068
+ .slovensko-pas-view,
5069
+ .slovensko-rodne-cislo-view,
5070
+ .suomi-henkilotunnus-view,
5071
+ .sverige-personnummer-view,
5072
+ .iban-view,
5073
+ .united-kingdom-national-health-service-number-view,
5074
+ .united-kingdom-national-insurance-number-view,
5075
+ .united-states-social-security-number-view,
5076
+ .aotearoa-national-health-index-view,
5077
+ .pilipinas-philhealth-identification-number-view,
5078
+ .brasil-cartao-nacional-de-saude-view,
5079
+ .schweiz-ahv-nummer-view,
5080
+ .canada-social-insurance-number-view,
5081
+ .hanguk-jumin-deungnok-beonho-view,
5082
+ .nihon-kojin-bango-view,
5083
+ .bharat-aadhaar-view,
5084
+ .yisrael-teudat-zehut-view,
5085
+ .south-africa-identity-number-view,
5086
+ .mexico-clave-unica-de-registro-de-poblacion-view,
5087
+ .singapore-national-registration-identity-card-view,
5088
+ .osterreich-sozialversicherungsnummer-view,
5089
+ .magyarorszag-taj-szam-view,
5090
+ .luxembourg-matricule-view,
5091
+ .zhongguo-jumin-shenfenzheng-haoma-view,
5092
+ .rossiya-snils-view,
5093
+ .turkiye-tc-kimlik-numarasi-view,
5094
+ .argentina-codigo-unico-de-identificacion-laboral-view,
5095
+ .ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
5096
+ .indonesia-nomor-induk-kependudukan-view,
5097
+ .prathet-thai-lek-prajam-tua-prachachon-view,
5098
+ .chile-rol-unico-nacional-view,
5099
+ .taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
5100
+ .hong-kong-identity-card-view,
5101
+ .iran-kod-e-melli-view,
5102
+ .as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
5103
+ .malaysia-kad-pengenalan-view,
5104
+ .viet-nam-can-cuoc-cong-dan-view,
5105
+ .pakistan-computerized-national-identity-card-view,
5106
+ .uruguay-cedula-de-identidad-view,
5107
+ .ecuador-cedula-de-identidad-view,
5108
+ .colombia-cedula-de-ciudadania-view,
5109
+ .australia-tax-file-number-view,
5110
+ .nigeria-national-identification-number-view,
5111
+ .misr-al-raqm-al-qawmi-view
5112
+ ) {
5113
+ overflow-wrap: anywhere;
5114
+ }
5115
+
5116
+ /* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
5117
+ :where(.summary-list, .summary-list-item, .description-list) {
5118
+ overflow-wrap: anywhere;
5119
+ }
5120
+
5121
+ :where(
5122
+ .grid,
5123
+ .flex-stack,
5124
+ .grail-layout,
5125
+ .summary-list,
5126
+ .summary-list-item,
5127
+ .description-list,
5128
+ .form,
5129
+ .editable-form,
5130
+ .field,
5131
+ .input-group,
5132
+ .button-group,
5133
+ .radio-group,
5134
+ .checkbox-group,
5135
+ .toggle-group,
5136
+ .tag-group,
5137
+ .split-view,
5138
+ .photo-pack,
5139
+ .data-filter-form,
5140
+ .action-bar,
5141
+ .tool-bar,
5142
+ .menu-bar,
5143
+ .tab-bar
5144
+ ) > :where(*) {
5145
+ min-inline-size: 0;
5146
+ }
5147
+
4850
5148
  /* ============================================================================
4851
5149
  * Helper packages — layout and look, shared verbatim by all themes.
4852
5150
  *
@@ -4974,6 +5272,8 @@
4974
5272
 
4975
5273
  :where(.gantt-table-td[data-in-range]) {
4976
5274
  background-color: var(--color-primary);
5275
+ /* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
5276
+ color: var(--color-primary-content);
4977
5277
  }
4978
5278
 
4979
5279
  :where(.gantt-table-td[data-in-range][data-milestone]) {
@@ -4996,3 +5296,334 @@
4996
5296
  :where(.time-zone-picker-option) {
4997
5297
  overflow-wrap: anywhere;
4998
5298
  }
5299
+
5300
+ /* ============================================================================
5301
+ * Overflow navigation — shared verbatim by all themes.
5302
+ *
5303
+ * The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
5304
+ * With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
5305
+ * (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
5306
+ * the links that do not fit into the More list. That list is in normal flow (position
5307
+ * static, never absolute), so opening it pushes the content below down and never covers it
5308
+ * (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
5309
+ * specificity at zero, so any consumer rule wins.
5310
+ * ========================================================================= */
5311
+
5312
+ :where(.navigation-menu-list) {
5313
+ display: flex;
5314
+ flex: 1 1 auto;
5315
+ flex-wrap: wrap;
5316
+ align-items: flex-start;
5317
+ gap: 0.25rem 0.5rem;
5318
+ min-inline-size: 0;
5319
+ margin: 0;
5320
+ padding: 0;
5321
+ list-style: none;
5322
+ }
5323
+
5324
+ :where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
5325
+ display: inline-block;
5326
+ min-inline-size: 24px;
5327
+ min-block-size: 24px;
5328
+ }
5329
+
5330
+ :where(.navigation-menu-more) {
5331
+ position: static;
5332
+ }
5333
+
5334
+ :where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
5335
+ display: none;
5336
+ }
5337
+
5338
+ :where(.navigation-menu-more-button) {
5339
+ min-inline-size: 24px;
5340
+ min-block-size: 24px;
5341
+ padding: 0.25rem 0.5rem;
5342
+ font: inherit;
5343
+ color: inherit;
5344
+ background: transparent;
5345
+ border: 1px solid currentcolor;
5346
+ cursor: pointer;
5347
+ }
5348
+
5349
+ :where(.navigation-menu-more-list) {
5350
+ position: static;
5351
+ margin: 0.25rem 0 0;
5352
+ padding: 0;
5353
+ list-style: none;
5354
+ }
5355
+
5356
+ /* ============================================================================
5357
+ * Container queries — shared verbatim by all themes.
5358
+ *
5359
+ * A component answers to the space it is given, not to the window: a summary
5360
+ * list in a narrow aside on a wide screen needs the narrow layout, which the
5361
+ * viewport query above cannot know. The three grail-layout regions are the
5362
+ * containers because their width comes from a grid track (`minmax(0, 1fr)`), so
5363
+ * inline-size containment cannot collapse them. `.card` is deliberately not a
5364
+ * container: in a shrink-to-fit parent (a flex row, an inline grid) containment
5365
+ * would collapse it to nothing. A component outside a grail region has no
5366
+ * container and keeps its wide layout. :where() keeps specificity at zero, so
5367
+ * any consumer rule wins.
5368
+ * ========================================================================= */
5369
+
5370
+ :where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
5371
+ container-type: inline-size;
5372
+ }
5373
+
5374
+ /* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
5375
+ window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
5376
+ Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
5377
+ (at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
5378
+ right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
5379
+ hidden, so all content stays reachable. */
5380
+ @media (max-width: 64rem) {
5381
+ :where(.grail-layout) {
5382
+ grid-template-areas:
5383
+ "header header"
5384
+ "left main"
5385
+ "right right"
5386
+ "footer footer";
5387
+ grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
5388
+ grid-template-rows: auto auto auto auto;
5389
+ }
5390
+ }
5391
+
5392
+ @media (max-width: 48rem) {
5393
+ :where(.grail-layout) {
5394
+ grid-template-areas:
5395
+ "header"
5396
+ "left"
5397
+ "main"
5398
+ "right"
5399
+ "footer";
5400
+ grid-template-columns: minmax(0, 1fr);
5401
+ grid-template-rows: auto auto auto auto auto;
5402
+ }
5403
+ }
5404
+
5405
+ @container (max-width: 30rem) {
5406
+ :where(.summary-list) {
5407
+ grid-template-columns: minmax(0, 1fr);
5408
+ row-gap: 0.25rem;
5409
+ }
5410
+
5411
+ :where(.kanban-table-td) {
5412
+ min-width: 10rem;
5413
+ }
5414
+
5415
+ :where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
5416
+ padding-inline: 0.5rem;
5417
+ }
5418
+ }
5419
+
5420
+ /* ============================================================================
5421
+ * Focus not obscured — shared verbatim by all themes.
5422
+ *
5423
+ * WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
5424
+ * entirely hidden by author-created content, such as a bar fixed to the top or
5425
+ * bottom of the viewport. The browser scrolls a focused control into view, but
5426
+ * only as far as the edge of the viewport, which is where a fixed bar sits.
5427
+ * `scroll-padding` moves that edge in by the bar's height.
5428
+ *
5429
+ * Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
5430
+ * theme's or an app's own fixed header, a mobile bottom navigation) sets the
5431
+ * bar's height on the root element:
5432
+ *
5433
+ * --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
5434
+ * --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
5435
+ *
5436
+ * With both bars, set both. The defaults are 0px, so a page without a fixed bar
5437
+ * is unchanged. Specificity is zero (`:where`), so an app's own
5438
+ * `scroll-padding` wins.
5439
+ * ========================================================================= */
5440
+
5441
+ :where(html) {
5442
+ scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
5443
+ }
5444
+
5445
+ /* ============================================================================
5446
+ * Text size and motion preferences — shared verbatim by all themes.
5447
+ *
5448
+ * The text-size-picker sets `data-text-size` on the root and the motion-picker
5449
+ * sets `data-motion`; neither styles anything itself. These rules are what make
5450
+ * the choice visible.
5451
+ *
5452
+ * Text size: the seven steps scale the root font size, and every theme sizes in
5453
+ * `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
5454
+ * own browser setting), and the scale is percentages of that, never pixels, so
5455
+ * a viewer who raised their browser font size keeps it. The steps below
5456
+ * `normal` are the viewer's explicit choice.
5457
+ *
5458
+ * Motion: `data-motion="reduce"` shortens every animation and transition to
5459
+ * 0.01ms instead of removing it. The end state still arrives and `animationend`
5460
+ * / `transitionend` still fire, so nothing that depends on them breaks and no
5461
+ * information is lost: a spinner's `role="status"` text, a disclosure's open
5462
+ * state and a toast's content are untouched. Scrolling is instant.
5463
+ * ========================================================================= */
5464
+
5465
+ :where(html[data-text-size="smallest"]) { font-size: 80%; }
5466
+ :where(html[data-text-size="smaller"]) { font-size: 90%; }
5467
+ :where(html[data-text-size="small"]) { font-size: 95%; }
5468
+ :where(html[data-text-size="normal"]) { font-size: 100%; }
5469
+ :where(html[data-text-size="large"]) { font-size: 110%; }
5470
+ :where(html[data-text-size="larger"]) { font-size: 125%; }
5471
+ :where(html[data-text-size="largest"]) { font-size: 150%; }
5472
+
5473
+ :where(html[data-motion="reduce"]) {
5474
+ scroll-behavior: auto;
5475
+ }
5476
+ :where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
5477
+ animation-duration: 0.01ms !important;
5478
+ animation-iteration-count: 1 !important;
5479
+ animation-delay: 0s !important;
5480
+ transition-duration: 0.01ms !important;
5481
+ transition-delay: 0s !important;
5482
+ scroll-behavior: auto !important;
5483
+ }
5484
+
5485
+ /* ============================================================================
5486
+ * Forced colours and contrast preference — shared verbatim by all themes.
5487
+ *
5488
+ * Forced colours (Windows High Contrast, `forced-colors: active`): the browser
5489
+ * replaces every colour with a system colour, which erases anything a control
5490
+ * told apart by background alone. These rules give such controls a border,
5491
+ * keep the focus ring, and mark selected and current items with `Highlight`
5492
+ * and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
5493
+ *
5494
+ * Contrast preference (`prefers-contrast: more`): a heavier border on controls
5495
+ * and a thicker focus ring. Colours are not changed here; a theme's colours are
5496
+ * its author's decision.
5497
+ * ========================================================================= */
5498
+
5499
+ @media (forced-colors: active) {
5500
+ :where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
5501
+ border: 1px solid ButtonBorder;
5502
+ }
5503
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
5504
+ outline: 3px solid Highlight;
5505
+ outline-offset: 2px;
5506
+ }
5507
+ :where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
5508
+ background: SelectedItem;
5509
+ color: SelectedItemText;
5510
+ forced-color-adjust: none;
5511
+ }
5512
+ :where([aria-current]:not([aria-current="false"])) {
5513
+ outline: 2px solid Highlight;
5514
+ outline-offset: -2px;
5515
+ }
5516
+ :where(:disabled, [aria-disabled="true"]) {
5517
+ border-color: GrayText;
5518
+ color: GrayText;
5519
+ }
5520
+ }
5521
+
5522
+ @media (prefers-contrast: more) {
5523
+ :where(button, input, select, textarea, [role="button"], [class$="-button"]) {
5524
+ border-width: 2px;
5525
+ border-style: solid;
5526
+ border-color: currentColor;
5527
+ }
5528
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
5529
+ outline-width: 3px;
5530
+ outline-offset: 2px;
5531
+ }
5532
+ }
5533
+
5534
+ /* ============================================================================
5535
+ * Writing systems — shared verbatim by all themes.
5536
+ *
5537
+ * A theme names its Latin font stack (`--lily-font-body-latin`). This section
5538
+ * builds `--lily-font-body` from it, with the system fonts of the element's
5539
+ * script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
5540
+ * Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
5541
+ * scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
5542
+ * Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
5543
+ * Chinese and Japanese but drawn differently, so the language picks the font,
5544
+ * not the script.
5545
+ *
5546
+ * `--lily-font-body` is re-declared on every element with a `lang`, so a
5547
+ * `<p lang="ja">` inside an English page gets Japanese fonts and a
5548
+ * `<span lang="en">` inside it gets none. A language not listed here keeps the
5549
+ * Latin stack, whose final generic family the browser resolves per language.
5550
+ *
5551
+ * `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
5552
+ * and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
5553
+ * Elements with a `lang` use it; the app's body text should too.
5554
+ *
5555
+ * To change a theme's font, set `--lily-font-body-latin`; to change a script's,
5556
+ * set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
5557
+ * itself still works on the element you set it on.
5558
+ * ========================================================================= */
5559
+
5560
+ :where(:root, [lang]) {
5561
+ --lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
5562
+ --lily-line-height-body: 1.5;
5563
+ }
5564
+
5565
+ :where([lang]) {
5566
+ --lily-font-script: initial;
5567
+ line-height: var(--lily-line-height-body);
5568
+ }
5569
+
5570
+ :where([lang|="zh"], [lang|="wuu"]) {
5571
+ --lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
5572
+ }
5573
+ :where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
5574
+ --lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
5575
+ }
5576
+ :where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
5577
+ --lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
5578
+ }
5579
+ :where([lang|="ja"]) {
5580
+ --lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
5581
+ }
5582
+ :where([lang|="ko"]) {
5583
+ --lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
5584
+ }
5585
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
5586
+ --lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
5587
+ }
5588
+ :where([lang|="ur"]) {
5589
+ --lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
5590
+ }
5591
+ :where([lang|="he"], [lang|="yi"]) {
5592
+ --lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
5593
+ }
5594
+ :where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
5595
+ --lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
5596
+ }
5597
+ :where([lang|="bn"], [lang|="as"]) {
5598
+ --lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
5599
+ }
5600
+ :where([lang|="gu"]) {
5601
+ --lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
5602
+ }
5603
+ :where([lang|="pa"]) {
5604
+ --lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
5605
+ }
5606
+ :where([lang|="kn"]) {
5607
+ --lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
5608
+ }
5609
+ :where([lang|="ta"]) {
5610
+ --lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
5611
+ }
5612
+ :where([lang|="te"]) {
5613
+ --lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
5614
+ }
5615
+ :where([lang|="th"]) {
5616
+ --lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
5617
+ }
5618
+ :where([lang|="lo"]) {
5619
+ --lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
5620
+ }
5621
+ :where([lang|="km"]) {
5622
+ --lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
5623
+ }
5624
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
5625
+ [lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
5626
+ [lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
5627
+ [lang|="lo"], [lang|="km"]) {
5628
+ --lily-line-height-body: 1.75;
5629
+ }