@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
@@ -1,8 +1,10 @@
1
1
  /* ============================================================================
2
2
  * NHS England (United Kingdom) Design System
3
3
  * ----------------------------------------------------------------------------
4
- * Upstream tracked: NHS.UK frontend v9.x visual language (v10 is in
5
- * pre-release; re-check the palette when it goes stable). Independent
4
+ * Upstream tracked: nhsuk-frontend 10.7.1 (npm, published 2026-10-29;
5
+ * re-baselined from 9.x on 2026-10-29 against the package's Sass
6
+ * settings and CHANGELOG; v10 has been stable since 10.0.0 on
7
+ * 2025-08-26). Independent
6
8
  * implementation against Lily class hooks; not affiliated with or
7
9
  * endorsed by the NHS.
8
10
  *
@@ -13,9 +15,13 @@
13
15
  * - NHS frontend tokens (Sass source):
14
16
  * https://github.com/nhsuk/nhsuk-frontend
15
17
  * - Typography: Frutiger W01 (primary), Arial / system-ui fallback
16
- * - Base font size: 16px, modular scale (14 / 16 / 19 / 22 / 26 / 32 / 48 / 64)
17
- * - Spacing scale (px): 0, 4, 8, 12, 16, 24, 32, 40, 48, 64
18
- * - WCAG 2.2 AAA target; focus outline is 4px solid #FFEB3B over #212B32
18
+ * - Base font size: 16px; nhsuk-frontend 10 type scale points (tablet px):
19
+ * 14 / 16 / 19 / 22 / 26 / 36 / 48 / 64 (point 24 was removed in 10.0.0)
20
+ * - nhsuk-frontend 10 spacing points (px): 0, 4, 8, 16, 24, 32, 40, 48, 56, 64
21
+ * (unchanged from 9.x)
22
+ * - WCAG 2.2 AAA target. Upstream focus style (unchanged in v10): #FFEB3B
23
+ * fill with a 4px #212B32 bar (`$nhsuk-focus-width`); this theme's own
24
+ * focus ring is `--lily-focus-ring` below
19
25
  *
20
26
  * Brand palette (sRGB → OKLCH conversions used below)
21
27
  * NHS Blue #005EB8 primary brand colour
@@ -30,7 +36,9 @@
30
36
  * NHS White #FFFFFF page background
31
37
  * NHS Warm Yellow #FFB81C warning / focus indicator
32
38
  * NHS Emergency Red #DA291C error / destructive action
33
- * NHS Green #009639 success / confirmation
39
+ * NHS.UK Green #007F3B success / confirmation (nhsuk-frontend 10
40
+ * `$nhsuk-success-colour`; was NHS Identity
41
+ * green #009639 until 2026-10-29)
34
42
  * NHS Dark Green #006747 success hover
35
43
  *
36
44
  * Geometry rules (NHS frontend defaults)
@@ -113,9 +121,12 @@
113
121
  /* ---- Success (NHS Green)
114
122
  -------------------------------------------- */ /*
115
123
  Confirmation, completed-step, "you have been booked"
116
- panels. */ /* NHS Green #009639 — meets 4.5:1 against white
117
- when paired below. */
118
- --color-success: oklch(56% 0.16 145);
124
+ panels. */ /* NHS.UK frontend green #007F3B, nhsuk-frontend
125
+ 10.7.1 `$nhsuk-success-colour` (core/settings/_colours-
126
+ applied.scss, new in v10). Re-baselined 2026-10-29 from NHS
127
+ Identity green #009639, which gave white content 4.37:1
128
+ (below AA); white content is now 5.19:1. */
129
+ --color-success: oklch(52% 0.14 151);
119
130
  --color-success-content: oklch(100% 0 0);
120
131
  /* ---- Warning (NHS Warm Yellow)
121
132
  -------------------------------------- */ /* Caution
@@ -146,14 +157,24 @@
146
157
  /* Inner padding hints for selectors and fields (Lily sizing). */
147
158
  --size-selector: 0.25rem;
148
159
  --size-field: 0.25rem;
149
- /* Border width: 1px hairline, matching `$nhsuk-border-width-
150
- form`. */
160
+ /* Border width: 1px hairline, Lily's own hairline, not an
161
+ upstream value: nhsuk-frontend 10 has no `$nhsuk-border-
162
+ width-form`; its form controls use `$nhsuk-border-width-
163
+ form-element` (2px). */
151
164
  --border: 1px;
152
165
  /* Depth & noise off — NHS guidance avoids shadows and
153
166
  textures so */ /* the interface looks clinical, calm, and
154
167
  easy to read. */
155
168
  --depth: 0;
156
169
  --noise: 0;
170
+ /* Fluid inline gutter for page containers and the main
171
+ region: grows with the viewport from a 1rem floor to a 2rem
172
+ ceiling. Spacing only, never text. */
173
+ --space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
174
+ /* Fluid gap between sections (stacks and grids): grows with
175
+ the viewport from a 1rem floor to a 2rem ceiling. Spacing
176
+ only, never text. */
177
+ --space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
157
178
  }
158
179
 
159
180
  /* ----------------------------------------------------------------------------
@@ -252,7 +273,7 @@
252
273
  /* --- Typography ---------------------------------------------------- */
253
274
  /* Body font stack — system fonts first so consumers get a
254
275
  native-feeling baseline without shipping a web font. */
255
- --lily-font-body:
276
+ --lily-font-body-latin:
256
277
  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
257
278
  Arial, sans-serif;
258
279
  /* Monospaced font stack — used by code, kbd, identifiers, and
@@ -359,9 +380,12 @@
359
380
  }
360
381
 
361
382
  /* Invalid input — red border. The `aria-invalid="true"` attribute is the
362
- ARIA contract; pairing it with a colour change keeps WCAG 1.4.1
363
- (no colour-only meaning) honest because the ARIA state is also there. */
364
- :where([class$="-input"], .input)[aria-invalid="true"] {
383
+ ARIA contract (server-rendered errors); `:user-invalid` is the native
384
+ state that matches only after the user has interacted, so a required
385
+ field is not styled invalid on load. Pairing a colour change with the
386
+ ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
387
+ :where([class$="-input"], .input)[aria-invalid="true"],
388
+ :where([class$="-input"], .input):user-invalid {
365
389
  border-color: var(--color-error);
366
390
  }
367
391
 
@@ -898,7 +922,7 @@
898
922
  color: var(--lily-text-muted);
899
923
  }
900
924
  /* Final crumb (the current page) — muted because it isn't a link. */
901
- :where(.breadcrumb-list-item[aria-current="page"]) {
925
+ :where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
902
926
  color: var(--lily-text-muted);
903
927
  }
904
928
 
@@ -1167,11 +1191,114 @@
1167
1191
  background-color: var(--color-primary);
1168
1192
  color: var(--color-primary-content);
1169
1193
  }
1170
- /* Today — outlined rather than filled, so a selected non-today date
1171
- still reads as the "selected" one. */
1194
+ /* Today — outlined and bold, never filled, so a selected non-today date still
1195
+ reads as "selected". The ring takes the cell's own text colour (currentColor),
1196
+ so it holds its contrast on a light page, a dark page and a selected cell
1197
+ alike, and the bold number says it without colour. */
1172
1198
  :where(.calendar-table-td[aria-current="date"]) {
1173
- outline: 2px solid var(--color-primary);
1174
- outline-offset: -2px;
1199
+ outline: 2px solid currentColor;
1200
+ outline-offset: -3px;
1201
+ font-weight: 700;
1202
+ }
1203
+ /* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
1204
+ :where(.calendar-table) {
1205
+ table-layout: fixed;
1206
+ }
1207
+ :where(.calendar-table-td, .calendar-table-th) {
1208
+ min-width: 0;
1209
+ overflow-wrap: anywhere;
1210
+ }
1211
+
1212
+ /* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
1213
+ :where(.data-grid-toolbar) {
1214
+ display: flex;
1215
+ flex-wrap: wrap;
1216
+ gap: var(--lily-space-sm);
1217
+ align-items: center;
1218
+ margin-block-end: var(--lily-space-sm);
1219
+ }
1220
+ :where(.data-grid-search, .data-grid-search-field) {
1221
+ padding: var(--lily-space-xs) var(--lily-space-sm);
1222
+ border: var(--border) solid var(--lily-border);
1223
+ border-radius: var(--lily-radius-sm);
1224
+ background-color: var(--lily-surface);
1225
+ color: var(--lily-text);
1226
+ font: inherit;
1227
+ }
1228
+ /* A sortable header is a button that looks like its text; the arrow follows aria-sort,
1229
+ so the state is in the markup for assistive technology and on screen for everyone. */
1230
+ :where(.data-grid-sort-button) {
1231
+ padding: 0;
1232
+ border: 0;
1233
+ background: none;
1234
+ color: inherit;
1235
+ font: inherit;
1236
+ text-align: start;
1237
+ cursor: pointer;
1238
+ }
1239
+ :where(.data-grid-sort-button:focus-visible) {
1240
+ outline: 2px solid var(--color-accent);
1241
+ outline-offset: 2px;
1242
+ }
1243
+ :where([aria-sort="none"] .data-grid-sort-button)::after {
1244
+ content: " \21C5";
1245
+ opacity: 0.5;
1246
+ }
1247
+ :where([aria-sort="ascending"] .data-grid-sort-button)::after {
1248
+ content: " \25B2";
1249
+ }
1250
+ :where([aria-sort="descending"] .data-grid-sort-button)::after {
1251
+ content: " \25BC";
1252
+ }
1253
+ :where(.data-grid-pagination) {
1254
+ display: flex;
1255
+ flex-wrap: wrap;
1256
+ gap: var(--lily-space-sm);
1257
+ align-items: center;
1258
+ justify-content: flex-end;
1259
+ margin-block-start: var(--lily-space-sm);
1260
+ }
1261
+ :where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
1262
+ padding: var(--lily-space-xs) var(--lily-space-md);
1263
+ border: var(--border) solid var(--lily-border);
1264
+ border-radius: var(--lily-radius-sm);
1265
+ background-color: var(--lily-surface);
1266
+ color: var(--lily-text);
1267
+ font: inherit;
1268
+ cursor: pointer;
1269
+ }
1270
+ :where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
1271
+ opacity: 0.5;
1272
+ cursor: not-allowed;
1273
+ }
1274
+ :where(.data-grid-column-visibility) {
1275
+ display: flex;
1276
+ flex-wrap: wrap;
1277
+ gap: var(--lily-space-sm);
1278
+ margin: 0;
1279
+ padding: var(--lily-space-xs) var(--lily-space-sm);
1280
+ border: var(--border) solid var(--lily-border);
1281
+ border-radius: var(--lily-radius-sm);
1282
+ }
1283
+ /* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
1284
+ :where([data-pinned="start"]) {
1285
+ position: sticky;
1286
+ inset-inline-start: 0;
1287
+ z-index: 1;
1288
+ background-color: var(--lily-surface);
1289
+ }
1290
+ :where([data-pinned="end"]) {
1291
+ position: sticky;
1292
+ inset-inline-end: 0;
1293
+ z-index: 1;
1294
+ background-color: var(--lily-surface);
1295
+ }
1296
+ :where(th[data-pinned]) {
1297
+ z-index: 2;
1298
+ }
1299
+ /* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
1300
+ :where(.data-table-td[data-empty]) {
1301
+ opacity: 0.7;
1175
1302
  }
1176
1303
 
1177
1304
  /* --- Kanban specifics --------------------------------------------------- */
@@ -1185,6 +1312,20 @@
1185
1312
  min-width: 14rem;
1186
1313
  }
1187
1314
 
1315
+ /* Dragging a card: the column it would land in is outlined; one that refuses it
1316
+ (canMove, allowedColumns, a full strict WIP limit) is striped and shows the
1317
+ not-allowed cursor, so "you can't drop here" is visible before the drop. */
1318
+ :where(.kanban-table-td[data-drop-target]) {
1319
+ outline: 2px dashed var(--color-accent);
1320
+ outline-offset: -3px;
1321
+ }
1322
+ :where(.kanban-table-td[data-drop-blocked]) {
1323
+ outline: 2px solid var(--color-error);
1324
+ outline-offset: -3px;
1325
+ cursor: not-allowed;
1326
+ background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
1327
+ }
1328
+
1188
1329
  /* --- Gantt specifics ---------------------------------------------------- */
1189
1330
  /* Cells marked as bars are filled with the primary colour to render the
1190
1331
  schedule bar inline within the grid. */
@@ -1192,6 +1333,20 @@
1192
1333
  background-color: var(--color-primary);
1193
1334
  }
1194
1335
 
1336
+ /* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
1337
+ is tinted; a day marked as a holiday or time off (data-unavailable /
1338
+ data-range) is striped as well, so no day is told apart by colour alone;
1339
+ a column only partly unavailable gets a bar under its header. */
1340
+ :where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
1341
+ background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
1342
+ }
1343
+ :where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
1344
+ background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
1345
+ }
1346
+ :where(.gantt-table-th[data-partly-unavailable]) {
1347
+ box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
1348
+ }
1349
+
1195
1350
  /* ==========================================================================
1196
1351
  * Cards, panels, surfaces
1197
1352
  * --------------------------------------------------------------------------
@@ -1374,13 +1529,17 @@
1374
1529
  padding: 0.75rem 1rem;
1375
1530
  }
1376
1531
 
1377
- /* Sticky promo — sits at the very top of the viewport on scroll. */
1532
+ /* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
1533
+ the component's own bottom: 0 it would stretch over the whole page and take every click. */
1378
1534
  :where(.sticky-promo-banner) {
1379
1535
  position: sticky;
1380
- inset-block-start: 0;
1381
1536
  z-index: 10;
1382
1537
  }
1383
1538
 
1539
+ :where(.sticky-promo-banner:not([data-position="bottom"])) {
1540
+ inset-block-start: 0;
1541
+ }
1542
+
1384
1543
  /* Error message — inline form-validation message. */
1385
1544
  :where(.error-message) {
1386
1545
  color: var(--lily-error-text);
@@ -1460,7 +1619,7 @@
1460
1619
  display: block;
1461
1620
  width: 100%;
1462
1621
  margin-inline: auto;
1463
- padding-inline: 1rem;
1622
+ padding-inline: var(--space-fluid-gutter);
1464
1623
  box-sizing: border-box;
1465
1624
  }
1466
1625
  /* Fixed-width — caps at a comfortable reading width (~1152px). */
@@ -1480,11 +1639,11 @@
1480
1639
  :where(.flex-stack) {
1481
1640
  display: flex;
1482
1641
  flex-direction: column;
1483
- gap: 1rem;
1642
+ gap: var(--space-fluid-section);
1484
1643
  }
1485
1644
  :where(.grid) {
1486
1645
  display: grid;
1487
- gap: 1rem;
1646
+ gap: var(--space-fluid-section);
1488
1647
  }
1489
1648
  :where(.masonry) {
1490
1649
  column-count: 3;
@@ -1539,7 +1698,7 @@
1539
1698
  :where(.content-block) {
1540
1699
  max-width: var(--content-width-normal);
1541
1700
  margin-inline: auto;
1542
- padding-inline: 1rem;
1701
+ padding-inline: var(--space-fluid-gutter);
1543
1702
  box-sizing: border-box;
1544
1703
  }
1545
1704
  :where(.content-block[data-width="narrower"]) {
@@ -1557,7 +1716,8 @@
1557
1716
 
1558
1717
  /* --- Grail layout (5-region responsive page shell) --------------------- */
1559
1718
  /* Header spans the top; left-aside / main / right-aside fill the middle;
1560
- footer spans the bottom. At ≤768px the asides drop below the main. */
1719
+ footer spans the bottom. The collapse as the window narrows is in the shared
1720
+ container section at the end of this file. */
1561
1721
  :where(.grail-layout) {
1562
1722
  display: grid;
1563
1723
  min-height: 100vh;
@@ -1597,15 +1757,7 @@
1597
1757
  }
1598
1758
  /* Main content area — primary surface, more generous padding. */
1599
1759
  :where(.grail-layout-center-main) {
1600
- padding: 1.5rem;
1601
- }
1602
- /* Mobile breakpoint — collapse to a single column, stacking the regions. */
1603
- @media (max-width: 48rem) {
1604
- :where(.grail-layout) {
1605
- grid-template-areas: "header" "main" "left" "right" "footer";
1606
- grid-template-columns: 1fr;
1607
- grid-template-rows: auto auto auto auto auto;
1608
- }
1760
+ padding: var(--space-fluid-gutter);
1609
1761
  }
1610
1762
 
1611
1763
  /* Standalone semantic header / footer landmarks. */
@@ -1696,6 +1848,15 @@
1696
1848
  /* Drawers — side panels (right edge by default; RTL-aware via logical
1697
1849
  properties). Sit above the overlay container (z-index 101). */
1698
1850
  :where(.drawer, .slide-out-drawer, .sheet) {
1851
+ /* These are <dialog> elements opened with showModal() (P18-T6): undo the
1852
+ browser's centred-box defaults so the panel docks to the edge. */
1853
+ margin: 0;
1854
+ border: 0;
1855
+ inset-inline-start: auto;
1856
+ max-block-size: none;
1857
+ max-inline-size: none;
1858
+ block-size: 100%;
1859
+ box-sizing: border-box;
1699
1860
  position: fixed;
1700
1861
  inset-block: 0;
1701
1862
  inset-inline-end: 0;
@@ -1708,6 +1869,10 @@
1708
1869
  z-index: 101;
1709
1870
  }
1710
1871
 
1872
+ :where(.drawer, .slide-out-drawer, .sheet)::backdrop {
1873
+ background-color: color-mix(in oklch, black 50%, transparent);
1874
+ }
1875
+
1711
1876
  /* ==========================================================================
1712
1877
  * Menus
1713
1878
  * ====================================================================== */
@@ -1760,7 +1925,7 @@
1760
1925
  gap: 0.25rem;
1761
1926
  }
1762
1927
  /* Hamburger — bordered icon-button. */
1763
- :where(.hamburger-menu) {
1928
+ :where(.hamburger-menu > button) {
1764
1929
  display: inline-flex;
1765
1930
  align-items: center;
1766
1931
  justify-content: center;
@@ -2118,6 +2283,7 @@
2118
2283
  .theme-picker,
2119
2284
  .locale-picker,
2120
2285
  .text-size-picker,
2286
+ .time-zone-picker,
2121
2287
  .search-picker,
2122
2288
  .link-picker,
2123
2289
  .menu-picker,
@@ -2133,6 +2299,7 @@
2133
2299
  .theme-picker-button,
2134
2300
  .locale-picker-button,
2135
2301
  .text-size-picker-button,
2302
+ .time-zone-picker-button,
2136
2303
  .search-picker-button,
2137
2304
  .link-picker-button,
2138
2305
  .menu-picker-button,
@@ -2171,6 +2338,7 @@
2171
2338
  .theme-picker-icon,
2172
2339
  .locale-picker-icon,
2173
2340
  .text-size-picker-icon,
2341
+ .time-zone-picker-icon,
2174
2342
  .motion-picker-icon,
2175
2343
  .link-picker-icon,
2176
2344
  .menu-picker-icon,
@@ -2538,6 +2706,7 @@
2538
2706
  .theme-picker-tooltip,
2539
2707
  .locale-picker-tooltip,
2540
2708
  .text-size-picker-tooltip,
2709
+ .time-zone-picker-tooltip,
2541
2710
  .motion-picker-tooltip,
2542
2711
  .link-picker-tooltip,
2543
2712
  .menu-picker-tooltip,
@@ -2565,6 +2734,7 @@
2565
2734
  .theme-picker-tooltip,
2566
2735
  .locale-picker-tooltip,
2567
2736
  .text-size-picker-tooltip,
2737
+ .time-zone-picker-tooltip,
2568
2738
  .motion-picker-tooltip,
2569
2739
  .link-picker-tooltip,
2570
2740
  .menu-picker-tooltip,
@@ -2584,6 +2754,7 @@
2584
2754
  .theme-picker-tooltip,
2585
2755
  .locale-picker-tooltip,
2586
2756
  .text-size-picker-tooltip,
2757
+ .time-zone-picker-tooltip,
2587
2758
  .motion-picker-tooltip,
2588
2759
  .link-picker-tooltip,
2589
2760
  .menu-picker-tooltip,
@@ -2640,6 +2811,7 @@
2640
2811
  .theme-picker-list,
2641
2812
  .locale-picker-list,
2642
2813
  .text-size-picker-list,
2814
+ .time-zone-picker-list,
2643
2815
  .motion-picker-list,
2644
2816
  .link-picker-list,
2645
2817
  .menu-picker-panel,
@@ -2669,6 +2841,7 @@
2669
2841
  .theme-picker-list,
2670
2842
  .locale-picker-list,
2671
2843
  .text-size-picker-list,
2844
+ .time-zone-picker-list,
2672
2845
  .motion-picker-list,
2673
2846
  .link-picker-list,
2674
2847
  .menu-picker-panel,
@@ -2689,6 +2862,7 @@
2689
2862
  :where(.theme-picker) { anchor-name: --lily-theme-picker; }
2690
2863
  :where(.locale-picker) { anchor-name: --lily-locale-picker; }
2691
2864
  :where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
2865
+ :where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
2692
2866
  :where(.motion-picker) { anchor-name: --lily-motion-picker; }
2693
2867
  :where(.link-picker) { anchor-name: --lily-link-picker; }
2694
2868
  :where(.menu-picker) { anchor-name: --lily-menu-picker; }
@@ -2698,6 +2872,7 @@
2698
2872
  :where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
2699
2873
  :where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
2700
2874
  :where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
2875
+ :where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
2701
2876
  :where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
2702
2877
  :where(.link-picker-list) { position-anchor: --lily-link-picker; }
2703
2878
  :where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
@@ -2708,6 +2883,7 @@
2708
2883
  .theme-picker-list,
2709
2884
  .locale-picker-list,
2710
2885
  .text-size-picker-list,
2886
+ .time-zone-picker-list,
2711
2887
  .motion-picker-list,
2712
2888
  .link-picker-list,
2713
2889
  .menu-picker-panel,
@@ -2725,11 +2901,56 @@
2725
2901
  }
2726
2902
  }
2727
2903
 
2728
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
2904
+ /* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
2905
+ browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
2906
+ where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
2907
+ open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
2908
+ hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
2909
+ `position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
2910
+ position-area: with no anchor, position-area does nothing and a static position can be off screen. */
2911
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
2912
+ display: none;
2913
+ }
2914
+
2915
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
2916
+ display: none;
2917
+ }
2918
+
2919
+ @supports (position-area: block-end) {
2920
+ :where(.cascader-trigger) { anchor-name: --lily-cascader; }
2921
+ :where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
2922
+ :where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
2923
+ :where(.combobox > input) { anchor-name: --lily-combobox; }
2924
+ :where(.cascader-panel) { position-anchor: --lily-cascader; }
2925
+ :where(.tree-select-panel) { position-anchor: --lily-tree-select; }
2926
+ :where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
2927
+ :where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
2928
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
2929
+ position: fixed;
2930
+ inset: auto;
2931
+ margin: 0;
2932
+ position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
2933
+ width: max-content;
2934
+ max-width: calc(100vw - 1rem);
2935
+ }
2936
+ :where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
2937
+ inset-block-start: anchor(end, 25%);
2938
+ inset-inline-start: anchor(start, 25%);
2939
+ }
2940
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
2941
+ position-area: block-end span-inline-end;
2942
+ }
2943
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
2944
+ min-inline-size: anchor-size(inline);
2945
+ }
2946
+ }
2947
+
2948
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2729
2949
  > :where(
2730
2950
  .theme-picker-option,
2731
2951
  .locale-picker-option,
2732
2952
  .text-size-picker-option,
2953
+ .time-zone-picker-option,
2733
2954
  .motion-picker-option
2734
2955
  ) {
2735
2956
  padding: var(--lily-space-xs) var(--lily-space-sm);
@@ -2739,7 +2960,7 @@
2739
2960
 
2740
2961
  /* data-active is the keyboard cursor (aria-activedescendant); focus
2741
2962
  stays on the listbox, so this is the only visible cue for it. */
2742
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
2963
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2743
2964
  > :where([data-active]) {
2744
2965
  background-color: var(--lily-surface-alt);
2745
2966
  outline: var(--lily-focus-ring);
@@ -2748,7 +2969,7 @@
2748
2969
 
2749
2970
  /* aria-selected marks the applied theme/locale, which is not the
2750
2971
  same thing as the keyboard cursor. Both can be visible at once. */
2751
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
2972
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2752
2973
  > :where([aria-selected="true"]) {
2753
2974
  font-weight: 600;
2754
2975
  background-color: var(--lily-surface-sunken);
@@ -3101,7 +3322,7 @@
3101
3322
  }
3102
3323
  /* Screen-reader-only — visually hidden but available to AT. The
3103
3324
  classic clip-rect pattern (works in every screen reader). */
3104
- :where(.screen-reader-span) {
3325
+ :where(.screen-reader-span, .middle-truncation-full) {
3105
3326
  position: absolute;
3106
3327
  width: 1px;
3107
3328
  height: 1px;
@@ -3112,6 +3333,42 @@
3112
3333
  white-space: nowrap;
3113
3334
  border: 0;
3114
3335
  }
3336
+ /* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
3337
+ text (hidden above) stays in the accessibility tree. */
3338
+ :where(.middle-truncation) {
3339
+ display: block;
3340
+ position: relative;
3341
+ overflow: hidden;
3342
+ white-space: nowrap;
3343
+ }
3344
+ /* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
3345
+ primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
3346
+ :where(.wheel-picker-list) {
3347
+ max-block-size: 10em;
3348
+ overflow-y: auto;
3349
+ overscroll-behavior: contain;
3350
+ scroll-snap-type: y mandatory;
3351
+ border: 1px solid var(--color-base-300);
3352
+ border-radius: var(--lily-radius-md);
3353
+ }
3354
+ :where(.wheel-picker-list:focus-visible) {
3355
+ outline: 2px solid var(--lily-focus-ring);
3356
+ outline-offset: 2px;
3357
+ }
3358
+ :where(.wheel-picker-option) {
3359
+ padding: 0.5rem 1rem;
3360
+ scroll-snap-align: center;
3361
+ cursor: pointer;
3362
+ }
3363
+ :where(.wheel-picker-option[aria-selected="true"]) {
3364
+ background-color: var(--color-primary);
3365
+ color: var(--color-primary-content);
3366
+ font-weight: 600;
3367
+ }
3368
+ :where(.wheel-picker-option[aria-disabled="true"]) {
3369
+ opacity: 0.5;
3370
+ cursor: not-allowed;
3371
+ }
3115
3372
 
3116
3373
  /* ==========================================================================
3117
3374
  * Hero, figure, photo, media
@@ -3644,6 +3901,81 @@
3644
3901
  min-block-size: 24px;
3645
3902
  }
3646
3903
 
3904
+ /* ============================================================================
3905
+ * Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
3906
+ *
3907
+ * Where the primary pointer is coarse (a finger), interactive hooks are at least
3908
+ * 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
3909
+ * buttons, form fields, checkboxes and radios, and the link-shaped navigation
3910
+ * hooks. Links inside running text are exempt, so bare `a` is not listed. The
3911
+ * query is the capability, never a viewport width. :where() keeps specificity
3912
+ * at zero, so any consumer rule still wins.
3913
+ * ========================================================================= */
3914
+
3915
+ @media (pointer: coarse) {
3916
+ :where(button,
3917
+ [role="button"],
3918
+ [role="tab"],
3919
+ [role="option"],
3920
+ [role="menuitem"],
3921
+ [class*="-picker-button"],
3922
+ summary,
3923
+ input:not([type="hidden"]),
3924
+ select,
3925
+ textarea,
3926
+ .action-link,
3927
+ .back-link,
3928
+ .breadcrumb-list-item > a,
3929
+ .pagination-list-item > a,
3930
+ .contents-list-item > a,
3931
+ .section-list-item > a) {
3932
+ min-inline-size: 44px;
3933
+ min-block-size: 44px;
3934
+ }
3935
+ }
3936
+
3937
+ /* ============================================================================
3938
+ * Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
3939
+ *
3940
+ * --lily-brand is the identity's decorative colour: a header band, a rule, a
3941
+ * logo background. It is NEVER a text colour or a control's boundary, because a
3942
+ * brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
3943
+ * text drawn on it. By default they follow the theme's primary pair, which every
3944
+ * theme keeps readable; an adopter whose brand colour is lighter or darker sets
3945
+ * both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
3946
+ * content pairs (--color-base-content, --lily-error-text and so on).
3947
+ * ========================================================================== */
3948
+
3949
+ :where(:root) {
3950
+ --lily-brand: var(--color-primary);
3951
+ --lily-on-brand: var(--color-primary-content);
3952
+ }
3953
+
3954
+ /* ============================================================================
3955
+ * Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
3956
+ *
3957
+ * The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
3958
+ * adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
3959
+ * and no clear-space rule, because national and local guidelines disagree: a
3960
+ * theme or the adopter sets --lily-logo-clear-space (padding around the mark)
3961
+ * and --lily-logo-min-size (its smallest inline size). Both are unset by
3962
+ * default, so nothing changes until one is set.
3963
+ * ========================================================================== */
3964
+
3965
+ @layer lily {
3966
+ :where([data-lily-logo]) {
3967
+ display: inline-block;
3968
+ padding: var(--lily-logo-clear-space, 0);
3969
+ }
3970
+
3971
+ :where([data-lily-logo] > img, [data-lily-logo] > svg) {
3972
+ display: block;
3973
+ min-inline-size: var(--lily-logo-min-size, 0);
3974
+ max-inline-size: 100%;
3975
+ block-size: auto;
3976
+ }
3977
+ }
3978
+
3647
3979
  /* ============================================================================
3648
3980
  * Overflow guards — narrow-viewport safety, shared verbatim by all themes.
3649
3981
  *
@@ -3671,3 +4003,620 @@
3671
4003
  :where(a, code) {
3672
4004
  overflow-wrap: anywhere;
3673
4005
  }
4006
+
4007
+ /* ============================================================================
4008
+ * Scoped overflow — shared verbatim by all themes.
4009
+ *
4010
+ * Long unbroken strings (a national identifier, an email address, a URL) and
4011
+ * grid/flex tracks that refuse to shrink are the usual causes of horizontal
4012
+ * page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
4013
+ * `overflow-wrap: anywhere` on the places a long value lands (table cells are
4014
+ * covered by Overflow guards above), and `min-inline-size: 0` on the direct
4015
+ * children of Lily's grid and flex containers so a child can shrink below its
4016
+ * content. The identifier `-view` list below is the catalog's 70 national
4017
+ * identifier views (components-categories.tsv); bin/check-theme fails when it
4018
+ * drifts from the catalog. :where() keeps specificity at zero.
4019
+ * ========================================================================= */
4020
+
4021
+ :where(
4022
+ .alba-community-health-index-view,
4023
+ .australia-individual-healthcare-identifier-view,
4024
+ .belgique-numero-de-registre-national-view,
4025
+ .bulgaria-edinen-grazhdanski-nomer-view,
4026
+ .cesko-cestovni-pas-view,
4027
+ .cesko-rodne-cislo-view,
4028
+ .cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
4029
+ .kypros-national-passport-number-view,
4030
+ .danmark-personnummer-view,
4031
+ .deutschland-krankenversichertennummer-view,
4032
+ .eesti-isikukood-view,
4033
+ .ellada-dematerialised-securities-system-view,
4034
+ .england-national-health-service-number-view,
4035
+ .espana-codigo-de-identificacion-fiscal-view,
4036
+ .espana-tarjeta-sanitaria-individual-view,
4037
+ .france-numero-d-identification-au-repertoire-view,
4038
+ .hrvatska-osobni-identifikacijski-broj-view,
4039
+ .eire-individual-health-identifier-view,
4040
+ .island-kennitala-view,
4041
+ .italia-codice-fiscale-view,
4042
+ .latvija-personas-kods-view,
4043
+ .liechtenstein-national-identity-card-number-view,
4044
+ .liechtenstein-passport-number-view,
4045
+ .lietuva-asmens-kodas-view,
4046
+ .lietuva-pasas-view,
4047
+ .malta-national-identification-number-view,
4048
+ .malta-passport-number-view,
4049
+ .nederland-burgerservice-nummer-view,
4050
+ .nederland-identiteitskaart-nummer-view,
4051
+ .nederland-paspoort-nummer-view,
4052
+ .norge-fodselsnummer-view,
4053
+ .tuaisceart-eireann-health-and-care-number-view,
4054
+ .polska-numer-identyfikacji-podatkowej-view,
4055
+ .polska-pesel-view,
4056
+ .portugal-numero-de-identificacao-fiscal-view,
4057
+ .portugal-passaporte-view,
4058
+ .romania-cod-numeric-personal-view,
4059
+ .romania-pasaport-view,
4060
+ .slovenija-emso-view,
4061
+ .slovensko-pas-view,
4062
+ .slovensko-rodne-cislo-view,
4063
+ .suomi-henkilotunnus-view,
4064
+ .sverige-personnummer-view,
4065
+ .iban-view,
4066
+ .united-kingdom-national-health-service-number-view,
4067
+ .united-kingdom-national-insurance-number-view,
4068
+ .united-states-social-security-number-view,
4069
+ .aotearoa-national-health-index-view,
4070
+ .pilipinas-philhealth-identification-number-view,
4071
+ .brasil-cartao-nacional-de-saude-view,
4072
+ .schweiz-ahv-nummer-view,
4073
+ .canada-social-insurance-number-view,
4074
+ .hanguk-jumin-deungnok-beonho-view,
4075
+ .nihon-kojin-bango-view,
4076
+ .bharat-aadhaar-view,
4077
+ .yisrael-teudat-zehut-view,
4078
+ .south-africa-identity-number-view,
4079
+ .mexico-clave-unica-de-registro-de-poblacion-view,
4080
+ .singapore-national-registration-identity-card-view,
4081
+ .osterreich-sozialversicherungsnummer-view,
4082
+ .magyarorszag-taj-szam-view,
4083
+ .luxembourg-matricule-view,
4084
+ .zhongguo-jumin-shenfenzheng-haoma-view,
4085
+ .rossiya-snils-view,
4086
+ .turkiye-tc-kimlik-numarasi-view,
4087
+ .argentina-codigo-unico-de-identificacion-laboral-view,
4088
+ .ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
4089
+ .indonesia-nomor-induk-kependudukan-view,
4090
+ .prathet-thai-lek-prajam-tua-prachachon-view,
4091
+ .chile-rol-unico-nacional-view,
4092
+ .taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
4093
+ .hong-kong-identity-card-view,
4094
+ .iran-kod-e-melli-view,
4095
+ .as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
4096
+ .malaysia-kad-pengenalan-view,
4097
+ .viet-nam-can-cuoc-cong-dan-view,
4098
+ .pakistan-computerized-national-identity-card-view,
4099
+ .uruguay-cedula-de-identidad-view,
4100
+ .ecuador-cedula-de-identidad-view,
4101
+ .colombia-cedula-de-ciudadania-view,
4102
+ .australia-tax-file-number-view,
4103
+ .nigeria-national-identification-number-view,
4104
+ .misr-al-raqm-al-qawmi-view
4105
+ ) {
4106
+ overflow-wrap: anywhere;
4107
+ }
4108
+
4109
+ /* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
4110
+ :where(.summary-list, .summary-list-item, .description-list) {
4111
+ overflow-wrap: anywhere;
4112
+ }
4113
+
4114
+ :where(
4115
+ .grid,
4116
+ .flex-stack,
4117
+ .grail-layout,
4118
+ .summary-list,
4119
+ .summary-list-item,
4120
+ .description-list,
4121
+ .form,
4122
+ .editable-form,
4123
+ .field,
4124
+ .input-group,
4125
+ .button-group,
4126
+ .radio-group,
4127
+ .checkbox-group,
4128
+ .toggle-group,
4129
+ .tag-group,
4130
+ .split-view,
4131
+ .photo-pack,
4132
+ .data-filter-form,
4133
+ .action-bar,
4134
+ .tool-bar,
4135
+ .menu-bar,
4136
+ .tab-bar
4137
+ ) > :where(*) {
4138
+ min-inline-size: 0;
4139
+ }
4140
+
4141
+ /* ============================================================================
4142
+ * Helper packages — layout and look, shared verbatim by all themes.
4143
+ *
4144
+ * The data grid, kanban board, Gantt chart and calendar view are wide by nature.
4145
+ * Each root scrolls sideways inside its own box and its table sizes to its content,
4146
+ * so a narrow screen scrolls the table instead of wrapping every cell to a letter
4147
+ * (the overflow guard above lets cells break anywhere, which is right for prose and
4148
+ * wrong for a table that has a scroller). The toolbar controls of all four helpers
4149
+ * share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
4150
+ * the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
4151
+ * today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
4152
+ * ========================================================================= */
4153
+
4154
+ :where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
4155
+ max-inline-size: 100%;
4156
+ overflow-x: auto;
4157
+ }
4158
+
4159
+ :where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
4160
+ inline-size: max-content;
4161
+ min-inline-size: 100%;
4162
+ }
4163
+
4164
+ :where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
4165
+ .calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
4166
+ display: flex;
4167
+ flex-wrap: wrap;
4168
+ gap: var(--lily-space-sm);
4169
+ align-items: center;
4170
+ margin-block-end: var(--lily-space-sm);
4171
+ }
4172
+
4173
+ :where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
4174
+ padding: var(--lily-space-xs) var(--lily-space-sm);
4175
+ border: var(--border) solid var(--lily-border);
4176
+ border-radius: var(--lily-radius-sm);
4177
+ background-color: var(--lily-surface);
4178
+ color: var(--lily-text);
4179
+ font: inherit;
4180
+ min-block-size: 24px;
4181
+ }
4182
+
4183
+ :where(.kanban-board-export-button,
4184
+ .kanban-board-add-button,
4185
+ .kanban-board-undo-button,
4186
+ .kanban-board-collapse-button,
4187
+ .kanban-board-lane-toggle,
4188
+ .kanban-board-move-button,
4189
+ .gantt-chart-export-button,
4190
+ .gantt-chart-zoom-in-button,
4191
+ .gantt-chart-zoom-out-button,
4192
+ .gantt-chart-collapse-button,
4193
+ .gantt-chart-collapse-all-button,
4194
+ .gantt-chart-expand-all-button,
4195
+ .gantt-chart-save-button,
4196
+ .gantt-chart-cancel-button,
4197
+ .calendar-view-export-button,
4198
+ .calendar-view-previous-button,
4199
+ .calendar-view-next-button,
4200
+ .calendar-view-today-button,
4201
+ .calendar-view-switcher-button) {
4202
+ padding: var(--lily-space-xs) var(--lily-space-md);
4203
+ border: var(--border) solid var(--lily-border);
4204
+ border-radius: var(--lily-radius-sm);
4205
+ background-color: var(--lily-surface);
4206
+ color: var(--lily-text);
4207
+ font: inherit;
4208
+ cursor: pointer;
4209
+ min-inline-size: 24px;
4210
+ min-block-size: 24px;
4211
+ }
4212
+
4213
+ :where(.kanban-board-export-button:disabled,
4214
+ .kanban-board-add-button:disabled,
4215
+ .kanban-board-undo-button:disabled,
4216
+ .gantt-chart-export-button:disabled,
4217
+ .gantt-chart-zoom-in-button:disabled,
4218
+ .gantt-chart-zoom-out-button:disabled,
4219
+ .calendar-view-export-button:disabled,
4220
+ .calendar-view-previous-button[aria-disabled="true"],
4221
+ .calendar-view-next-button[aria-disabled="true"]) {
4222
+ opacity: 0.5;
4223
+ cursor: not-allowed;
4224
+ }
4225
+
4226
+ :where(.calendar-view-switcher-button[aria-pressed="true"]) {
4227
+ background-color: var(--color-base-300);
4228
+ font-weight: 600;
4229
+ }
4230
+
4231
+ :where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
4232
+ margin-block-start: var(--lily-space-sm);
4233
+ font-size: 0.875em;
4234
+ opacity: 0.8;
4235
+ }
4236
+
4237
+ :where(.calendar-view-event) {
4238
+ display: block;
4239
+ padding: 0 var(--lily-space-xs);
4240
+ border-radius: var(--lily-radius-sm);
4241
+ background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
4242
+ font-size: 0.75rem;
4243
+ }
4244
+
4245
+ :where(.gantt-table-th) {
4246
+ min-inline-size: 2rem;
4247
+ padding-inline: 0.25rem;
4248
+ font-size: 0.75rem;
4249
+ text-align: center;
4250
+ white-space: nowrap;
4251
+ }
4252
+
4253
+ :where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
4254
+ min-inline-size: 10rem;
4255
+ padding-inline: var(--lily-space-sm);
4256
+ font-size: inherit;
4257
+ text-align: start;
4258
+ white-space: normal;
4259
+ }
4260
+
4261
+ :where(.gantt-table-td) {
4262
+ min-block-size: 1.7rem;
4263
+ padding: 0;
4264
+ }
4265
+
4266
+ :where(.gantt-table-td[data-in-range]) {
4267
+ background-color: var(--color-primary);
4268
+ /* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
4269
+ color: var(--color-primary-content);
4270
+ }
4271
+
4272
+ :where(.gantt-table-td[data-in-range][data-milestone]) {
4273
+ clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
4274
+ }
4275
+
4276
+ :where(.gantt-table-td[data-today]) {
4277
+ border-inline-start: 2px solid var(--color-accent);
4278
+ }
4279
+
4280
+ /* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
4281
+ option up to a cap, then wrap, rather than clipping the name or running off a phone. */
4282
+ :where(.time-zone-picker-list) {
4283
+ inline-size: max-content;
4284
+ max-inline-size: min(26rem, 90vw);
4285
+ max-block-size: min(24rem, 70vh);
4286
+ overflow-y: auto;
4287
+ }
4288
+
4289
+ :where(.time-zone-picker-option) {
4290
+ overflow-wrap: anywhere;
4291
+ }
4292
+
4293
+ /* ============================================================================
4294
+ * Overflow navigation — shared verbatim by all themes.
4295
+ *
4296
+ * The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
4297
+ * With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
4298
+ * (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
4299
+ * the links that do not fit into the More list. That list is in normal flow (position
4300
+ * static, never absolute), so opening it pushes the content below down and never covers it
4301
+ * (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
4302
+ * specificity at zero, so any consumer rule wins.
4303
+ * ========================================================================= */
4304
+
4305
+ :where(.navigation-menu-list) {
4306
+ display: flex;
4307
+ flex: 1 1 auto;
4308
+ flex-wrap: wrap;
4309
+ align-items: flex-start;
4310
+ gap: 0.25rem 0.5rem;
4311
+ min-inline-size: 0;
4312
+ margin: 0;
4313
+ padding: 0;
4314
+ list-style: none;
4315
+ }
4316
+
4317
+ :where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
4318
+ display: inline-block;
4319
+ min-inline-size: 24px;
4320
+ min-block-size: 24px;
4321
+ }
4322
+
4323
+ :where(.navigation-menu-more) {
4324
+ position: static;
4325
+ }
4326
+
4327
+ :where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
4328
+ display: none;
4329
+ }
4330
+
4331
+ :where(.navigation-menu-more-button) {
4332
+ min-inline-size: 24px;
4333
+ min-block-size: 24px;
4334
+ padding: 0.25rem 0.5rem;
4335
+ font: inherit;
4336
+ color: inherit;
4337
+ background: transparent;
4338
+ border: 1px solid currentcolor;
4339
+ cursor: pointer;
4340
+ }
4341
+
4342
+ :where(.navigation-menu-more-list) {
4343
+ position: static;
4344
+ margin: 0.25rem 0 0;
4345
+ padding: 0;
4346
+ list-style: none;
4347
+ }
4348
+
4349
+ /* ============================================================================
4350
+ * Container queries — shared verbatim by all themes.
4351
+ *
4352
+ * A component answers to the space it is given, not to the window: a summary
4353
+ * list in a narrow aside on a wide screen needs the narrow layout, which the
4354
+ * viewport query above cannot know. The three grail-layout regions are the
4355
+ * containers because their width comes from a grid track (`minmax(0, 1fr)`), so
4356
+ * inline-size containment cannot collapse them. `.card` is deliberately not a
4357
+ * container: in a shrink-to-fit parent (a flex row, an inline grid) containment
4358
+ * would collapse it to nothing. A component outside a grail region has no
4359
+ * container and keeps its wide layout. :where() keeps specificity at zero, so
4360
+ * any consumer rule wins.
4361
+ * ========================================================================= */
4362
+
4363
+ :where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
4364
+ container-type: inline-size;
4365
+ }
4366
+
4367
+ /* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
4368
+ window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
4369
+ Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
4370
+ (at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
4371
+ right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
4372
+ hidden, so all content stays reachable. */
4373
+ @media (max-width: 64rem) {
4374
+ :where(.grail-layout) {
4375
+ grid-template-areas:
4376
+ "header header"
4377
+ "left main"
4378
+ "right right"
4379
+ "footer footer";
4380
+ grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
4381
+ grid-template-rows: auto auto auto auto;
4382
+ }
4383
+ }
4384
+
4385
+ @media (max-width: 48rem) {
4386
+ :where(.grail-layout) {
4387
+ grid-template-areas:
4388
+ "header"
4389
+ "left"
4390
+ "main"
4391
+ "right"
4392
+ "footer";
4393
+ grid-template-columns: minmax(0, 1fr);
4394
+ grid-template-rows: auto auto auto auto auto;
4395
+ }
4396
+ }
4397
+
4398
+ @container (max-width: 30rem) {
4399
+ :where(.summary-list) {
4400
+ grid-template-columns: minmax(0, 1fr);
4401
+ row-gap: 0.25rem;
4402
+ }
4403
+
4404
+ :where(.kanban-table-td) {
4405
+ min-width: 10rem;
4406
+ }
4407
+
4408
+ :where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
4409
+ padding-inline: 0.5rem;
4410
+ }
4411
+ }
4412
+
4413
+ /* ============================================================================
4414
+ * Focus not obscured — shared verbatim by all themes.
4415
+ *
4416
+ * WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
4417
+ * entirely hidden by author-created content, such as a bar fixed to the top or
4418
+ * bottom of the viewport. The browser scrolls a focused control into view, but
4419
+ * only as far as the edge of the viewport, which is where a fixed bar sits.
4420
+ * `scroll-padding` moves that edge in by the bar's height.
4421
+ *
4422
+ * Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
4423
+ * theme's or an app's own fixed header, a mobile bottom navigation) sets the
4424
+ * bar's height on the root element:
4425
+ *
4426
+ * --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
4427
+ * --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
4428
+ *
4429
+ * With both bars, set both. The defaults are 0px, so a page without a fixed bar
4430
+ * is unchanged. Specificity is zero (`:where`), so an app's own
4431
+ * `scroll-padding` wins.
4432
+ * ========================================================================= */
4433
+
4434
+ :where(html) {
4435
+ scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
4436
+ }
4437
+
4438
+ /* ============================================================================
4439
+ * Text size and motion preferences — shared verbatim by all themes.
4440
+ *
4441
+ * The text-size-picker sets `data-text-size` on the root and the motion-picker
4442
+ * sets `data-motion`; neither styles anything itself. These rules are what make
4443
+ * the choice visible.
4444
+ *
4445
+ * Text size: the seven steps scale the root font size, and every theme sizes in
4446
+ * `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
4447
+ * own browser setting), and the scale is percentages of that, never pixels, so
4448
+ * a viewer who raised their browser font size keeps it. The steps below
4449
+ * `normal` are the viewer's explicit choice.
4450
+ *
4451
+ * Motion: `data-motion="reduce"` shortens every animation and transition to
4452
+ * 0.01ms instead of removing it. The end state still arrives and `animationend`
4453
+ * / `transitionend` still fire, so nothing that depends on them breaks and no
4454
+ * information is lost: a spinner's `role="status"` text, a disclosure's open
4455
+ * state and a toast's content are untouched. Scrolling is instant.
4456
+ * ========================================================================= */
4457
+
4458
+ :where(html[data-text-size="smallest"]) { font-size: 80%; }
4459
+ :where(html[data-text-size="smaller"]) { font-size: 90%; }
4460
+ :where(html[data-text-size="small"]) { font-size: 95%; }
4461
+ :where(html[data-text-size="normal"]) { font-size: 100%; }
4462
+ :where(html[data-text-size="large"]) { font-size: 110%; }
4463
+ :where(html[data-text-size="larger"]) { font-size: 125%; }
4464
+ :where(html[data-text-size="largest"]) { font-size: 150%; }
4465
+
4466
+ :where(html[data-motion="reduce"]) {
4467
+ scroll-behavior: auto;
4468
+ }
4469
+ :where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
4470
+ animation-duration: 0.01ms !important;
4471
+ animation-iteration-count: 1 !important;
4472
+ animation-delay: 0s !important;
4473
+ transition-duration: 0.01ms !important;
4474
+ transition-delay: 0s !important;
4475
+ scroll-behavior: auto !important;
4476
+ }
4477
+
4478
+ /* ============================================================================
4479
+ * Forced colours and contrast preference — shared verbatim by all themes.
4480
+ *
4481
+ * Forced colours (Windows High Contrast, `forced-colors: active`): the browser
4482
+ * replaces every colour with a system colour, which erases anything a control
4483
+ * told apart by background alone. These rules give such controls a border,
4484
+ * keep the focus ring, and mark selected and current items with `Highlight`
4485
+ * and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
4486
+ *
4487
+ * Contrast preference (`prefers-contrast: more`): a heavier border on controls
4488
+ * and a thicker focus ring. Colours are not changed here; a theme's colours are
4489
+ * its author's decision.
4490
+ * ========================================================================= */
4491
+
4492
+ @media (forced-colors: active) {
4493
+ :where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
4494
+ border: 1px solid ButtonBorder;
4495
+ }
4496
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
4497
+ outline: 3px solid Highlight;
4498
+ outline-offset: 2px;
4499
+ }
4500
+ :where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
4501
+ background: SelectedItem;
4502
+ color: SelectedItemText;
4503
+ forced-color-adjust: none;
4504
+ }
4505
+ :where([aria-current]:not([aria-current="false"])) {
4506
+ outline: 2px solid Highlight;
4507
+ outline-offset: -2px;
4508
+ }
4509
+ :where(:disabled, [aria-disabled="true"]) {
4510
+ border-color: GrayText;
4511
+ color: GrayText;
4512
+ }
4513
+ }
4514
+
4515
+ @media (prefers-contrast: more) {
4516
+ :where(button, input, select, textarea, [role="button"], [class$="-button"]) {
4517
+ border-width: 2px;
4518
+ border-style: solid;
4519
+ border-color: currentColor;
4520
+ }
4521
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
4522
+ outline-width: 3px;
4523
+ outline-offset: 2px;
4524
+ }
4525
+ }
4526
+
4527
+ /* ============================================================================
4528
+ * Writing systems — shared verbatim by all themes.
4529
+ *
4530
+ * A theme names its Latin font stack (`--lily-font-body-latin`). This section
4531
+ * builds `--lily-font-body` from it, with the system fonts of the element's
4532
+ * script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
4533
+ * Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
4534
+ * scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
4535
+ * Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
4536
+ * Chinese and Japanese but drawn differently, so the language picks the font,
4537
+ * not the script.
4538
+ *
4539
+ * `--lily-font-body` is re-declared on every element with a `lang`, so a
4540
+ * `<p lang="ja">` inside an English page gets Japanese fonts and a
4541
+ * `<span lang="en">` inside it gets none. A language not listed here keeps the
4542
+ * Latin stack, whose final generic family the browser resolves per language.
4543
+ *
4544
+ * `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
4545
+ * and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
4546
+ * Elements with a `lang` use it; the app's body text should too.
4547
+ *
4548
+ * To change a theme's font, set `--lily-font-body-latin`; to change a script's,
4549
+ * set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
4550
+ * itself still works on the element you set it on.
4551
+ * ========================================================================= */
4552
+
4553
+ :where(:root, [lang]) {
4554
+ --lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
4555
+ --lily-line-height-body: 1.5;
4556
+ }
4557
+
4558
+ :where([lang]) {
4559
+ --lily-font-script: initial;
4560
+ line-height: var(--lily-line-height-body);
4561
+ }
4562
+
4563
+ :where([lang|="zh"], [lang|="wuu"]) {
4564
+ --lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
4565
+ }
4566
+ :where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
4567
+ --lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
4568
+ }
4569
+ :where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
4570
+ --lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
4571
+ }
4572
+ :where([lang|="ja"]) {
4573
+ --lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
4574
+ }
4575
+ :where([lang|="ko"]) {
4576
+ --lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
4577
+ }
4578
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
4579
+ --lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
4580
+ }
4581
+ :where([lang|="ur"]) {
4582
+ --lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
4583
+ }
4584
+ :where([lang|="he"], [lang|="yi"]) {
4585
+ --lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
4586
+ }
4587
+ :where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
4588
+ --lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
4589
+ }
4590
+ :where([lang|="bn"], [lang|="as"]) {
4591
+ --lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
4592
+ }
4593
+ :where([lang|="gu"]) {
4594
+ --lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
4595
+ }
4596
+ :where([lang|="pa"]) {
4597
+ --lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
4598
+ }
4599
+ :where([lang|="kn"]) {
4600
+ --lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
4601
+ }
4602
+ :where([lang|="ta"]) {
4603
+ --lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
4604
+ }
4605
+ :where([lang|="te"]) {
4606
+ --lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
4607
+ }
4608
+ :where([lang|="th"]) {
4609
+ --lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
4610
+ }
4611
+ :where([lang|="lo"]) {
4612
+ --lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
4613
+ }
4614
+ :where([lang|="km"]) {
4615
+ --lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
4616
+ }
4617
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
4618
+ [lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
4619
+ [lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
4620
+ [lang|="lo"], [lang|="km"]) {
4621
+ --lily-line-height-body: 1.75;
4622
+ }