@lilydesignsystem/themes 0.5.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 +967 -31
  3. package/dist/acid.css +966 -30
  4. package/dist/adobe-spectrum.css +968 -32
  5. package/dist/ant-design.css +966 -30
  6. package/dist/aqua.css +968 -32
  7. package/dist/atlassian.css +966 -30
  8. package/dist/australia-agriculture-design-system.css +4569 -0
  9. package/dist/autumn.css +968 -32
  10. package/dist/black.css +967 -31
  11. package/dist/brazil-padrao-digital-de-governo.css +4569 -0
  12. package/dist/bumblebee.css +969 -33
  13. package/dist/business.css +967 -31
  14. package/dist/canada-government-of-canada-design-system.css +4569 -0
  15. package/dist/cappuccino.css +966 -30
  16. package/dist/caramellatte.css +967 -31
  17. package/dist/cmyk.css +966 -30
  18. package/dist/coffee.css +966 -30
  19. package/dist/corporate.css +970 -34
  20. package/dist/cupcake.css +967 -31
  21. package/dist/cyberpunk.css +966 -30
  22. package/dist/dark.css +968 -32
  23. package/dist/dim.css +966 -30
  24. package/dist/dracula.css +966 -30
  25. package/dist/emerald.css +967 -31
  26. package/dist/european-union-europa-component-library.css +4569 -0
  27. package/dist/excel.css +966 -30
  28. package/dist/fantasy.css +967 -31
  29. package/dist/fluent.css +966 -30
  30. package/dist/forest.css +966 -30
  31. package/dist/garden.css +968 -32
  32. package/dist/github-primer.css +966 -30
  33. package/dist/halloween.css +967 -31
  34. package/dist/ibm-carbon.css +966 -30
  35. package/dist/japan-digital-agency-design-system.css +4569 -0
  36. package/dist/lemonade.css +966 -30
  37. package/dist/light.css +967 -31
  38. package/dist/linear.css +966 -30
  39. package/dist/lofi.css +966 -30
  40. package/dist/luxury.css +966 -30
  41. package/dist/mozilla-protocol.css +968 -32
  42. package/dist/night.css +966 -30
  43. package/dist/nord.css +966 -30
  44. package/dist/notion.css +966 -30
  45. package/dist/pastel.css +973 -37
  46. package/dist/retro.css +970 -34
  47. package/dist/salesforce.css +966 -30
  48. package/dist/sap-fiori.css +966 -30
  49. package/dist/silk.css +967 -31
  50. package/dist/singapore-government-design-system.css +4569 -0
  51. package/dist/sunset.css +966 -30
  52. package/dist/synthwave.css +966 -30
  53. package/dist/united-kingdom-government-digital-service.css +966 -30
  54. package/dist/united-kingdom-national-health-service-england-for-patients.css +990 -41
  55. package/dist/united-kingdom-national-health-service-england-for-practitioners.css +988 -39
  56. package/dist/united-kingdom-national-health-service-scotland-for-patients.css +1001 -49
  57. package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +996 -44
  58. package/dist/united-kingdom-national-health-service-wales-for-patients.css +1003 -49
  59. package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +996 -42
  60. package/dist/united-states-web-design-system.css +967 -31
  61. package/dist/valentine.css +970 -34
  62. package/dist/vercel.css +966 -30
  63. package/dist/winter.css +967 -31
  64. package/dist/wireframe.css +966 -30
  65. package/index.md +8 -4
  66. package/package.json +3 -3
@@ -18,8 +18,10 @@
18
18
  * more clinical reading of the same palette with magenta/violet
19
19
  * callouts reserved for safety messaging.
20
20
  *
21
- * Upstream tracked: NHS.UK frontend v9.x visual language (v10 is in
22
- * pre-release; re-check the palette when it goes stable). Independent
21
+ * Upstream tracked: nhsuk-frontend 10.7.1 (npm, published 2026-10-29;
22
+ * re-baselined from 9.x on 2026-10-29 against the package's Sass
23
+ * settings and CHANGELOG; v10 has been stable since 10.0.0 on
24
+ * 2025-08-26). Independent
23
25
  * implementation against Lily class hooks; not affiliated with or
24
26
  * endorsed by the NHS.
25
27
  *
@@ -37,10 +39,15 @@
37
39
  * https://www.gov.scot/publications/digital-scotland-service-standard/
38
40
  * - Typography: Frutiger W01 (primary, shared with NHS UK), Roboto for
39
41
  * NHS Inform body copy, Arial / system-ui as the universal fallback.
40
- * - Base font size: 16px; modular scale matches NHS UK (14/16/19/22/26/
41
- * 32/48/64) so components ported from the NHS UK frontend "just work".
42
- * - Spacing scale (px): 0, 4, 8, 12, 16, 24, 32, 40, 48, 64 — identical
43
- * to NHS UK frontend's `$nhsuk-spacing-responsive-scale`.
42
+ * - Base font size: 16px; type scale follows nhsuk-frontend 10 (tablet
43
+ * px 14/16/19/22/26/36/48/64; point 24 was removed in 10.0.0) so
44
+ * components ported from the NHS UK frontend "just work".
45
+ * - Spacing: nhsuk-frontend 10 spacing points (px) are 0, 4, 8, 16, 24,
46
+ * 32, 40, 48, 56, 64 (`$nhsuk-spacing-points`, unchanged from 9.x).
47
+ * - Scotland: no NHS Scotland or NHS Inform frontend package is
48
+ * published (npm search, 2026-10-29), so this theme takes
49
+ * nhsuk-frontend plus the Scottish palette below, which keeps its own
50
+ * values.
44
51
  * - WCAG 2.2 AA mandated by the Digital Scotland Service Standard;
45
52
  * Lily targets AAA. The focus indicator below clears AAA at 3:1
46
53
  * against every surface in the theme.
@@ -84,7 +91,10 @@
84
91
  * NHS Emergency Red #DA291C error / destructive action, also
85
92
  * the colour used on the "999" badge
86
93
  * inside NHS Inform.
87
- * NHS Green #009639 success / confirmation.
94
+ * NHS.UK Green #007F3B success / confirmation (nhsuk-frontend
95
+ * 10 `$nhsuk-success-colour`; was NHS
96
+ * Identity green #009639 until
97
+ * 2026-10-29).
88
98
  * NHS Dark Green #006747 success hover / pressed state.
89
99
  *
90
100
  * Geometry rules (shared with NHS UK frontend)
@@ -198,13 +208,17 @@
198
208
  --color-info: oklch(54% 0.17 247);
199
209
  --color-info-content: oklch(100% 0 0);
200
210
  /* ---- Success (NHS Green)
201
- -------------------------------------------- */ /* NHS
202
- Green #009639 — confirmation panels, completed-step
203
- indicators */ /* ("you have been booked"), and the success
204
- state on form summaries. */ /* Identical role and contrast
205
- target as the NHS UK system so shared */ /* components
206
- carry the same meaning across the border. */
207
- --color-success: oklch(56% 0.16 145);
211
+ -------------------------------------------- */ /* NHS.UK
212
+ frontend green #007F3B — confirmation panels, completed-
213
+ step indicators */ /* ("you have been booked"), and the
214
+ success state on form summaries. */ /* Identical role and
215
+ contrast target as the NHS UK system so shared */ /*
216
+ components carry the same meaning across the border. Re-
217
+ baselined 2026-10-29 to nhsuk-frontend 10.7.1 `$nhsuk-
218
+ success-colour` (core/settings/_colours-applied.scss, new
219
+ in v10); it was NHS Identity green #009639, which gave
220
+ white content 4.37:1 (below AA). Now 5.19:1. */
221
+ --color-success: oklch(52% 0.14 151);
208
222
  --color-success-content: oklch(100% 0 0);
209
223
  /* ---- Warning (NHS Warm Yellow)
210
224
  -------------------------------------- */ /* NHS Warm
@@ -244,11 +258,13 @@
244
258
  /* Inner padding hints for selectors and fields (Lily sizing). */
245
259
  --size-selector: 0.25rem;
246
260
  --size-field: 0.25rem;
247
- /* Border width: 1px hairline, matching `$nhsuk-border-width-
248
- form`. */ /* NHS Scotland's primary buttons use a 4px
249
- bottom shadow border in */ /* their own implementation;
250
- that is left to example-app CSS so the */ /* Lily token
251
- stays the universal 1px hairline. */
261
+ /* Border width: 1px hairline, Lily's own hairline, not an
262
+ upstream value: nhsuk-frontend 10 has no `$nhsuk-border-
263
+ width-form`; its form controls use `$nhsuk-border-width-
264
+ form-element` (2px). */ /* NHS Scotland's primary buttons
265
+ use a 4px bottom shadow border in */ /* their own
266
+ implementation; that is left to example-app CSS so the */
267
+ /* Lily token stays the universal 1px hairline. */
252
268
  --border: 1px;
253
269
  /* Depth & noise off — NHS Scotland identity guidance, like
254
270
  NHS UK, */ /* avoids shadows, gradients, and textures so
@@ -257,6 +273,14 @@
257
273
  settings. */
258
274
  --depth: 0;
259
275
  --noise: 0;
276
+ /* Fluid inline gutter for page containers and the main
277
+ region: grows with the viewport from a 1rem floor to a 2rem
278
+ ceiling. Spacing only, never text. */
279
+ --space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
280
+ /* Fluid gap between sections (stacks and grids): grows with
281
+ the viewport from a 1rem floor to a 2rem ceiling. Spacing
282
+ only, never text. */
283
+ --space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
260
284
  }
261
285
 
262
286
  /* ----------------------------------------------------------------------------
@@ -355,7 +379,7 @@
355
379
  /* --- Typography ---------------------------------------------------- */
356
380
  /* Body font stack — system fonts first so consumers get a
357
381
  native-feeling baseline without shipping a web font. */
358
- --lily-font-body:
382
+ --lily-font-body-latin:
359
383
  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
360
384
  Arial, sans-serif;
361
385
  /* Monospaced font stack — used by code, kbd, identifiers, and
@@ -462,9 +486,12 @@
462
486
  }
463
487
 
464
488
  /* Invalid input — red border. The `aria-invalid="true"` attribute is the
465
- ARIA contract; pairing it with a colour change keeps WCAG 1.4.1
466
- (no colour-only meaning) honest because the ARIA state is also there. */
467
- :where([class$="-input"], .input)[aria-invalid="true"] {
489
+ ARIA contract (server-rendered errors); `:user-invalid` is the native
490
+ state that matches only after the user has interacted, so a required
491
+ field is not styled invalid on load. Pairing a colour change with the
492
+ ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
493
+ :where([class$="-input"], .input)[aria-invalid="true"],
494
+ :where([class$="-input"], .input):user-invalid {
468
495
  border-color: var(--color-error);
469
496
  }
470
497
 
@@ -1001,7 +1028,7 @@
1001
1028
  color: var(--lily-text-muted);
1002
1029
  }
1003
1030
  /* Final crumb (the current page) — muted because it isn't a link. */
1004
- :where(.breadcrumb-list-item[aria-current="page"]) {
1031
+ :where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
1005
1032
  color: var(--lily-text-muted);
1006
1033
  }
1007
1034
 
@@ -1270,11 +1297,114 @@
1270
1297
  background-color: var(--color-primary);
1271
1298
  color: var(--color-primary-content);
1272
1299
  }
1273
- /* Today — outlined rather than filled, so a selected non-today date
1274
- still reads as the "selected" one. */
1300
+ /* Today — outlined and bold, never filled, so a selected non-today date still
1301
+ reads as "selected". The ring takes the cell's own text colour (currentColor),
1302
+ so it holds its contrast on a light page, a dark page and a selected cell
1303
+ alike, and the bold number says it without colour. */
1275
1304
  :where(.calendar-table-td[aria-current="date"]) {
1276
- outline: 2px solid var(--color-primary);
1277
- outline-offset: -2px;
1305
+ outline: 2px solid currentColor;
1306
+ outline-offset: -3px;
1307
+ font-weight: 700;
1308
+ }
1309
+ /* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
1310
+ :where(.calendar-table) {
1311
+ table-layout: fixed;
1312
+ }
1313
+ :where(.calendar-table-td, .calendar-table-th) {
1314
+ min-width: 0;
1315
+ overflow-wrap: anywhere;
1316
+ }
1317
+
1318
+ /* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
1319
+ :where(.data-grid-toolbar) {
1320
+ display: flex;
1321
+ flex-wrap: wrap;
1322
+ gap: var(--lily-space-sm);
1323
+ align-items: center;
1324
+ margin-block-end: var(--lily-space-sm);
1325
+ }
1326
+ :where(.data-grid-search, .data-grid-search-field) {
1327
+ padding: var(--lily-space-xs) var(--lily-space-sm);
1328
+ border: var(--border) solid var(--lily-border);
1329
+ border-radius: var(--lily-radius-sm);
1330
+ background-color: var(--lily-surface);
1331
+ color: var(--lily-text);
1332
+ font: inherit;
1333
+ }
1334
+ /* A sortable header is a button that looks like its text; the arrow follows aria-sort,
1335
+ so the state is in the markup for assistive technology and on screen for everyone. */
1336
+ :where(.data-grid-sort-button) {
1337
+ padding: 0;
1338
+ border: 0;
1339
+ background: none;
1340
+ color: inherit;
1341
+ font: inherit;
1342
+ text-align: start;
1343
+ cursor: pointer;
1344
+ }
1345
+ :where(.data-grid-sort-button:focus-visible) {
1346
+ outline: 2px solid var(--color-accent);
1347
+ outline-offset: 2px;
1348
+ }
1349
+ :where([aria-sort="none"] .data-grid-sort-button)::after {
1350
+ content: " \21C5";
1351
+ opacity: 0.5;
1352
+ }
1353
+ :where([aria-sort="ascending"] .data-grid-sort-button)::after {
1354
+ content: " \25B2";
1355
+ }
1356
+ :where([aria-sort="descending"] .data-grid-sort-button)::after {
1357
+ content: " \25BC";
1358
+ }
1359
+ :where(.data-grid-pagination) {
1360
+ display: flex;
1361
+ flex-wrap: wrap;
1362
+ gap: var(--lily-space-sm);
1363
+ align-items: center;
1364
+ justify-content: flex-end;
1365
+ margin-block-start: var(--lily-space-sm);
1366
+ }
1367
+ :where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
1368
+ padding: var(--lily-space-xs) var(--lily-space-md);
1369
+ border: var(--border) solid var(--lily-border);
1370
+ border-radius: var(--lily-radius-sm);
1371
+ background-color: var(--lily-surface);
1372
+ color: var(--lily-text);
1373
+ font: inherit;
1374
+ cursor: pointer;
1375
+ }
1376
+ :where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
1377
+ opacity: 0.5;
1378
+ cursor: not-allowed;
1379
+ }
1380
+ :where(.data-grid-column-visibility) {
1381
+ display: flex;
1382
+ flex-wrap: wrap;
1383
+ gap: var(--lily-space-sm);
1384
+ margin: 0;
1385
+ padding: var(--lily-space-xs) var(--lily-space-sm);
1386
+ border: var(--border) solid var(--lily-border);
1387
+ border-radius: var(--lily-radius-sm);
1388
+ }
1389
+ /* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
1390
+ :where([data-pinned="start"]) {
1391
+ position: sticky;
1392
+ inset-inline-start: 0;
1393
+ z-index: 1;
1394
+ background-color: var(--lily-surface);
1395
+ }
1396
+ :where([data-pinned="end"]) {
1397
+ position: sticky;
1398
+ inset-inline-end: 0;
1399
+ z-index: 1;
1400
+ background-color: var(--lily-surface);
1401
+ }
1402
+ :where(th[data-pinned]) {
1403
+ z-index: 2;
1404
+ }
1405
+ /* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
1406
+ :where(.data-table-td[data-empty]) {
1407
+ opacity: 0.7;
1278
1408
  }
1279
1409
 
1280
1410
  /* --- Kanban specifics --------------------------------------------------- */
@@ -1288,6 +1418,20 @@
1288
1418
  min-width: 14rem;
1289
1419
  }
1290
1420
 
1421
+ /* Dragging a card: the column it would land in is outlined; one that refuses it
1422
+ (canMove, allowedColumns, a full strict WIP limit) is striped and shows the
1423
+ not-allowed cursor, so "you can't drop here" is visible before the drop. */
1424
+ :where(.kanban-table-td[data-drop-target]) {
1425
+ outline: 2px dashed var(--color-accent);
1426
+ outline-offset: -3px;
1427
+ }
1428
+ :where(.kanban-table-td[data-drop-blocked]) {
1429
+ outline: 2px solid var(--color-error);
1430
+ outline-offset: -3px;
1431
+ cursor: not-allowed;
1432
+ background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
1433
+ }
1434
+
1291
1435
  /* --- Gantt specifics ---------------------------------------------------- */
1292
1436
  /* Cells marked as bars are filled with the primary colour to render the
1293
1437
  schedule bar inline within the grid. */
@@ -1295,6 +1439,20 @@
1295
1439
  background-color: var(--color-primary);
1296
1440
  }
1297
1441
 
1442
+ /* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
1443
+ is tinted; a day marked as a holiday or time off (data-unavailable /
1444
+ data-range) is striped as well, so no day is told apart by colour alone;
1445
+ a column only partly unavailable gets a bar under its header. */
1446
+ :where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
1447
+ background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
1448
+ }
1449
+ :where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
1450
+ background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
1451
+ }
1452
+ :where(.gantt-table-th[data-partly-unavailable]) {
1453
+ box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
1454
+ }
1455
+
1298
1456
  /* ==========================================================================
1299
1457
  * Cards, panels, surfaces
1300
1458
  * --------------------------------------------------------------------------
@@ -1477,13 +1635,17 @@
1477
1635
  padding: 0.75rem 1rem;
1478
1636
  }
1479
1637
 
1480
- /* Sticky promo — sits at the very top of the viewport on scroll. */
1638
+ /* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
1639
+ the component's own bottom: 0 it would stretch over the whole page and take every click. */
1481
1640
  :where(.sticky-promo-banner) {
1482
1641
  position: sticky;
1483
- inset-block-start: 0;
1484
1642
  z-index: 10;
1485
1643
  }
1486
1644
 
1645
+ :where(.sticky-promo-banner:not([data-position="bottom"])) {
1646
+ inset-block-start: 0;
1647
+ }
1648
+
1487
1649
  /* Error message — inline form-validation message. */
1488
1650
  :where(.error-message) {
1489
1651
  color: var(--lily-error-text);
@@ -1563,7 +1725,7 @@
1563
1725
  display: block;
1564
1726
  width: 100%;
1565
1727
  margin-inline: auto;
1566
- padding-inline: 1rem;
1728
+ padding-inline: var(--space-fluid-gutter);
1567
1729
  box-sizing: border-box;
1568
1730
  }
1569
1731
  /* Fixed-width — caps at a comfortable reading width (~1152px). */
@@ -1583,11 +1745,11 @@
1583
1745
  :where(.flex-stack) {
1584
1746
  display: flex;
1585
1747
  flex-direction: column;
1586
- gap: 1rem;
1748
+ gap: var(--space-fluid-section);
1587
1749
  }
1588
1750
  :where(.grid) {
1589
1751
  display: grid;
1590
- gap: 1rem;
1752
+ gap: var(--space-fluid-section);
1591
1753
  }
1592
1754
  :where(.masonry) {
1593
1755
  column-count: 3;
@@ -1642,7 +1804,7 @@
1642
1804
  :where(.content-block) {
1643
1805
  max-width: var(--content-width-normal);
1644
1806
  margin-inline: auto;
1645
- padding-inline: 1rem;
1807
+ padding-inline: var(--space-fluid-gutter);
1646
1808
  box-sizing: border-box;
1647
1809
  }
1648
1810
  :where(.content-block[data-width="narrower"]) {
@@ -1660,7 +1822,8 @@
1660
1822
 
1661
1823
  /* --- Grail layout (5-region responsive page shell) --------------------- */
1662
1824
  /* Header spans the top; left-aside / main / right-aside fill the middle;
1663
- footer spans the bottom. At ≤768px the asides drop below the main. */
1825
+ footer spans the bottom. The collapse as the window narrows is in the shared
1826
+ container section at the end of this file. */
1664
1827
  :where(.grail-layout) {
1665
1828
  display: grid;
1666
1829
  min-height: 100vh;
@@ -1700,15 +1863,7 @@
1700
1863
  }
1701
1864
  /* Main content area — primary surface, more generous padding. */
1702
1865
  :where(.grail-layout-center-main) {
1703
- padding: 1.5rem;
1704
- }
1705
- /* Mobile breakpoint — collapse to a single column, stacking the regions. */
1706
- @media (max-width: 48rem) {
1707
- :where(.grail-layout) {
1708
- grid-template-areas: "header" "main" "left" "right" "footer";
1709
- grid-template-columns: 1fr;
1710
- grid-template-rows: auto auto auto auto auto;
1711
- }
1866
+ padding: var(--space-fluid-gutter);
1712
1867
  }
1713
1868
 
1714
1869
  /* Standalone semantic header / footer landmarks. */
@@ -1799,6 +1954,15 @@
1799
1954
  /* Drawers — side panels (right edge by default; RTL-aware via logical
1800
1955
  properties). Sit above the overlay container (z-index 101). */
1801
1956
  :where(.drawer, .slide-out-drawer, .sheet) {
1957
+ /* These are <dialog> elements opened with showModal() (P18-T6): undo the
1958
+ browser's centred-box defaults so the panel docks to the edge. */
1959
+ margin: 0;
1960
+ border: 0;
1961
+ inset-inline-start: auto;
1962
+ max-block-size: none;
1963
+ max-inline-size: none;
1964
+ block-size: 100%;
1965
+ box-sizing: border-box;
1802
1966
  position: fixed;
1803
1967
  inset-block: 0;
1804
1968
  inset-inline-end: 0;
@@ -1811,6 +1975,10 @@
1811
1975
  z-index: 101;
1812
1976
  }
1813
1977
 
1978
+ :where(.drawer, .slide-out-drawer, .sheet)::backdrop {
1979
+ background-color: color-mix(in oklch, black 50%, transparent);
1980
+ }
1981
+
1814
1982
  /* ==========================================================================
1815
1983
  * Menus
1816
1984
  * ====================================================================== */
@@ -1863,7 +2031,7 @@
1863
2031
  gap: 0.25rem;
1864
2032
  }
1865
2033
  /* Hamburger — bordered icon-button. */
1866
- :where(.hamburger-menu) {
2034
+ :where(.hamburger-menu > button) {
1867
2035
  display: inline-flex;
1868
2036
  align-items: center;
1869
2037
  justify-content: center;
@@ -2221,6 +2389,7 @@
2221
2389
  .theme-picker,
2222
2390
  .locale-picker,
2223
2391
  .text-size-picker,
2392
+ .time-zone-picker,
2224
2393
  .search-picker,
2225
2394
  .link-picker,
2226
2395
  .menu-picker,
@@ -2236,6 +2405,7 @@
2236
2405
  .theme-picker-button,
2237
2406
  .locale-picker-button,
2238
2407
  .text-size-picker-button,
2408
+ .time-zone-picker-button,
2239
2409
  .search-picker-button,
2240
2410
  .link-picker-button,
2241
2411
  .menu-picker-button,
@@ -2274,6 +2444,7 @@
2274
2444
  .theme-picker-icon,
2275
2445
  .locale-picker-icon,
2276
2446
  .text-size-picker-icon,
2447
+ .time-zone-picker-icon,
2277
2448
  .motion-picker-icon,
2278
2449
  .link-picker-icon,
2279
2450
  .menu-picker-icon,
@@ -2641,6 +2812,7 @@
2641
2812
  .theme-picker-tooltip,
2642
2813
  .locale-picker-tooltip,
2643
2814
  .text-size-picker-tooltip,
2815
+ .time-zone-picker-tooltip,
2644
2816
  .motion-picker-tooltip,
2645
2817
  .link-picker-tooltip,
2646
2818
  .menu-picker-tooltip,
@@ -2668,6 +2840,7 @@
2668
2840
  .theme-picker-tooltip,
2669
2841
  .locale-picker-tooltip,
2670
2842
  .text-size-picker-tooltip,
2843
+ .time-zone-picker-tooltip,
2671
2844
  .motion-picker-tooltip,
2672
2845
  .link-picker-tooltip,
2673
2846
  .menu-picker-tooltip,
@@ -2687,6 +2860,7 @@
2687
2860
  .theme-picker-tooltip,
2688
2861
  .locale-picker-tooltip,
2689
2862
  .text-size-picker-tooltip,
2863
+ .time-zone-picker-tooltip,
2690
2864
  .motion-picker-tooltip,
2691
2865
  .link-picker-tooltip,
2692
2866
  .menu-picker-tooltip,
@@ -2743,6 +2917,7 @@
2743
2917
  .theme-picker-list,
2744
2918
  .locale-picker-list,
2745
2919
  .text-size-picker-list,
2920
+ .time-zone-picker-list,
2746
2921
  .motion-picker-list,
2747
2922
  .link-picker-list,
2748
2923
  .menu-picker-panel,
@@ -2772,6 +2947,7 @@
2772
2947
  .theme-picker-list,
2773
2948
  .locale-picker-list,
2774
2949
  .text-size-picker-list,
2950
+ .time-zone-picker-list,
2775
2951
  .motion-picker-list,
2776
2952
  .link-picker-list,
2777
2953
  .menu-picker-panel,
@@ -2792,6 +2968,7 @@
2792
2968
  :where(.theme-picker) { anchor-name: --lily-theme-picker; }
2793
2969
  :where(.locale-picker) { anchor-name: --lily-locale-picker; }
2794
2970
  :where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
2971
+ :where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
2795
2972
  :where(.motion-picker) { anchor-name: --lily-motion-picker; }
2796
2973
  :where(.link-picker) { anchor-name: --lily-link-picker; }
2797
2974
  :where(.menu-picker) { anchor-name: --lily-menu-picker; }
@@ -2801,6 +2978,7 @@
2801
2978
  :where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
2802
2979
  :where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
2803
2980
  :where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
2981
+ :where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
2804
2982
  :where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
2805
2983
  :where(.link-picker-list) { position-anchor: --lily-link-picker; }
2806
2984
  :where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
@@ -2811,6 +2989,7 @@
2811
2989
  .theme-picker-list,
2812
2990
  .locale-picker-list,
2813
2991
  .text-size-picker-list,
2992
+ .time-zone-picker-list,
2814
2993
  .motion-picker-list,
2815
2994
  .link-picker-list,
2816
2995
  .menu-picker-panel,
@@ -2828,11 +3007,56 @@
2828
3007
  }
2829
3008
  }
2830
3009
 
2831
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
3010
+ /* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
3011
+ browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
3012
+ where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
3013
+ open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
3014
+ hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
3015
+ `position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
3016
+ position-area: with no anchor, position-area does nothing and a static position can be off screen. */
3017
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
3018
+ display: none;
3019
+ }
3020
+
3021
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
3022
+ display: none;
3023
+ }
3024
+
3025
+ @supports (position-area: block-end) {
3026
+ :where(.cascader-trigger) { anchor-name: --lily-cascader; }
3027
+ :where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
3028
+ :where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
3029
+ :where(.combobox > input) { anchor-name: --lily-combobox; }
3030
+ :where(.cascader-panel) { position-anchor: --lily-cascader; }
3031
+ :where(.tree-select-panel) { position-anchor: --lily-tree-select; }
3032
+ :where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
3033
+ :where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
3034
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
3035
+ position: fixed;
3036
+ inset: auto;
3037
+ margin: 0;
3038
+ position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
3039
+ width: max-content;
3040
+ max-width: calc(100vw - 1rem);
3041
+ }
3042
+ :where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
3043
+ inset-block-start: anchor(end, 25%);
3044
+ inset-inline-start: anchor(start, 25%);
3045
+ }
3046
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
3047
+ position-area: block-end span-inline-end;
3048
+ }
3049
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
3050
+ min-inline-size: anchor-size(inline);
3051
+ }
3052
+ }
3053
+
3054
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2832
3055
  > :where(
2833
3056
  .theme-picker-option,
2834
3057
  .locale-picker-option,
2835
3058
  .text-size-picker-option,
3059
+ .time-zone-picker-option,
2836
3060
  .motion-picker-option
2837
3061
  ) {
2838
3062
  padding: var(--lily-space-xs) var(--lily-space-sm);
@@ -2842,7 +3066,7 @@
2842
3066
 
2843
3067
  /* data-active is the keyboard cursor (aria-activedescendant); focus
2844
3068
  stays on the listbox, so this is the only visible cue for it. */
2845
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
3069
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2846
3070
  > :where([data-active]) {
2847
3071
  background-color: var(--lily-surface-alt);
2848
3072
  outline: var(--lily-focus-ring);
@@ -2851,7 +3075,7 @@
2851
3075
 
2852
3076
  /* aria-selected marks the applied theme/locale, which is not the
2853
3077
  same thing as the keyboard cursor. Both can be visible at once. */
2854
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
3078
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2855
3079
  > :where([aria-selected="true"]) {
2856
3080
  font-weight: 600;
2857
3081
  background-color: var(--lily-surface-sunken);
@@ -3204,7 +3428,7 @@
3204
3428
  }
3205
3429
  /* Screen-reader-only — visually hidden but available to AT. The
3206
3430
  classic clip-rect pattern (works in every screen reader). */
3207
- :where(.screen-reader-span) {
3431
+ :where(.screen-reader-span, .middle-truncation-full) {
3208
3432
  position: absolute;
3209
3433
  width: 1px;
3210
3434
  height: 1px;
@@ -3215,6 +3439,42 @@
3215
3439
  white-space: nowrap;
3216
3440
  border: 0;
3217
3441
  }
3442
+ /* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
3443
+ text (hidden above) stays in the accessibility tree. */
3444
+ :where(.middle-truncation) {
3445
+ display: block;
3446
+ position: relative;
3447
+ overflow: hidden;
3448
+ white-space: nowrap;
3449
+ }
3450
+ /* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
3451
+ primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
3452
+ :where(.wheel-picker-list) {
3453
+ max-block-size: 10em;
3454
+ overflow-y: auto;
3455
+ overscroll-behavior: contain;
3456
+ scroll-snap-type: y mandatory;
3457
+ border: 1px solid var(--color-base-300);
3458
+ border-radius: var(--lily-radius-md);
3459
+ }
3460
+ :where(.wheel-picker-list:focus-visible) {
3461
+ outline: 2px solid var(--lily-focus-ring);
3462
+ outline-offset: 2px;
3463
+ }
3464
+ :where(.wheel-picker-option) {
3465
+ padding: 0.5rem 1rem;
3466
+ scroll-snap-align: center;
3467
+ cursor: pointer;
3468
+ }
3469
+ :where(.wheel-picker-option[aria-selected="true"]) {
3470
+ background-color: var(--color-primary);
3471
+ color: var(--color-primary-content);
3472
+ font-weight: 600;
3473
+ }
3474
+ :where(.wheel-picker-option[aria-disabled="true"]) {
3475
+ opacity: 0.5;
3476
+ cursor: not-allowed;
3477
+ }
3218
3478
 
3219
3479
  /* ==========================================================================
3220
3480
  * Hero, figure, photo, media
@@ -3747,6 +4007,81 @@
3747
4007
  min-block-size: 24px;
3748
4008
  }
3749
4009
 
4010
+ /* ============================================================================
4011
+ * Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
4012
+ *
4013
+ * Where the primary pointer is coarse (a finger), interactive hooks are at least
4014
+ * 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
4015
+ * buttons, form fields, checkboxes and radios, and the link-shaped navigation
4016
+ * hooks. Links inside running text are exempt, so bare `a` is not listed. The
4017
+ * query is the capability, never a viewport width. :where() keeps specificity
4018
+ * at zero, so any consumer rule still wins.
4019
+ * ========================================================================= */
4020
+
4021
+ @media (pointer: coarse) {
4022
+ :where(button,
4023
+ [role="button"],
4024
+ [role="tab"],
4025
+ [role="option"],
4026
+ [role="menuitem"],
4027
+ [class*="-picker-button"],
4028
+ summary,
4029
+ input:not([type="hidden"]),
4030
+ select,
4031
+ textarea,
4032
+ .action-link,
4033
+ .back-link,
4034
+ .breadcrumb-list-item > a,
4035
+ .pagination-list-item > a,
4036
+ .contents-list-item > a,
4037
+ .section-list-item > a) {
4038
+ min-inline-size: 44px;
4039
+ min-block-size: 44px;
4040
+ }
4041
+ }
4042
+
4043
+ /* ============================================================================
4044
+ * Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
4045
+ *
4046
+ * --lily-brand is the identity's decorative colour: a header band, a rule, a
4047
+ * logo background. It is NEVER a text colour or a control's boundary, because a
4048
+ * brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
4049
+ * text drawn on it. By default they follow the theme's primary pair, which every
4050
+ * theme keeps readable; an adopter whose brand colour is lighter or darker sets
4051
+ * both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
4052
+ * content pairs (--color-base-content, --lily-error-text and so on).
4053
+ * ========================================================================== */
4054
+
4055
+ :where(:root) {
4056
+ --lily-brand: var(--color-primary);
4057
+ --lily-on-brand: var(--color-primary-content);
4058
+ }
4059
+
4060
+ /* ============================================================================
4061
+ * Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
4062
+ *
4063
+ * The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
4064
+ * adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
4065
+ * and no clear-space rule, because national and local guidelines disagree: a
4066
+ * theme or the adopter sets --lily-logo-clear-space (padding around the mark)
4067
+ * and --lily-logo-min-size (its smallest inline size). Both are unset by
4068
+ * default, so nothing changes until one is set.
4069
+ * ========================================================================== */
4070
+
4071
+ @layer lily {
4072
+ :where([data-lily-logo]) {
4073
+ display: inline-block;
4074
+ padding: var(--lily-logo-clear-space, 0);
4075
+ }
4076
+
4077
+ :where([data-lily-logo] > img, [data-lily-logo] > svg) {
4078
+ display: block;
4079
+ min-inline-size: var(--lily-logo-min-size, 0);
4080
+ max-inline-size: 100%;
4081
+ block-size: auto;
4082
+ }
4083
+ }
4084
+
3750
4085
  /* ============================================================================
3751
4086
  * Overflow guards — narrow-viewport safety, shared verbatim by all themes.
3752
4087
  *
@@ -3774,3 +4109,620 @@
3774
4109
  :where(a, code) {
3775
4110
  overflow-wrap: anywhere;
3776
4111
  }
4112
+
4113
+ /* ============================================================================
4114
+ * Scoped overflow — shared verbatim by all themes.
4115
+ *
4116
+ * Long unbroken strings (a national identifier, an email address, a URL) and
4117
+ * grid/flex tracks that refuse to shrink are the usual causes of horizontal
4118
+ * page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
4119
+ * `overflow-wrap: anywhere` on the places a long value lands (table cells are
4120
+ * covered by Overflow guards above), and `min-inline-size: 0` on the direct
4121
+ * children of Lily's grid and flex containers so a child can shrink below its
4122
+ * content. The identifier `-view` list below is the catalog's 70 national
4123
+ * identifier views (components-categories.tsv); bin/check-theme fails when it
4124
+ * drifts from the catalog. :where() keeps specificity at zero.
4125
+ * ========================================================================= */
4126
+
4127
+ :where(
4128
+ .alba-community-health-index-view,
4129
+ .australia-individual-healthcare-identifier-view,
4130
+ .belgique-numero-de-registre-national-view,
4131
+ .bulgaria-edinen-grazhdanski-nomer-view,
4132
+ .cesko-cestovni-pas-view,
4133
+ .cesko-rodne-cislo-view,
4134
+ .cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
4135
+ .kypros-national-passport-number-view,
4136
+ .danmark-personnummer-view,
4137
+ .deutschland-krankenversichertennummer-view,
4138
+ .eesti-isikukood-view,
4139
+ .ellada-dematerialised-securities-system-view,
4140
+ .england-national-health-service-number-view,
4141
+ .espana-codigo-de-identificacion-fiscal-view,
4142
+ .espana-tarjeta-sanitaria-individual-view,
4143
+ .france-numero-d-identification-au-repertoire-view,
4144
+ .hrvatska-osobni-identifikacijski-broj-view,
4145
+ .eire-individual-health-identifier-view,
4146
+ .island-kennitala-view,
4147
+ .italia-codice-fiscale-view,
4148
+ .latvija-personas-kods-view,
4149
+ .liechtenstein-national-identity-card-number-view,
4150
+ .liechtenstein-passport-number-view,
4151
+ .lietuva-asmens-kodas-view,
4152
+ .lietuva-pasas-view,
4153
+ .malta-national-identification-number-view,
4154
+ .malta-passport-number-view,
4155
+ .nederland-burgerservice-nummer-view,
4156
+ .nederland-identiteitskaart-nummer-view,
4157
+ .nederland-paspoort-nummer-view,
4158
+ .norge-fodselsnummer-view,
4159
+ .tuaisceart-eireann-health-and-care-number-view,
4160
+ .polska-numer-identyfikacji-podatkowej-view,
4161
+ .polska-pesel-view,
4162
+ .portugal-numero-de-identificacao-fiscal-view,
4163
+ .portugal-passaporte-view,
4164
+ .romania-cod-numeric-personal-view,
4165
+ .romania-pasaport-view,
4166
+ .slovenija-emso-view,
4167
+ .slovensko-pas-view,
4168
+ .slovensko-rodne-cislo-view,
4169
+ .suomi-henkilotunnus-view,
4170
+ .sverige-personnummer-view,
4171
+ .iban-view,
4172
+ .united-kingdom-national-health-service-number-view,
4173
+ .united-kingdom-national-insurance-number-view,
4174
+ .united-states-social-security-number-view,
4175
+ .aotearoa-national-health-index-view,
4176
+ .pilipinas-philhealth-identification-number-view,
4177
+ .brasil-cartao-nacional-de-saude-view,
4178
+ .schweiz-ahv-nummer-view,
4179
+ .canada-social-insurance-number-view,
4180
+ .hanguk-jumin-deungnok-beonho-view,
4181
+ .nihon-kojin-bango-view,
4182
+ .bharat-aadhaar-view,
4183
+ .yisrael-teudat-zehut-view,
4184
+ .south-africa-identity-number-view,
4185
+ .mexico-clave-unica-de-registro-de-poblacion-view,
4186
+ .singapore-national-registration-identity-card-view,
4187
+ .osterreich-sozialversicherungsnummer-view,
4188
+ .magyarorszag-taj-szam-view,
4189
+ .luxembourg-matricule-view,
4190
+ .zhongguo-jumin-shenfenzheng-haoma-view,
4191
+ .rossiya-snils-view,
4192
+ .turkiye-tc-kimlik-numarasi-view,
4193
+ .argentina-codigo-unico-de-identificacion-laboral-view,
4194
+ .ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
4195
+ .indonesia-nomor-induk-kependudukan-view,
4196
+ .prathet-thai-lek-prajam-tua-prachachon-view,
4197
+ .chile-rol-unico-nacional-view,
4198
+ .taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
4199
+ .hong-kong-identity-card-view,
4200
+ .iran-kod-e-melli-view,
4201
+ .as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
4202
+ .malaysia-kad-pengenalan-view,
4203
+ .viet-nam-can-cuoc-cong-dan-view,
4204
+ .pakistan-computerized-national-identity-card-view,
4205
+ .uruguay-cedula-de-identidad-view,
4206
+ .ecuador-cedula-de-identidad-view,
4207
+ .colombia-cedula-de-ciudadania-view,
4208
+ .australia-tax-file-number-view,
4209
+ .nigeria-national-identification-number-view,
4210
+ .misr-al-raqm-al-qawmi-view
4211
+ ) {
4212
+ overflow-wrap: anywhere;
4213
+ }
4214
+
4215
+ /* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
4216
+ :where(.summary-list, .summary-list-item, .description-list) {
4217
+ overflow-wrap: anywhere;
4218
+ }
4219
+
4220
+ :where(
4221
+ .grid,
4222
+ .flex-stack,
4223
+ .grail-layout,
4224
+ .summary-list,
4225
+ .summary-list-item,
4226
+ .description-list,
4227
+ .form,
4228
+ .editable-form,
4229
+ .field,
4230
+ .input-group,
4231
+ .button-group,
4232
+ .radio-group,
4233
+ .checkbox-group,
4234
+ .toggle-group,
4235
+ .tag-group,
4236
+ .split-view,
4237
+ .photo-pack,
4238
+ .data-filter-form,
4239
+ .action-bar,
4240
+ .tool-bar,
4241
+ .menu-bar,
4242
+ .tab-bar
4243
+ ) > :where(*) {
4244
+ min-inline-size: 0;
4245
+ }
4246
+
4247
+ /* ============================================================================
4248
+ * Helper packages — layout and look, shared verbatim by all themes.
4249
+ *
4250
+ * The data grid, kanban board, Gantt chart and calendar view are wide by nature.
4251
+ * Each root scrolls sideways inside its own box and its table sizes to its content,
4252
+ * so a narrow screen scrolls the table instead of wrapping every cell to a letter
4253
+ * (the overflow guard above lets cells break anywhere, which is right for prose and
4254
+ * wrong for a table that has a scroller). The toolbar controls of all four helpers
4255
+ * share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
4256
+ * the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
4257
+ * today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
4258
+ * ========================================================================= */
4259
+
4260
+ :where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
4261
+ max-inline-size: 100%;
4262
+ overflow-x: auto;
4263
+ }
4264
+
4265
+ :where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
4266
+ inline-size: max-content;
4267
+ min-inline-size: 100%;
4268
+ }
4269
+
4270
+ :where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
4271
+ .calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
4272
+ display: flex;
4273
+ flex-wrap: wrap;
4274
+ gap: var(--lily-space-sm);
4275
+ align-items: center;
4276
+ margin-block-end: var(--lily-space-sm);
4277
+ }
4278
+
4279
+ :where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
4280
+ padding: var(--lily-space-xs) var(--lily-space-sm);
4281
+ border: var(--border) solid var(--lily-border);
4282
+ border-radius: var(--lily-radius-sm);
4283
+ background-color: var(--lily-surface);
4284
+ color: var(--lily-text);
4285
+ font: inherit;
4286
+ min-block-size: 24px;
4287
+ }
4288
+
4289
+ :where(.kanban-board-export-button,
4290
+ .kanban-board-add-button,
4291
+ .kanban-board-undo-button,
4292
+ .kanban-board-collapse-button,
4293
+ .kanban-board-lane-toggle,
4294
+ .kanban-board-move-button,
4295
+ .gantt-chart-export-button,
4296
+ .gantt-chart-zoom-in-button,
4297
+ .gantt-chart-zoom-out-button,
4298
+ .gantt-chart-collapse-button,
4299
+ .gantt-chart-collapse-all-button,
4300
+ .gantt-chart-expand-all-button,
4301
+ .gantt-chart-save-button,
4302
+ .gantt-chart-cancel-button,
4303
+ .calendar-view-export-button,
4304
+ .calendar-view-previous-button,
4305
+ .calendar-view-next-button,
4306
+ .calendar-view-today-button,
4307
+ .calendar-view-switcher-button) {
4308
+ padding: var(--lily-space-xs) var(--lily-space-md);
4309
+ border: var(--border) solid var(--lily-border);
4310
+ border-radius: var(--lily-radius-sm);
4311
+ background-color: var(--lily-surface);
4312
+ color: var(--lily-text);
4313
+ font: inherit;
4314
+ cursor: pointer;
4315
+ min-inline-size: 24px;
4316
+ min-block-size: 24px;
4317
+ }
4318
+
4319
+ :where(.kanban-board-export-button:disabled,
4320
+ .kanban-board-add-button:disabled,
4321
+ .kanban-board-undo-button:disabled,
4322
+ .gantt-chart-export-button:disabled,
4323
+ .gantt-chart-zoom-in-button:disabled,
4324
+ .gantt-chart-zoom-out-button:disabled,
4325
+ .calendar-view-export-button:disabled,
4326
+ .calendar-view-previous-button[aria-disabled="true"],
4327
+ .calendar-view-next-button[aria-disabled="true"]) {
4328
+ opacity: 0.5;
4329
+ cursor: not-allowed;
4330
+ }
4331
+
4332
+ :where(.calendar-view-switcher-button[aria-pressed="true"]) {
4333
+ background-color: var(--color-base-300);
4334
+ font-weight: 600;
4335
+ }
4336
+
4337
+ :where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
4338
+ margin-block-start: var(--lily-space-sm);
4339
+ font-size: 0.875em;
4340
+ opacity: 0.8;
4341
+ }
4342
+
4343
+ :where(.calendar-view-event) {
4344
+ display: block;
4345
+ padding: 0 var(--lily-space-xs);
4346
+ border-radius: var(--lily-radius-sm);
4347
+ background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
4348
+ font-size: 0.75rem;
4349
+ }
4350
+
4351
+ :where(.gantt-table-th) {
4352
+ min-inline-size: 2rem;
4353
+ padding-inline: 0.25rem;
4354
+ font-size: 0.75rem;
4355
+ text-align: center;
4356
+ white-space: nowrap;
4357
+ }
4358
+
4359
+ :where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
4360
+ min-inline-size: 10rem;
4361
+ padding-inline: var(--lily-space-sm);
4362
+ font-size: inherit;
4363
+ text-align: start;
4364
+ white-space: normal;
4365
+ }
4366
+
4367
+ :where(.gantt-table-td) {
4368
+ min-block-size: 1.7rem;
4369
+ padding: 0;
4370
+ }
4371
+
4372
+ :where(.gantt-table-td[data-in-range]) {
4373
+ background-color: var(--color-primary);
4374
+ /* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
4375
+ color: var(--color-primary-content);
4376
+ }
4377
+
4378
+ :where(.gantt-table-td[data-in-range][data-milestone]) {
4379
+ clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
4380
+ }
4381
+
4382
+ :where(.gantt-table-td[data-today]) {
4383
+ border-inline-start: 2px solid var(--color-accent);
4384
+ }
4385
+
4386
+ /* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
4387
+ option up to a cap, then wrap, rather than clipping the name or running off a phone. */
4388
+ :where(.time-zone-picker-list) {
4389
+ inline-size: max-content;
4390
+ max-inline-size: min(26rem, 90vw);
4391
+ max-block-size: min(24rem, 70vh);
4392
+ overflow-y: auto;
4393
+ }
4394
+
4395
+ :where(.time-zone-picker-option) {
4396
+ overflow-wrap: anywhere;
4397
+ }
4398
+
4399
+ /* ============================================================================
4400
+ * Overflow navigation — shared verbatim by all themes.
4401
+ *
4402
+ * The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
4403
+ * With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
4404
+ * (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
4405
+ * the links that do not fit into the More list. That list is in normal flow (position
4406
+ * static, never absolute), so opening it pushes the content below down and never covers it
4407
+ * (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
4408
+ * specificity at zero, so any consumer rule wins.
4409
+ * ========================================================================= */
4410
+
4411
+ :where(.navigation-menu-list) {
4412
+ display: flex;
4413
+ flex: 1 1 auto;
4414
+ flex-wrap: wrap;
4415
+ align-items: flex-start;
4416
+ gap: 0.25rem 0.5rem;
4417
+ min-inline-size: 0;
4418
+ margin: 0;
4419
+ padding: 0;
4420
+ list-style: none;
4421
+ }
4422
+
4423
+ :where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
4424
+ display: inline-block;
4425
+ min-inline-size: 24px;
4426
+ min-block-size: 24px;
4427
+ }
4428
+
4429
+ :where(.navigation-menu-more) {
4430
+ position: static;
4431
+ }
4432
+
4433
+ :where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
4434
+ display: none;
4435
+ }
4436
+
4437
+ :where(.navigation-menu-more-button) {
4438
+ min-inline-size: 24px;
4439
+ min-block-size: 24px;
4440
+ padding: 0.25rem 0.5rem;
4441
+ font: inherit;
4442
+ color: inherit;
4443
+ background: transparent;
4444
+ border: 1px solid currentcolor;
4445
+ cursor: pointer;
4446
+ }
4447
+
4448
+ :where(.navigation-menu-more-list) {
4449
+ position: static;
4450
+ margin: 0.25rem 0 0;
4451
+ padding: 0;
4452
+ list-style: none;
4453
+ }
4454
+
4455
+ /* ============================================================================
4456
+ * Container queries — shared verbatim by all themes.
4457
+ *
4458
+ * A component answers to the space it is given, not to the window: a summary
4459
+ * list in a narrow aside on a wide screen needs the narrow layout, which the
4460
+ * viewport query above cannot know. The three grail-layout regions are the
4461
+ * containers because their width comes from a grid track (`minmax(0, 1fr)`), so
4462
+ * inline-size containment cannot collapse them. `.card` is deliberately not a
4463
+ * container: in a shrink-to-fit parent (a flex row, an inline grid) containment
4464
+ * would collapse it to nothing. A component outside a grail region has no
4465
+ * container and keeps its wide layout. :where() keeps specificity at zero, so
4466
+ * any consumer rule wins.
4467
+ * ========================================================================= */
4468
+
4469
+ :where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
4470
+ container-type: inline-size;
4471
+ }
4472
+
4473
+ /* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
4474
+ window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
4475
+ Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
4476
+ (at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
4477
+ right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
4478
+ hidden, so all content stays reachable. */
4479
+ @media (max-width: 64rem) {
4480
+ :where(.grail-layout) {
4481
+ grid-template-areas:
4482
+ "header header"
4483
+ "left main"
4484
+ "right right"
4485
+ "footer footer";
4486
+ grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
4487
+ grid-template-rows: auto auto auto auto;
4488
+ }
4489
+ }
4490
+
4491
+ @media (max-width: 48rem) {
4492
+ :where(.grail-layout) {
4493
+ grid-template-areas:
4494
+ "header"
4495
+ "left"
4496
+ "main"
4497
+ "right"
4498
+ "footer";
4499
+ grid-template-columns: minmax(0, 1fr);
4500
+ grid-template-rows: auto auto auto auto auto;
4501
+ }
4502
+ }
4503
+
4504
+ @container (max-width: 30rem) {
4505
+ :where(.summary-list) {
4506
+ grid-template-columns: minmax(0, 1fr);
4507
+ row-gap: 0.25rem;
4508
+ }
4509
+
4510
+ :where(.kanban-table-td) {
4511
+ min-width: 10rem;
4512
+ }
4513
+
4514
+ :where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
4515
+ padding-inline: 0.5rem;
4516
+ }
4517
+ }
4518
+
4519
+ /* ============================================================================
4520
+ * Focus not obscured — shared verbatim by all themes.
4521
+ *
4522
+ * WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
4523
+ * entirely hidden by author-created content, such as a bar fixed to the top or
4524
+ * bottom of the viewport. The browser scrolls a focused control into view, but
4525
+ * only as far as the edge of the viewport, which is where a fixed bar sits.
4526
+ * `scroll-padding` moves that edge in by the bar's height.
4527
+ *
4528
+ * Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
4529
+ * theme's or an app's own fixed header, a mobile bottom navigation) sets the
4530
+ * bar's height on the root element:
4531
+ *
4532
+ * --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
4533
+ * --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
4534
+ *
4535
+ * With both bars, set both. The defaults are 0px, so a page without a fixed bar
4536
+ * is unchanged. Specificity is zero (`:where`), so an app's own
4537
+ * `scroll-padding` wins.
4538
+ * ========================================================================= */
4539
+
4540
+ :where(html) {
4541
+ scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
4542
+ }
4543
+
4544
+ /* ============================================================================
4545
+ * Text size and motion preferences — shared verbatim by all themes.
4546
+ *
4547
+ * The text-size-picker sets `data-text-size` on the root and the motion-picker
4548
+ * sets `data-motion`; neither styles anything itself. These rules are what make
4549
+ * the choice visible.
4550
+ *
4551
+ * Text size: the seven steps scale the root font size, and every theme sizes in
4552
+ * `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
4553
+ * own browser setting), and the scale is percentages of that, never pixels, so
4554
+ * a viewer who raised their browser font size keeps it. The steps below
4555
+ * `normal` are the viewer's explicit choice.
4556
+ *
4557
+ * Motion: `data-motion="reduce"` shortens every animation and transition to
4558
+ * 0.01ms instead of removing it. The end state still arrives and `animationend`
4559
+ * / `transitionend` still fire, so nothing that depends on them breaks and no
4560
+ * information is lost: a spinner's `role="status"` text, a disclosure's open
4561
+ * state and a toast's content are untouched. Scrolling is instant.
4562
+ * ========================================================================= */
4563
+
4564
+ :where(html[data-text-size="smallest"]) { font-size: 80%; }
4565
+ :where(html[data-text-size="smaller"]) { font-size: 90%; }
4566
+ :where(html[data-text-size="small"]) { font-size: 95%; }
4567
+ :where(html[data-text-size="normal"]) { font-size: 100%; }
4568
+ :where(html[data-text-size="large"]) { font-size: 110%; }
4569
+ :where(html[data-text-size="larger"]) { font-size: 125%; }
4570
+ :where(html[data-text-size="largest"]) { font-size: 150%; }
4571
+
4572
+ :where(html[data-motion="reduce"]) {
4573
+ scroll-behavior: auto;
4574
+ }
4575
+ :where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
4576
+ animation-duration: 0.01ms !important;
4577
+ animation-iteration-count: 1 !important;
4578
+ animation-delay: 0s !important;
4579
+ transition-duration: 0.01ms !important;
4580
+ transition-delay: 0s !important;
4581
+ scroll-behavior: auto !important;
4582
+ }
4583
+
4584
+ /* ============================================================================
4585
+ * Forced colours and contrast preference — shared verbatim by all themes.
4586
+ *
4587
+ * Forced colours (Windows High Contrast, `forced-colors: active`): the browser
4588
+ * replaces every colour with a system colour, which erases anything a control
4589
+ * told apart by background alone. These rules give such controls a border,
4590
+ * keep the focus ring, and mark selected and current items with `Highlight`
4591
+ * and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
4592
+ *
4593
+ * Contrast preference (`prefers-contrast: more`): a heavier border on controls
4594
+ * and a thicker focus ring. Colours are not changed here; a theme's colours are
4595
+ * its author's decision.
4596
+ * ========================================================================= */
4597
+
4598
+ @media (forced-colors: active) {
4599
+ :where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
4600
+ border: 1px solid ButtonBorder;
4601
+ }
4602
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
4603
+ outline: 3px solid Highlight;
4604
+ outline-offset: 2px;
4605
+ }
4606
+ :where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
4607
+ background: SelectedItem;
4608
+ color: SelectedItemText;
4609
+ forced-color-adjust: none;
4610
+ }
4611
+ :where([aria-current]:not([aria-current="false"])) {
4612
+ outline: 2px solid Highlight;
4613
+ outline-offset: -2px;
4614
+ }
4615
+ :where(:disabled, [aria-disabled="true"]) {
4616
+ border-color: GrayText;
4617
+ color: GrayText;
4618
+ }
4619
+ }
4620
+
4621
+ @media (prefers-contrast: more) {
4622
+ :where(button, input, select, textarea, [role="button"], [class$="-button"]) {
4623
+ border-width: 2px;
4624
+ border-style: solid;
4625
+ border-color: currentColor;
4626
+ }
4627
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
4628
+ outline-width: 3px;
4629
+ outline-offset: 2px;
4630
+ }
4631
+ }
4632
+
4633
+ /* ============================================================================
4634
+ * Writing systems — shared verbatim by all themes.
4635
+ *
4636
+ * A theme names its Latin font stack (`--lily-font-body-latin`). This section
4637
+ * builds `--lily-font-body` from it, with the system fonts of the element's
4638
+ * script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
4639
+ * Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
4640
+ * scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
4641
+ * Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
4642
+ * Chinese and Japanese but drawn differently, so the language picks the font,
4643
+ * not the script.
4644
+ *
4645
+ * `--lily-font-body` is re-declared on every element with a `lang`, so a
4646
+ * `<p lang="ja">` inside an English page gets Japanese fonts and a
4647
+ * `<span lang="en">` inside it gets none. A language not listed here keeps the
4648
+ * Latin stack, whose final generic family the browser resolves per language.
4649
+ *
4650
+ * `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
4651
+ * and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
4652
+ * Elements with a `lang` use it; the app's body text should too.
4653
+ *
4654
+ * To change a theme's font, set `--lily-font-body-latin`; to change a script's,
4655
+ * set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
4656
+ * itself still works on the element you set it on.
4657
+ * ========================================================================= */
4658
+
4659
+ :where(:root, [lang]) {
4660
+ --lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
4661
+ --lily-line-height-body: 1.5;
4662
+ }
4663
+
4664
+ :where([lang]) {
4665
+ --lily-font-script: initial;
4666
+ line-height: var(--lily-line-height-body);
4667
+ }
4668
+
4669
+ :where([lang|="zh"], [lang|="wuu"]) {
4670
+ --lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
4671
+ }
4672
+ :where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
4673
+ --lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
4674
+ }
4675
+ :where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
4676
+ --lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
4677
+ }
4678
+ :where([lang|="ja"]) {
4679
+ --lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
4680
+ }
4681
+ :where([lang|="ko"]) {
4682
+ --lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
4683
+ }
4684
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
4685
+ --lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
4686
+ }
4687
+ :where([lang|="ur"]) {
4688
+ --lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
4689
+ }
4690
+ :where([lang|="he"], [lang|="yi"]) {
4691
+ --lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
4692
+ }
4693
+ :where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
4694
+ --lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
4695
+ }
4696
+ :where([lang|="bn"], [lang|="as"]) {
4697
+ --lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
4698
+ }
4699
+ :where([lang|="gu"]) {
4700
+ --lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
4701
+ }
4702
+ :where([lang|="pa"]) {
4703
+ --lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
4704
+ }
4705
+ :where([lang|="kn"]) {
4706
+ --lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
4707
+ }
4708
+ :where([lang|="ta"]) {
4709
+ --lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
4710
+ }
4711
+ :where([lang|="te"]) {
4712
+ --lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
4713
+ }
4714
+ :where([lang|="th"]) {
4715
+ --lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
4716
+ }
4717
+ :where([lang|="lo"]) {
4718
+ --lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
4719
+ }
4720
+ :where([lang|="km"]) {
4721
+ --lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
4722
+ }
4723
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
4724
+ [lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
4725
+ [lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
4726
+ [lang|="lo"], [lang|="km"]) {
4727
+ --lily-line-height-body: 1.75;
4728
+ }