lintje 0.9.2 → 0.10.0
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.
- package/README.md +21 -1
- package/dist-elements/actions.js +1 -1
- package/dist-elements/chunks/{addon-DoyybBuA.js → addon-D_qiELEE.js} +1 -1
- package/dist-elements/chunks/{avatar-BGJgBB9r.js → avatar-fsp2gI9x.js} +1 -1
- package/dist-elements/chunks/{axes-DfDMsu3s.js → axes-DVNd9rvA.js} +53 -53
- package/dist-elements/chunks/base-BbinwQUv.js +242 -0
- package/dist-elements/chunks/chart-styles-DYVopFQv.js +45 -0
- package/dist-elements/chunks/dialog-close-Ir9E-YQI.js +1 -0
- package/dist-elements/chunks/{disclosure-Ch2SwnkG.js → disclosure-CfMDSiGM.js} +1 -1
- package/dist-elements/chunks/{disclosure-Cr6FasjS.js → disclosure-CwyiRC_B.js} +6 -6
- package/dist-elements/chunks/{download-Bm3q8daQ.js → download-BTA_mOVO.js} +1 -1
- package/dist-elements/chunks/{focus-trap-BQMduQNN.js → focus-trap-bJm7pdpd.js} +1 -1
- package/dist-elements/chunks/frame-CWMTL0Pv.js +1 -0
- package/dist-elements/chunks/input-Ap7GDYW9.js +1 -0
- package/dist-elements/chunks/{input-D43cAS2M.js → input-B451zEPB.js} +4 -4
- package/dist-elements/chunks/menu-ku7K3tXM.js +1 -0
- package/dist-elements/chunks/{month-grid-BQKSnNLC.js → month-grid-Bu05f13h.js} +1 -1
- package/dist-elements/chunks/{other-GcjW2Nqw.js → other-Djlj_GCj.js} +1 -1
- package/dist-elements/chunks/{player-DtFr1Bf8.js → player-B_Ae6Dt2.js} +17 -17
- package/dist-elements/chunks/prose-BALGe_vb.js +1 -0
- package/dist-elements/chunks/sentence-D48K1ZTn.js +3 -0
- package/dist-elements/chunks/{stagger-CYcBlEiK.js → stagger-3qKZSgS1.js} +8 -8
- package/dist-elements/core.js +1 -1
- package/dist-elements/custom-elements.json +3612 -51
- package/dist-elements/data-types.json +81 -3
- package/dist-elements/feedback.js +1 -1
- package/dist-elements/frame.js +1 -1
- package/dist-elements/guides/dashboard.md +13 -3
- package/dist-elements/guides/loading.md +1 -1
- package/dist-elements/guides/start.md +53 -1
- package/dist-elements/guides/theming.md +69 -0
- package/dist-elements/layout.js +1 -1
- package/dist-elements/lintje.js +1068 -948
- package/dist-elements/overlays.js +1 -1
- package/dist-elements/skills/lintje/SKILL.md +3 -1
- package/dist-elements/tag/accordion.js +3 -3
- package/dist-elements/tag/activity-log.js +11 -11
- package/dist-elements/tag/ai-label.js +4 -4
- package/dist-elements/tag/announcement.js +9 -9
- package/dist-elements/tag/app-search.js +19 -19
- package/dist-elements/tag/attachment.js +24 -24
- package/dist-elements/tag/audio-player.js +39 -39
- package/dist-elements/tag/badge.js +1 -1
- package/dist-elements/tag/breadcrumbs.js +10 -10
- package/dist-elements/tag/button.js +1 -1
- package/dist-elements/tag/card-list.js +9 -9
- package/dist-elements/tag/card.js +30 -30
- package/dist-elements/tag/chart.js +542 -530
- package/dist-elements/tag/chat-answer.js +43 -43
- package/dist-elements/tag/chat-composer.js +66 -74
- package/dist-elements/tag/chat-message.js +14 -14
- package/dist-elements/tag/chat-questions.js +57 -57
- package/dist-elements/tag/chat-steps.js +20 -20
- package/dist-elements/tag/chat-strip.js +23 -23
- package/dist-elements/tag/chat-suggestions.js +6 -6
- package/dist-elements/tag/chat.js +47 -47
- package/dist-elements/tag/checkbox-group.js +11 -10
- package/dist-elements/tag/checkbox.js +7 -7
- package/dist-elements/tag/code.js +6 -6
- package/dist-elements/tag/combobox.js +20 -19
- package/dist-elements/tag/conflict-alert.js +8 -8
- package/dist-elements/tag/copy-button.js +5 -5
- package/dist-elements/tag/data-table.js +164 -163
- package/dist-elements/tag/date-input.js +11 -10
- package/dist-elements/tag/date-range.js +16 -15
- package/dist-elements/tag/description-list.js +17 -17
- package/dist-elements/tag/dialog.js +7 -7
- package/dist-elements/tag/document-viewer.js +21 -21
- package/dist-elements/tag/drawer.js +9 -9
- package/dist-elements/tag/empty-state.js +1 -1
- package/dist-elements/tag/error-page.js +11 -11
- package/dist-elements/tag/error-summary.js +12 -12
- package/dist-elements/tag/expander.js +4 -4
- package/dist-elements/tag/explainer.js +4 -4
- package/dist-elements/tag/field.js +4 -4
- package/dist-elements/tag/file-upload.js +18 -17
- package/dist-elements/tag/filter-bar.js +40 -40
- package/dist-elements/tag/filter-sheet.js +3 -3
- package/dist-elements/tag/filter-zone.js +18 -18
- package/dist-elements/tag/find.js +14 -14
- package/dist-elements/tag/footer.js +15 -15
- package/dist-elements/tag/form-actions.js +2 -2
- package/dist-elements/tag/form-section.js +3 -3
- package/dist-elements/tag/form.js +3 -3
- package/dist-elements/tag/gallery.js +11 -11
- package/dist-elements/tag/graph.js +64 -63
- package/dist-elements/tag/grid-item.js +1 -1
- package/dist-elements/tag/grid.js +1 -1
- package/dist-elements/tag/hero.js +8 -7
- package/dist-elements/tag/highlight.js +4 -4
- package/dist-elements/tag/icon-button.js +1 -1
- package/dist-elements/tag/icon.js +1 -1
- package/dist-elements/tag/job-list.js +3 -3
- package/dist-elements/tag/key.js +1 -1
- package/dist-elements/tag/kpi-row.js +4 -4
- package/dist-elements/tag/kpi.js +73 -73
- package/dist-elements/tag/language-nav.d.ts +1 -0
- package/dist-elements/tag/language-nav.js +45 -0
- package/dist-elements/tag/level-meter.js +8 -8
- package/dist-elements/tag/list.js +26 -26
- package/dist-elements/tag/log-viewer.js +72 -71
- package/dist-elements/tag/logo.js +15 -15
- package/dist-elements/tag/map.js +148 -147
- package/dist-elements/tag/menu-button.js +43 -41
- package/dist-elements/tag/modal.js +9 -9
- package/dist-elements/tag/multiselect.js +15 -14
- package/dist-elements/tag/note.js +2 -2
- package/dist-elements/tag/notifications.js +23 -23
- package/dist-elements/tag/number-input.js +19 -18
- package/dist-elements/tag/page-header.js +21 -11
- package/dist-elements/tag/pagination.js +28 -28
- package/dist-elements/tag/person-group.js +5 -5
- package/dist-elements/tag/person.js +8 -8
- package/dist-elements/tag/popover.js +1 -1
- package/dist-elements/tag/progress-bar.js +1 -1
- package/dist-elements/tag/prose.js +1 -1
- package/dist-elements/tag/qr-code.js +3 -3
- package/dist-elements/tag/radio-group.js +15 -14
- package/dist-elements/tag/range.js +17 -16
- package/dist-elements/tag/recording-status.js +9 -9
- package/dist-elements/tag/repeater.js +5 -5
- package/dist-elements/tag/segmented.js +8 -7
- package/dist-elements/tag/select.js +10 -7
- package/dist-elements/tag/shell.js +265 -248
- package/dist-elements/tag/skeleton.js +1 -1
- package/dist-elements/tag/slot-picker.js +15 -14
- package/dist-elements/tag/sortable-list.js +21 -21
- package/dist-elements/tag/spinner.js +1 -1
- package/dist-elements/tag/split-pane.js +9 -9
- package/dist-elements/tag/status-dot.js +1 -1
- package/dist-elements/tag/stepper.js +12 -12
- package/dist-elements/tag/streaming-text.js +12 -12
- package/dist-elements/tag/sub-nav.js +20 -20
- package/dist-elements/tag/tabs.js +35 -33
- package/dist-elements/tag/tag-input.js +26 -25
- package/dist-elements/tag/text-editor.js +12 -11
- package/dist-elements/tag/text-input.js +20 -19
- package/dist-elements/tag/textarea.js +11 -10
- package/dist-elements/tag/tile.js +1 -1
- package/dist-elements/tag/time-input.js +8 -7
- package/dist-elements/tag/toast.js +8 -8
- package/dist-elements/tag/toggle.js +4 -4
- package/dist-elements/tag/toggletip.js +6 -6
- package/dist-elements/tag/token-value.js +2 -2
- package/dist-elements/tag/tooltip.js +1 -1
- package/dist-elements/tag/transcript.js +22 -22
- package/dist-elements/tag/translator.js +6 -6
- package/dist-elements/tag/tree-view.js +22 -22
- package/dist-elements/tag/user-menu.js +43 -42
- package/dist-elements/tag/video-player.js +15 -15
- package/dist-elements/tokens.css +331 -11
- package/dist-elements/tokens.json +419 -19
- package/dist-elements/types/bundle/frame.d.ts +1 -0
- package/dist-elements/types/components/actions/button/button.d.ts +5 -1
- package/dist-elements/types/components/actions/menu-button/menu-button.d.ts +23 -5
- package/dist-elements/types/components/chat/chat-composer/chat-composer.d.ts +4 -2
- package/dist-elements/types/components/frame/breadcrumbs/breadcrumbs.d.ts +6 -2
- package/dist-elements/types/components/frame/footer/footer.d.ts +5 -1
- package/dist-elements/types/components/frame/hero/hero.d.ts +18 -1
- package/dist-elements/types/components/frame/language-nav/language-nav.d.ts +49 -0
- package/dist-elements/types/components/frame/page-header/page-header.d.ts +15 -1
- package/dist-elements/types/components/frame/shell/shell.d.ts +23 -3
- package/dist-elements/types/components/index.d.ts +4 -1
- package/dist-elements/types/components/inputs/shared/field-foot.d.ts +3 -2
- package/dist-elements/types/components/inputs/shared/input.d.ts +11 -0
- package/dist-elements/types/components/inputs/text-input/text-input.d.ts +1 -1
- package/dist-elements/types/components/inputs/textarea/textarea.d.ts +1 -0
- package/dist-elements/types/components/layout/expander/expander.d.ts +10 -5
- package/dist-elements/types/components/layout/tabs/tabs.d.ts +3 -0
- package/dist-elements/types/components/layout/tile/tile.d.ts +22 -2
- package/dist-elements/types/components/overlays/drawer/drawer.d.ts +5 -1
- package/dist-elements/types/components/overlays/popover/popover.d.ts +2 -0
- package/dist-elements/types/components/shared/announcement-block.d.ts +2 -0
- package/dist-elements/types/components/shared/grid-item-element.d.ts +24 -1
- package/dist-elements/types/components/shared/tone.d.ts +7 -0
- package/dist-elements/types/components/tables/list/list.d.ts +6 -0
- package/dist-elements/types/core/element.d.ts +20 -2
- package/dist-elements/types/core/styles.d.ts +4 -2
- package/dist-elements/types/icons/register.d.ts +1 -1
- package/dist-elements/types/types.d.ts +15 -0
- package/dist-icons/functioneel-cirkel-vinkje-gekleurd.svg +1 -0
- package/dist-icons/functioneel-foutmelding-gekleurd.svg +1 -0
- package/dist-icons/functioneel-info-gekleurd.svg +1 -0
- package/dist-icons/functioneel-waarschuwing-gekleurd.svg +1 -0
- package/package.json +1 -1
- package/dist-elements/chunks/base-DpZg_-sV.js +0 -226
- package/dist-elements/chunks/chart-styles-BIR87i7H.js +0 -45
- package/dist-elements/chunks/dialog-close-B0vtlJWP.js +0 -1
- package/dist-elements/chunks/frame-BMR48Vea.js +0 -1
- package/dist-elements/chunks/input-CCT6CcW1.js +0 -1
- package/dist-elements/chunks/prose-aNcSsHId.js +0 -1
- package/dist-elements/chunks/sentence-Dq2QLUs9.js +0 -3
package/dist-elements/tokens.css
CHANGED
|
@@ -19,12 +19,20 @@
|
|
|
19
19
|
--accent: #E17000;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
/* Rijksoverheid — donkerblauw. Not lintblauw (`#154273`): the ribbon's own colour would vanish
|
|
22
|
+
/* Rijksoverheid — donkerblauw. Not lintblauw (`#154273`): the ribbon's own colour would vanish
|
|
23
|
+
in the menu filled with it. */
|
|
23
24
|
[data-theme='rijksoverheid'] {
|
|
24
25
|
--primary: #01689B;
|
|
25
26
|
--accent: #E17000;
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
/* In the new house style the menu is white and the ribbon stands on white, so Rijksoverheid takes
|
|
30
|
+
the house style's own primary, lintblauw. */
|
|
31
|
+
:root[data-style-version='new']:not([data-theme]),
|
|
32
|
+
:root[data-style-version='new'][data-theme='rijksoverheid'] {
|
|
33
|
+
--primary: #154273;
|
|
34
|
+
}
|
|
35
|
+
|
|
28
36
|
/* Koninklijke Marechaussee — Nassau blue. */
|
|
29
37
|
[data-theme='marechaussee'] {
|
|
30
38
|
--primary: #0E3B6E;
|
|
@@ -94,8 +102,9 @@
|
|
|
94
102
|
--ink-black: #0F172A;
|
|
95
103
|
--alpha-white-82: rgba(255, 255, 255, 0.82);
|
|
96
104
|
--alpha-white-45: rgba(255, 255, 255, 0.45);
|
|
105
|
+
--alpha-white-16: rgba(255, 255, 255, 0.16);
|
|
97
106
|
|
|
98
|
-
/* --- Focus
|
|
107
|
+
/* --- Focus, earlier house style ----------------------------------------
|
|
99
108
|
Its own constant: it must not move with the accent or the attention status. The orange is
|
|
100
109
|
3.22:1 on white and falls short on the light grey surfaces and the status tints; the deep
|
|
101
110
|
orange is the smallest share of black that reaches 3:1 on all of them. */
|
|
@@ -167,6 +176,8 @@
|
|
|
167
176
|
--alpha-black-40: rgba(0, 0, 0, 0.4);
|
|
168
177
|
--alpha-black-55: rgba(0, 0, 0, 0.55);
|
|
169
178
|
--alpha-black-60: rgba(0, 0, 0, 0.6);
|
|
179
|
+
/* Cool Gray 900 at 80 %: the house style's veil under a dialog. */
|
|
180
|
+
--alpha-slate-80: rgba(15, 23, 42, 0.8);
|
|
170
181
|
}
|
|
171
182
|
|
|
172
183
|
/* ============================================================================
|
|
@@ -182,7 +193,7 @@
|
|
|
182
193
|
--primary-line: color-mix(in srgb, var(--primary), white 22%);
|
|
183
194
|
/* The dark tints lift only the perceived lightness, so they keep the primary's colour; a mix
|
|
184
195
|
with white greys it. Each lightness is the smallest hundredth that clears its floor in every
|
|
185
|
-
theme: 3:1 on #282828 for a line, 4.5:1 on #333333 (neutral-2), the lightest neutral
|
|
196
|
+
theme: 3:1 on #282828 (the page) for a line, 4.5:1 on #333333 (neutral-2), the lightest neutral
|
|
186
197
|
surface a word stands on, for text. A primary that is lighter already keeps its own. */
|
|
187
198
|
--primary-tint: oklch(from var(--primary) max(l, 0.55) c h);
|
|
188
199
|
--primary-tint-text: oklch(from var(--primary) max(l, 0.71) c h);
|
|
@@ -305,10 +316,18 @@
|
|
|
305
316
|
--font-ui: 'RijksSans', 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
306
317
|
--font-mono: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
307
318
|
|
|
319
|
+
/* The house style's scale: 12, 14, 16, 20, 24, 32, 40, 48 and 64 px, in rem. The names follow
|
|
320
|
+
the page's hierarchy (the page's h1, a title's h2, a tile's title); prose maps its six
|
|
321
|
+
heading levels onto the steps. */
|
|
308
322
|
--text-dashboard: 700 1.25rem/1.2 var(--font-ui);
|
|
309
323
|
--text-h1: 700 1.75rem/1.2 var(--font-ui);
|
|
310
324
|
--text-h1-mobile: 700 1.5rem/1.15 var(--font-ui);
|
|
311
325
|
--text-h1-display: 700 2.5rem/1.1 var(--font-ui);
|
|
326
|
+
/* The two largest steps: a start page's one line, a figure that reads across a room. */
|
|
327
|
+
--text-display: 700 3rem/1.1 var(--font-ui);
|
|
328
|
+
--text-display-large: 700 4rem/1.05 var(--font-ui);
|
|
329
|
+
/* A section's heading on a long page, between the page's title and a tile's. */
|
|
330
|
+
--text-section: 700 1.5rem/1.25 var(--font-ui);
|
|
312
331
|
--text-h2: 700 1.25rem/1.25 var(--font-ui);
|
|
313
332
|
--text-tile-title: 700 1rem/1.3 var(--font-ui);
|
|
314
333
|
--text-kpi: 700 2rem/1.1 var(--font-ui);
|
|
@@ -319,6 +338,9 @@
|
|
|
319
338
|
transcript in its large size. */
|
|
320
339
|
--text-translation: 400 1.25rem/1.5 var(--font-ui);
|
|
321
340
|
--text-ui: 400 1rem/1.4 var(--font-ui);
|
|
341
|
+
/* The footer's tagline: the house style's payoff, italic in the regular weight, a step under
|
|
342
|
+
its 36–40 px, as an application's foot asks less room than a site's. */
|
|
343
|
+
--text-tagline: italic 400 2rem/1.25 var(--font-ui);
|
|
322
344
|
/* Secondary text is one token: a hint, a sub-line, a meta line, a date. */
|
|
323
345
|
--text-small: 400 0.875rem/1.45 var(--font-ui);
|
|
324
346
|
/* Former names of the same token; they go with the next breaking release. */
|
|
@@ -399,6 +421,8 @@
|
|
|
399
421
|
--w-gallery-thumb: 120px;
|
|
400
422
|
/* The narrowest column of links in a footer before the columns stand under each other. */
|
|
401
423
|
--w-footer-column: 220px;
|
|
424
|
+
/* The widest a one-line field grows when it fills its column: a select. */
|
|
425
|
+
--w-field: 480px;
|
|
402
426
|
|
|
403
427
|
--page-pad-y: 32px;
|
|
404
428
|
--page-pad-x: 24px;
|
|
@@ -418,7 +442,14 @@
|
|
|
418
442
|
/* Sticky context = top bar + summary bar. */
|
|
419
443
|
--h-sticky: calc(var(--h-topbar) + var(--h-contextbar));
|
|
420
444
|
|
|
445
|
+
/* The corners: of a framed block (a card, a tile, a dialog), of a button and a field, and the
|
|
446
|
+
one large corner of a drawer and a narrow band. All square in the earlier house style; the new style
|
|
447
|
+
(`data-style-version="new"`) sets them below, the large one with `data-style-new-corner`. */
|
|
421
448
|
--radius: 0px;
|
|
449
|
+
--radius-control: 0px;
|
|
450
|
+
--radius-corner: 0px;
|
|
451
|
+
/* The quotation in running text: the house style's one corner as a quote mark, top left. */
|
|
452
|
+
--radius-quote: 24px;
|
|
422
453
|
--radius-round: 50%;
|
|
423
454
|
|
|
424
455
|
--shadow-sticky: 0 2px 6px var(--alpha-black-08);
|
|
@@ -436,8 +467,11 @@
|
|
|
436
467
|
--color-overlay-page: var(--alpha-black-60);
|
|
437
468
|
--color-overlay-nav: var(--alpha-black-16);
|
|
438
469
|
|
|
470
|
+
/* The ring: 3 px at 2 px from the box. Where the outside would be clipped it sits inside the
|
|
471
|
+
box, by `--focus-inset`. */
|
|
439
472
|
--focus-width: 3px;
|
|
440
473
|
--focus-offset: 2px;
|
|
474
|
+
--focus-inset: calc(-1 * var(--focus-width));
|
|
441
475
|
|
|
442
476
|
/* --- Motion ------------------------------------------------------------ */
|
|
443
477
|
/* `@kind other` marks these for design tooling as neither colors, sizes nor type; the library
|
|
@@ -498,9 +532,15 @@
|
|
|
498
532
|
--color-border-heavy: var(--neutral-4);
|
|
499
533
|
/* The resting edge of a field box: 3:1 (WCAG 1.4.11) on the surface and the filter band. */
|
|
500
534
|
--color-border-field: var(--neutral-5);
|
|
501
|
-
/* The
|
|
535
|
+
/* The toggle's off track: the field's grey in both house styles, so off never reads as chosen. */
|
|
536
|
+
--color-choice-off: var(--neutral-5);
|
|
537
|
+
/* The fill of a field at rest: the surface; dark in the new style lifts it above the page. */
|
|
538
|
+
--color-bg-field: var(--color-bg-surface);
|
|
539
|
+
/* The fill of a field in error: the surface; the new style tints it. */
|
|
540
|
+
--color-bg-field-error: var(--color-bg-surface);
|
|
541
|
+
/* The edge of a checkbox and a radio: 3:1 on the surface; dark re-points it. */
|
|
502
542
|
--color-border-choice: var(--neutral-5);
|
|
503
|
-
/* In dark a sheet is the same #
|
|
543
|
+
/* In dark a sheet is the same #1D1D1D as the tile under it, so this line separates them. */
|
|
504
544
|
--color-border-popover: var(--neutral-3);
|
|
505
545
|
/* A DASHED outline (a suggestion, an uncertain term): neutral-5, because a dashed line has half
|
|
506
546
|
the ink of a solid one and must still reach 3:1. */
|
|
@@ -518,14 +558,34 @@
|
|
|
518
558
|
/* --- Semantic: action -------------------------------------------------- */
|
|
519
559
|
--color-action-primary: var(--primary);
|
|
520
560
|
--color-action-primary-hover: var(--primary-hover);
|
|
561
|
+
/* Pressed is the hover; the new style takes it a step past hover. */
|
|
562
|
+
--color-action-primary-pressed: var(--color-action-primary-hover);
|
|
521
563
|
--color-action-primary-text: var(--ink-white);
|
|
522
564
|
/* A primary fill in dark is a dark box on a dark page (WCAG 1.4.11): it gets a tint border. */
|
|
523
565
|
--color-action-primary-border: var(--primary);
|
|
524
566
|
--color-action-secondary-border: var(--primary);
|
|
567
|
+
/* The outlined button's hover is the subtle surface; the new style tints it in the primary's
|
|
568
|
+
wash. Dark re-points it to the neutral step. */
|
|
569
|
+
--color-action-secondary-hover: var(--color-bg-subtle);
|
|
570
|
+
--color-action-secondary-pressed: var(--color-action-secondary-hover);
|
|
571
|
+
/* The tertiary button's hover is the subtle surface; its word and edge are with the
|
|
572
|
+
components below. */
|
|
573
|
+
--color-action-tertiary-hover: var(--color-bg-subtle);
|
|
574
|
+
--color-action-tertiary-pressed: var(--color-action-tertiary-hover);
|
|
575
|
+
/* On a theme fill: the inverse button is white with the primary's word, and lets a little of
|
|
576
|
+
the primary through under the pointer; its outlined form is white on white, lit by white and
|
|
577
|
+
pressed by black at a low alpha. The same in dark: the fill under it stays the primary. */
|
|
578
|
+
--color-action-inverse: var(--ink-white);
|
|
579
|
+
--color-action-inverse-text: var(--primary);
|
|
580
|
+
--color-action-inverse-hover: color-mix(in srgb, var(--ink-white), var(--primary) 10%);
|
|
581
|
+
--color-action-inverse-pressed: color-mix(in srgb, var(--ink-white), var(--primary) 20%);
|
|
582
|
+
--color-action-inverse-secondary-hover: var(--alpha-white-16);
|
|
583
|
+
--color-action-inverse-secondary-pressed: var(--alpha-black-14);
|
|
525
584
|
/* The destructive fill: the error red, white text on it (5.01:1). Hover is darker in light,
|
|
526
585
|
lighter in dark. In dark the border is a tint, because #D52B1E is 2.94:1 on #282828. */
|
|
527
586
|
--color-action-danger: var(--status-error);
|
|
528
587
|
--color-action-danger-hover: color-mix(in srgb, var(--status-error), black 30%);
|
|
588
|
+
--color-action-danger-pressed: var(--color-action-danger-hover);
|
|
529
589
|
--color-action-danger-border: var(--status-error);
|
|
530
590
|
/* The word of the outlined danger button; dark re-points it (the red is 2.94:1 on #282828). */
|
|
531
591
|
--color-action-danger-text: var(--status-error);
|
|
@@ -542,7 +602,10 @@
|
|
|
542
602
|
--color-accent-line: var(--primary);
|
|
543
603
|
--color-accent-text: var(--primary);
|
|
544
604
|
|
|
605
|
+
/* The focus ring: the deep orange, with no line inside it. Its own tokens: they follow neither
|
|
606
|
+
the accent nor a status. The new style draws the dark line with the white line inside. */
|
|
545
607
|
--color-focus: var(--focus-orange-deep);
|
|
608
|
+
--color-focus-inner: transparent;
|
|
546
609
|
|
|
547
610
|
/* --- Semantic: status -------------------------------------------------- */
|
|
548
611
|
--color-attention: var(--status-attention);
|
|
@@ -559,6 +622,10 @@
|
|
|
559
622
|
|
|
560
623
|
/* A status mark on its own tint: the status colour, nudged to 3:1 where it falls short. */
|
|
561
624
|
--color-attention-line: color-mix(in srgb, var(--status-attention), black 10%);
|
|
625
|
+
/* A warning block (alert, toast): the attention status; the new style takes donkergeel, as the
|
|
626
|
+
house style draws a warning. Its bar decorates, the icon and the words carry the meaning. */
|
|
627
|
+
--color-alert-warning-bg: var(--color-attention-bg);
|
|
628
|
+
--color-alert-warning-line: var(--color-attention-line);
|
|
562
629
|
--color-error-line: var(--status-error);
|
|
563
630
|
--color-info-line: var(--status-info);
|
|
564
631
|
--color-success-line: var(--status-success);
|
|
@@ -572,6 +639,8 @@
|
|
|
572
639
|
--color-nav-text: var(--ink-white);
|
|
573
640
|
--color-nav-text-sub: var(--alpha-white-82);
|
|
574
641
|
--color-nav-hover: var(--primary-hover);
|
|
642
|
+
/* The word of a row under the pointer; the light tone fills that row in the primary. */
|
|
643
|
+
--color-nav-hover-text: var(--ink-white);
|
|
575
644
|
--color-nav-active: var(--primary-hover);
|
|
576
645
|
--color-nav-active-edge: var(--ink-white);
|
|
577
646
|
--color-nav-active-text: var(--ink-white);
|
|
@@ -583,8 +652,9 @@
|
|
|
583
652
|
--color-nav-avatar-bg: var(--ink-white);
|
|
584
653
|
--color-nav-avatar-text: var(--ink-black);
|
|
585
654
|
/* Orange fails on the theme fill (1.89:1 on #01689B, 1:1 on #E17000); white reaches 3:1 on
|
|
586
|
-
all six primaries. Dark re-points
|
|
655
|
+
all six primaries. Dark re-points both to the standard ring. */
|
|
587
656
|
--color-focus-on-theme: var(--ink-white);
|
|
657
|
+
--color-focus-on-theme-inner: var(--color-focus-inner);
|
|
588
658
|
/* The theme's ACCENT, not the attention status: on `defensie` the menu is `#E17000` and the
|
|
589
659
|
status colour made the band disappear. `--accent` is document level only. */
|
|
590
660
|
--color-nav-environment-bg: var(--accent);
|
|
@@ -597,7 +667,8 @@
|
|
|
597
667
|
--color-logobar-text: var(--color-text-primary);
|
|
598
668
|
/* The ribbon in the emblem; only the logo re-points it in dark, never lintblauw elsewhere. */
|
|
599
669
|
--color-logo-ribbon: var(--ribbon-blue);
|
|
600
|
-
/* The name beside it
|
|
670
|
+
/* The name beside it in lintblauw, as the logo's specification draws the wordmark, in both
|
|
671
|
+
house styles; dark writes it in the text colour, a lighter wordmark on the dark bar. */
|
|
601
672
|
--color-logo-name: var(--ribbon-blue);
|
|
602
673
|
/* What marks an entry in that bar. They name the primitives, never `--color-nav-*`: the bar
|
|
603
674
|
points those at these, and the two would refer to each other. */
|
|
@@ -605,14 +676,95 @@
|
|
|
605
676
|
--color-navbar-active: var(--primary-hover);
|
|
606
677
|
--color-navbar-active-edge: var(--ink-white);
|
|
607
678
|
--color-navbar-open-text: var(--color-accent-text);
|
|
679
|
+
/* --- Navigation, light tone --------------------------------------------
|
|
680
|
+
`nav-tone="light"` on the shell: the house style's white navigation bar and side navigation.
|
|
681
|
+
The shell points the `--color-nav-*` and `--color-navbar-*` names at these under its menu, its
|
|
682
|
+
bar and the mobile chrome; a menu that stays filled never reads them. The surface, with the
|
|
683
|
+
words in the accent's text tint; a row under the pointer fills in the primary with white on
|
|
684
|
+
it, the reader's page takes the wash with the accent's line at its edge. In dark every name
|
|
685
|
+
here follows its semantic token, so the tone stays neutral there as the menu does. */
|
|
686
|
+
--color-nav-light-bg: var(--color-bg-surface);
|
|
687
|
+
--color-nav-light-text: var(--color-accent-text);
|
|
688
|
+
--color-nav-light-text-sub: var(--color-text-muted);
|
|
689
|
+
--color-nav-light-hover: var(--primary);
|
|
690
|
+
--color-nav-light-hover-text: var(--ink-white);
|
|
691
|
+
--color-nav-light-active: var(--primary-wash);
|
|
692
|
+
--color-nav-light-active-edge: var(--color-accent-line);
|
|
693
|
+
--color-nav-light-active-text: var(--color-accent-text);
|
|
694
|
+
--color-nav-light-line: var(--color-border-default);
|
|
695
|
+
--color-nav-light-disabled: var(--color-text-disabled);
|
|
696
|
+
/* The avatar on the white rail is the page's grey circle: a white one would vanish. */
|
|
697
|
+
--color-nav-light-avatar-bg: var(--color-avatar-bg);
|
|
698
|
+
--color-nav-light-avatar-text: var(--color-avatar-text);
|
|
699
|
+
/* The bar's entries: a quiet hover, no fill under the active entry, its edge the underline. */
|
|
700
|
+
--color-navbar-light-hover: var(--color-bg-subtle);
|
|
701
|
+
--color-navbar-light-active: var(--color-bg-surface);
|
|
702
|
+
--color-navbar-light-active-edge: var(--color-accent-line);
|
|
703
|
+
|
|
704
|
+
/* --- Components that the two house styles draw differently ------------
|
|
705
|
+
The earlier style's values; the new style's block below sets its own. An element reads
|
|
706
|
+
these and never the style itself, so its CSS is the same in both. */
|
|
707
|
+
/* The status bar at the left of a message, a toast, a form's summary and a field in error,
|
|
708
|
+
and the room a field keeps beside it. */
|
|
709
|
+
--tone-bar-width: 0px;
|
|
710
|
+
--field-error-inset: 0px;
|
|
711
|
+
/* A field in error: its red edge, and the bar beside the whole field; no bar in the earlier style. */
|
|
712
|
+
--field-error-border: 2px;
|
|
713
|
+
--field-error-bar: 0px;
|
|
714
|
+
/* The edge of a checkbox and a radio. */
|
|
715
|
+
--border-choice-width: 2px;
|
|
716
|
+
/* The tertiary button: outlined in the strong border with the text colour, or a word in the
|
|
717
|
+
primary without a box; disabled, it greys as every button, or keeps no box. */
|
|
718
|
+
--color-action-tertiary-text: var(--color-text-primary);
|
|
719
|
+
--color-action-tertiary-border: var(--color-border-strong);
|
|
720
|
+
--color-action-tertiary-disabled-bg: var(--color-bg-subtle);
|
|
721
|
+
--color-action-tertiary-disabled-border: var(--color-border-default);
|
|
722
|
+
/* The expander: an outlined card, or the accordion row with a line above and under it. */
|
|
723
|
+
--expander-bg: var(--color-bg-surface);
|
|
724
|
+
--expander-border-block: 1px solid var(--color-border-default);
|
|
725
|
+
--expander-border-inline: 1px solid var(--color-border-default);
|
|
726
|
+
--expander-radius: var(--radius);
|
|
727
|
+
--expander-pad: var(--tile-pad-y) var(--tile-pad-x);
|
|
728
|
+
--color-expander-title: var(--color-text-primary);
|
|
729
|
+
--color-expander-content: var(--color-text-secondary);
|
|
730
|
+
/* The current page in the pagination: the filled square, or the light tint with a dark digit. */
|
|
731
|
+
--color-pagination-current-bg: var(--color-action-primary);
|
|
732
|
+
--color-pagination-current-border: var(--color-action-primary-border);
|
|
733
|
+
--color-pagination-current-text: var(--color-action-primary-text);
|
|
734
|
+
/* The sub-navigation: typographic, or the row filled under the pointer with the reader's page
|
|
735
|
+
on the wash; the inset is how far a row reaches past the text column. */
|
|
736
|
+
--sub-nav-inset: var(--space-2);
|
|
737
|
+
--sub-nav-hover-decoration: underline;
|
|
738
|
+
--color-sub-nav-hover-bg: transparent;
|
|
739
|
+
--color-sub-nav-hover-text: var(--color-link-hover);
|
|
740
|
+
--color-sub-nav-current-bg: transparent;
|
|
741
|
+
/* The window: a line between its head, body and foot, or none. */
|
|
742
|
+
--modal-divider: 1px solid var(--color-border-default);
|
|
743
|
+
--modal-head-pad-bottom: var(--space-5);
|
|
744
|
+
--modal-foot-pad: var(--space-3) var(--space-6);
|
|
745
|
+
--color-modal-title: var(--color-text-primary);
|
|
746
|
+
|
|
608
747
|
/* The start page's band is the primary's wash, so it never reads as the menu. */
|
|
609
748
|
--color-hero-bg: var(--primary-wash);
|
|
610
749
|
--color-hero-text: var(--color-text-primary);
|
|
750
|
+
/* The band as the page's head (`tone="primary"`): the primary itself, with the one corner of
|
|
751
|
+
the house style. Its word is white, or ink where white falls under 4.5:1 on a light primary
|
|
752
|
+
(Defensie's orange), as the environment label decides: ink above lightness 0.6. The ring is
|
|
753
|
+
the inverse one: white, which reaches 3:1 on every primary, with the dark line inside. */
|
|
754
|
+
--color-hero-primary-bg: var(--primary);
|
|
755
|
+
--color-hero-primary-text: oklch(from var(--primary) clamp(0.208, (0.6 - l) * 1000, 1) clamp(0, (l - 0.6) * 1000, 0.04) 265.8);
|
|
756
|
+
--color-hero-primary-focus: var(--ink-white);
|
|
757
|
+
--color-hero-primary-focus-inner: var(--ink-black);
|
|
611
758
|
/* The site's foot stands on the menu's own fill, as on rijksoverheid.nl; in dark it follows the menu. */
|
|
612
759
|
--color-footer-bg: var(--color-nav-bg);
|
|
613
760
|
--color-footer-text: var(--color-nav-text);
|
|
614
761
|
--color-footer-line: var(--color-nav-line);
|
|
615
762
|
--color-footer-focus: var(--color-focus-on-theme);
|
|
763
|
+
--color-footer-focus-inner: var(--color-focus-on-theme-inner);
|
|
764
|
+
/* The compact foot of a form or a task page: the subtle surface, the page's own text and links. */
|
|
765
|
+
--color-footer-compact-bg: var(--color-bg-subtle);
|
|
766
|
+
--color-footer-compact-text: var(--color-text-primary);
|
|
767
|
+
--color-footer-compact-link: var(--color-link);
|
|
616
768
|
|
|
617
769
|
/* The box behind a recognised term: the primary's wash; dark re-points it. */
|
|
618
770
|
--color-term-bg: var(--primary-wash);
|
|
@@ -794,14 +946,106 @@
|
|
|
794
946
|
--color-chart-seq-5: var(--data-sky-blue);
|
|
795
947
|
}
|
|
796
948
|
|
|
949
|
+
/* ============================================================================
|
|
950
|
+
The new house style — `data-style-version="new"` on `<html>`, mirrored onto every element's host
|
|
951
|
+
|
|
952
|
+
What the house style draws differently online since 2025: the larger page title, the content
|
|
953
|
+
at 1280 px with a ribbon as the page's margin, the small corners on controls and fields, the
|
|
954
|
+
ring as a dark line with a white line inside, the choice edge in the accent, the cool veil
|
|
955
|
+
and the tinted hover of the outlined button. The large corner of a drawer and a narrow band
|
|
956
|
+
comes with `data-style-new-corner` (round unless `square`). Everything else the two styles share.
|
|
957
|
+
========================================================================= */
|
|
958
|
+
[data-style-version='new'] {
|
|
959
|
+
/* The house style's scale: the page's h1 at 32 px. */
|
|
960
|
+
--text-h1: 700 2rem/1.2 var(--font-ui);
|
|
961
|
+
/* The widest the page's content gets, the house style's 1280 px. */
|
|
962
|
+
--w-content: 1280px;
|
|
963
|
+
/* The page's side margin: one ribbon on a desktop, half a ribbon on a tablet, 20 px on a
|
|
964
|
+
phone, as the house style lays the page out. */
|
|
965
|
+
--page-pad-x: 48px;
|
|
966
|
+
/* The small corners of the house style online: on a button and a field, never larger. A framed
|
|
967
|
+
block (a card, a tile, a dialog, an alert) keeps `--radius` at 0, as the house style draws it. */
|
|
968
|
+
--radius-control: 4px;
|
|
969
|
+
/* The veil under a dialog, a modal and a drawer: the house style's cool grey at 80 %; the
|
|
970
|
+
window's surface and border stand on it alike (1.3:1 edge). Dark takes black. */
|
|
971
|
+
--color-overlay-page: var(--alpha-slate-80);
|
|
972
|
+
/* The house style's ring: a 2 px line at 2 px from the box, the gap filled by a line in the
|
|
973
|
+
opposite ink, so the ring reads on every surface; inside a box both lines stay inside. */
|
|
974
|
+
--focus-width: 2px;
|
|
975
|
+
--focus-inset: calc(-1 * (var(--focus-width) + var(--focus-offset)));
|
|
976
|
+
--color-focus: var(--ink-black);
|
|
977
|
+
--color-focus-inner: var(--ink-white);
|
|
978
|
+
--color-focus-on-theme-inner: var(--ink-black);
|
|
979
|
+
/* The 1 px edge of a checkbox and a radio: the accent's line, as the house style draws it in
|
|
980
|
+
lintblauw; 3:1 on the surface in both modes by the line tint's construction. */
|
|
981
|
+
--color-border-choice: var(--color-accent-line);
|
|
982
|
+
/* The 1 px edge of a field in the same line, as the house style draws a field in lintblauw. */
|
|
983
|
+
--color-border-field: var(--color-accent-line);
|
|
984
|
+
/* A field in error stands on the error tint, under its red edge. */
|
|
985
|
+
--color-bg-field-error: var(--color-error-bg);
|
|
986
|
+
/* The outlined button's hover is the primary's wash, as the house style tints it; pressed a
|
|
987
|
+
step deeper into the wash. */
|
|
988
|
+
--color-action-secondary-hover: var(--primary-wash);
|
|
989
|
+
--color-action-secondary-pressed: oklch(from var(--primary) 0.9 min(c, 0.04) h);
|
|
990
|
+
/* Pressed is a step past hover on every filled or tinted button: darker in light, lighter in
|
|
991
|
+
dark, as the hover goes. In light the house style's shade 2 of the fill, as hover (30 %) is
|
|
992
|
+
its shade 4: 55 % black lands on it within a unit per channel for lintblauw and donkerblauw. */
|
|
993
|
+
--color-action-primary-pressed: color-mix(in srgb, var(--primary), black 55%);
|
|
994
|
+
--color-action-tertiary-pressed: var(--color-border-default);
|
|
995
|
+
--color-action-danger-pressed: color-mix(in srgb, var(--status-error), black 55%);
|
|
996
|
+
/* The house style's one rounded corner, a ribbon wide, on a drawer (its corner free) and on a
|
|
997
|
+
narrow band inside the margins. A band or foot that runs edge to edge stays square. */
|
|
998
|
+
--radius-corner: 48px;
|
|
999
|
+
/* The components that draw differently: the status bar, the 1 px choice edge, the boxless
|
|
1000
|
+
tertiary, the accordion row, the tinted current page, the filled sub-navigation and the
|
|
1001
|
+
window without lines. */
|
|
1002
|
+
--tone-bar-width: var(--space-1);
|
|
1003
|
+
--field-error-inset: var(--space-4);
|
|
1004
|
+
/* The house style's field in error: a 1 px red edge and a 2 px bar, finer than a status block's. */
|
|
1005
|
+
--field-error-border: 1px;
|
|
1006
|
+
--field-error-bar: 2px;
|
|
1007
|
+
--border-choice-width: 1px;
|
|
1008
|
+
--color-action-tertiary-text: var(--color-accent-text);
|
|
1009
|
+
--color-action-tertiary-border: transparent;
|
|
1010
|
+
--color-action-tertiary-disabled-bg: transparent;
|
|
1011
|
+
--color-action-tertiary-disabled-border: transparent;
|
|
1012
|
+
--expander-bg: transparent;
|
|
1013
|
+
--expander-border-inline: 0 solid transparent;
|
|
1014
|
+
--expander-radius: 0px;
|
|
1015
|
+
--expander-pad: var(--space-1) 0;
|
|
1016
|
+
--color-expander-title: var(--color-accent-text);
|
|
1017
|
+
--color-alert-warning-bg: var(--color-warning-bg);
|
|
1018
|
+
/* The compact foot on the primary's wash, as the house style tints it. */
|
|
1019
|
+
--color-footer-compact-bg: var(--primary-wash);
|
|
1020
|
+
--color-alert-warning-line: var(--status-warning);
|
|
1021
|
+
--color-expander-content: var(--color-text-primary);
|
|
1022
|
+
--color-pagination-current-bg: var(--color-choice-active-bg);
|
|
1023
|
+
--color-pagination-current-border: transparent;
|
|
1024
|
+
--color-pagination-current-text: var(--color-text-primary);
|
|
1025
|
+
--sub-nav-inset: var(--space-4);
|
|
1026
|
+
--sub-nav-hover-decoration: none;
|
|
1027
|
+
--color-sub-nav-hover-bg: var(--color-action-primary);
|
|
1028
|
+
--color-sub-nav-hover-text: var(--color-action-primary-text);
|
|
1029
|
+
--color-sub-nav-current-bg: var(--color-choice-active-bg);
|
|
1030
|
+
--modal-divider: 0 solid transparent;
|
|
1031
|
+
--modal-head-pad-bottom: 0px;
|
|
1032
|
+
--modal-foot-pad: 0 var(--space-6) var(--space-4);
|
|
1033
|
+
--color-modal-title: var(--color-accent-text);
|
|
1034
|
+
}
|
|
1035
|
+
/* `data-style-new-corner="square"` leaves the large corner out; without it the corner is round. */
|
|
1036
|
+
[data-style-version='new'][data-style-new-corner='square'] {
|
|
1037
|
+
--radius-corner: 0px;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
797
1040
|
/* ============================================================================
|
|
798
1041
|
Dark mode — the Logius range, no inversion
|
|
799
1042
|
|
|
800
1043
|
Redefines the seven `--neutral-*` primitives, re-declares `--primary-hover` lighter and
|
|
801
1044
|
re-points the layer-2/3 names whose meaning changes; everything that merely follows a
|
|
802
1045
|
neutral is absent on purpose. Page and tiles are both #282828, the border separates them: the
|
|
803
|
-
step below is the menu's, so it stays a band beside the page and under the logo bar.
|
|
804
|
-
Screen only: paper is always
|
|
1046
|
+
step below is the menu's, so it stays a band beside the page and under the logo bar. The new
|
|
1047
|
+
style mirrors light instead, in its own block under this one. Screen only: paper is always
|
|
1048
|
+
light, whatever the reader chose.
|
|
805
1049
|
========================================================================= */
|
|
806
1050
|
@media screen {
|
|
807
1051
|
[data-mode='dark'] {
|
|
@@ -815,6 +1059,7 @@
|
|
|
815
1059
|
|
|
816
1060
|
/* The hover goes UP in dark: the light mix would put a near-black fill on the near-black page. */
|
|
817
1061
|
--primary-hover: color-mix(in srgb, var(--primary), white 12%);
|
|
1062
|
+
--color-action-secondary-hover: var(--neutral-2);
|
|
818
1063
|
|
|
819
1064
|
/* The order of light holds: menu under page under surface. The series has no step between
|
|
820
1065
|
the menu (neutral-1, L 0.231) and the surface (L 0.277), so the page is their midpoint
|
|
@@ -824,6 +1069,11 @@
|
|
|
824
1069
|
/* The hero's wash sits halfway between the menu and the page, under the page as in light:
|
|
825
1070
|
a panel or tab on it is lighter than its ground. */
|
|
826
1071
|
--primary-wash: oklch(from var(--primary) 0.241 min(c, 0.02) h);
|
|
1072
|
+
/* The band in the primary colour is damped, as the house style damps a communication colour
|
|
1073
|
+
in dark: on the wash's lightness, a step above the page, with more of the theme's hue in it
|
|
1074
|
+
than the wash has and white on it in every theme. */
|
|
1075
|
+
--color-hero-primary-bg: oklch(from var(--primary) 0.3 min(c, 0.05) h);
|
|
1076
|
+
--color-hero-primary-text: var(--neutral-6);
|
|
827
1077
|
|
|
828
1078
|
/* The filter zone must read as a band, so in dark it steps UP to neutral-2 (neutral-1 turned
|
|
829
1079
|
the fields in it into light boxes). `--color-bg-inset` is "sunken": neutral-1, under the
|
|
@@ -869,6 +1119,17 @@
|
|
|
869
1119
|
--color-nav-text: var(--neutral-6);
|
|
870
1120
|
--color-nav-text-sub: var(--neutral-5);
|
|
871
1121
|
--color-nav-hover: var(--neutral-2);
|
|
1122
|
+
--color-nav-hover-text: var(--neutral-6);
|
|
1123
|
+
/* The light tone's active row steps up to the subtle surface: the wash lies under the surface
|
|
1124
|
+
in dark and the row would sink into the rail. Its edge takes the text tint, as the line
|
|
1125
|
+
tint reaches 3:1 on the surface only. */
|
|
1126
|
+
--color-nav-light-hover: var(--neutral-2);
|
|
1127
|
+
--color-nav-light-hover-text: var(--neutral-6);
|
|
1128
|
+
/* The rail and the bar already differ from the page in dark: the line that tells a white rail
|
|
1129
|
+
from a white page stays as quiet as it is in light, one step up from the rail. */
|
|
1130
|
+
--color-nav-light-line: var(--neutral-2);
|
|
1131
|
+
--color-nav-light-active: var(--neutral-2);
|
|
1132
|
+
--color-nav-light-active-edge: var(--primary-tint-text);
|
|
872
1133
|
--color-nav-active: var(--neutral-2);
|
|
873
1134
|
--color-nav-active-edge: var(--primary-tint-text);
|
|
874
1135
|
--color-navbar-hover: var(--neutral-2);
|
|
@@ -885,8 +1146,9 @@
|
|
|
885
1146
|
/* The deep orange falls under 3:1 on the dark warning tint; the house orange reaches 3.3:1 on
|
|
886
1147
|
every dark surface. */
|
|
887
1148
|
--color-focus: var(--focus-orange);
|
|
888
|
-
/* The menu is neutral here, so its ring is
|
|
1149
|
+
/* The menu is neutral here, so its ring is that of every other surface. */
|
|
889
1150
|
--color-focus-on-theme: var(--color-focus);
|
|
1151
|
+
--color-focus-on-theme-inner: var(--color-focus-inner);
|
|
890
1152
|
/* The choice edge keeps neutral-4 in dark: it already reaches 3:1 there (3.43:1 on #282828). */
|
|
891
1153
|
--color-border-choice: var(--neutral-4);
|
|
892
1154
|
|
|
@@ -923,6 +1185,55 @@
|
|
|
923
1185
|
--shadow-scroll-end: inset -12px 0 10px -10px var(--alpha-black-60);
|
|
924
1186
|
--color-overlay-nav: var(--alpha-black-40);
|
|
925
1187
|
}
|
|
1188
|
+
|
|
1189
|
+
/* The new style in dark is the mirror of light: the surface (a tile, the logo bar, a light
|
|
1190
|
+
menu) is the darkest, the page a step lighter, the subtle fill lighter still; the filled
|
|
1191
|
+
menu steps below the surface, so it stays a band beside the page and under the logo bar, as
|
|
1192
|
+
its primary fill does in light. Both selectors weigh the same as one, so what the new style
|
|
1193
|
+
sets in light and dark re-points here is said again. */
|
|
1194
|
+
[data-mode='dark'][data-style-version='new'] {
|
|
1195
|
+
/* Pressed a step past the lighter hover; the outlined button's pressed on the neutral step. */
|
|
1196
|
+
--color-action-primary-pressed: color-mix(in srgb, var(--primary), white 24%);
|
|
1197
|
+
--color-action-secondary-pressed: var(--neutral-3);
|
|
1198
|
+
--color-action-danger-pressed: color-mix(in srgb, var(--status-error), white 16%);
|
|
1199
|
+
--neutral-0: #1D1D1D;
|
|
1200
|
+
--neutral-1: #282828;
|
|
1201
|
+
--color-bg-page: var(--neutral-1);
|
|
1202
|
+
--color-bg-title: var(--neutral-1);
|
|
1203
|
+
--color-text-inverse: var(--neutral-0);
|
|
1204
|
+
/* The hero's wash is a step above the page, as it is a step below it in light: a panel or
|
|
1205
|
+
tab on it is darker than its ground, as a white one is lighter there. */
|
|
1206
|
+
--primary-wash: oklch(from var(--primary) 0.3 min(c, 0.02) h);
|
|
1207
|
+
/* A status mark at 3:1 on its own tint and on the page. The info blue and the green reach it
|
|
1208
|
+
by themselves: the floor lies under them. */
|
|
1209
|
+
--color-error-line: oklch(from var(--status-error) max(l, 0.58) c h);
|
|
1210
|
+
--color-info-line: oklch(from var(--status-info) max(l, 0.5) c h);
|
|
1211
|
+
--color-success-line: oklch(from var(--status-success) max(l, 0.5) c h);
|
|
1212
|
+
/* The filled menu a step below the surface; the line tint is 3:1 on the page only. */
|
|
1213
|
+
--color-nav-bg: color-mix(in srgb, var(--neutral-0), #000000 25%);
|
|
1214
|
+
--color-map-water: var(--neutral-0);
|
|
1215
|
+
/* The inverse ring of the house style: white with the dark line inside, on every surface. */
|
|
1216
|
+
--color-focus: var(--ink-white);
|
|
1217
|
+
--color-focus-inner: var(--ink-black);
|
|
1218
|
+
--color-focus-on-theme: var(--color-focus);
|
|
1219
|
+
--color-focus-on-theme-inner: var(--color-focus-inner);
|
|
1220
|
+
--color-border-choice: var(--color-accent-line);
|
|
1221
|
+
/* A field's edge stands on the filter band (#333333) too, where the line tint falls under 3:1:
|
|
1222
|
+
the text tint, light as the house style draws a dark field's edge. */
|
|
1223
|
+
--color-border-field: var(--color-accent-text);
|
|
1224
|
+
/* A field a step above the page, as the house style draws it in dark: the surface lies under
|
|
1225
|
+
the page here, and a field on it would read as a hole. */
|
|
1226
|
+
--color-bg-field: var(--neutral-2);
|
|
1227
|
+
/* The cool grey of the light veil tints a dark page blue: black here. */
|
|
1228
|
+
--color-overlay-page: var(--alpha-black-60);
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
/* A tablet keeps the gutter as its margin, half a ribbon. */
|
|
1233
|
+
@media screen and (max-width: 1023px) {
|
|
1234
|
+
[data-style-version='new'] {
|
|
1235
|
+
--page-pad-x: 24px;
|
|
1236
|
+
}
|
|
926
1237
|
}
|
|
927
1238
|
|
|
928
1239
|
/* ============================================================================
|
|
@@ -937,6 +1248,12 @@
|
|
|
937
1248
|
--chart-h-expanded: 320px;
|
|
938
1249
|
--w-ribbon: 2.5rem;
|
|
939
1250
|
}
|
|
1251
|
+
/* The house style's phone margin and its narrow gutter: 10 px, and 12 is the step of the
|
|
1252
|
+
scale nearest to it. */
|
|
1253
|
+
[data-style-version='new'] {
|
|
1254
|
+
--page-pad-x: 20px;
|
|
1255
|
+
--grid-gutter: 12px;
|
|
1256
|
+
}
|
|
940
1257
|
}
|
|
941
1258
|
|
|
942
1259
|
/* ============================================================================
|
|
@@ -945,7 +1262,10 @@
|
|
|
945
1262
|
say nothing.
|
|
946
1263
|
========================================================================= */
|
|
947
1264
|
@media print {
|
|
948
|
-
:root
|
|
1265
|
+
/* Both selectors: in a shadow root the new style's block weighs more than `:host` alone, so
|
|
1266
|
+
`:root` by itself would lose its print margin there. */
|
|
1267
|
+
:root,
|
|
1268
|
+
[data-style-version='new'] {
|
|
949
1269
|
/* The paper's margin is the page's edge: bars and content start at it, aligned. */
|
|
950
1270
|
--page-pad-x: 0px;
|
|
951
1271
|
--color-bg-page: var(--neutral-0);
|