@gjermundgaraba/pixel-paper 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +50 -2
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/announcer/announcer.d.ts +35 -0
- package/dist/announcer/announcer.js +121 -0
- package/dist/announcer/index.d.ts +5 -0
- package/dist/announcer/index.js +11 -0
- package/dist/attributes/attributes.d.ts +4 -0
- package/dist/banner/banner.d.ts +20 -0
- package/dist/banner/banner.js +18 -0
- package/dist/banner/index.d.ts +5 -0
- package/dist/banner/index.js +6 -0
- package/dist/bench/bench.d.ts +16 -0
- package/dist/bench/bench.js +12 -0
- package/dist/bench/index.d.ts +5 -0
- package/dist/bench/index.js +6 -0
- package/dist/board/board.d.ts +1151 -0
- package/dist/board/board.js +449 -0
- package/dist/board/index.d.ts +6 -0
- package/dist/board/index.js +21 -0
- package/dist/button/button.d.ts +54 -0
- package/dist/button/button.js +50 -0
- package/dist/button/index.d.ts +5 -0
- package/dist/button/index.js +9 -0
- package/dist/card/card.d.ts +66 -0
- package/dist/card/card.js +70 -0
- package/dist/card/index.d.ts +5 -0
- package/dist/card/index.js +10 -0
- package/dist/chip/chip.d.ts +27 -0
- package/dist/chip/chip.js +34 -0
- package/dist/chip/index.d.ts +5 -0
- package/dist/chip/index.js +9 -0
- package/dist/choice/choice.d.ts +16 -0
- package/dist/choice/choice.js +17 -0
- package/dist/choice/index.d.ts +5 -0
- package/dist/choice/index.js +6 -0
- package/dist/code-editor/code-editor.d.ts +15 -0
- package/dist/code-editor/code-editor.js +22 -0
- package/dist/code-editor/index.d.ts +5 -0
- package/dist/code-editor/index.js +6 -0
- package/dist/code-surface/code-surface.d.ts +12 -0
- package/dist/code-surface/code-surface.js +12 -0
- package/dist/code-surface/index.d.ts +5 -0
- package/dist/code-surface/index.js +6 -0
- package/dist/command-palette/command-palette.d.ts +579 -0
- package/dist/command-palette/command-palette.js +600 -0
- package/dist/command-palette/index.d.ts +9 -0
- package/dist/command-palette/index.js +32 -0
- package/dist/command-palette/keys.d.ts +13 -0
- package/dist/command-palette/keys.js +71 -0
- package/dist/command-palette/match.d.ts +43 -0
- package/dist/command-palette/match.js +45 -0
- package/dist/command-palette/message.d.ts +94 -0
- package/dist/command-palette/message.js +46 -0
- package/dist/confirm-dialog/confirm-dialog.d.ts +287 -0
- package/dist/confirm-dialog/confirm-dialog.js +115 -0
- package/dist/confirm-dialog/index.d.ts +5 -0
- package/dist/confirm-dialog/index.js +17 -0
- package/dist/copy-button/copy-button.d.ts +99 -0
- package/dist/copy-button/copy-button.js +96 -0
- package/dist/copy-button/index.d.ts +5 -0
- package/dist/copy-button/index.js +13 -0
- package/dist/crumbs/crumbs.d.ts +15 -0
- package/dist/crumbs/crumbs.js +11 -0
- package/dist/crumbs/index.d.ts +5 -0
- package/dist/crumbs/index.js +6 -0
- package/dist/deck/deck.d.ts +9 -0
- package/dist/deck/deck.js +9 -0
- package/dist/deck/index.d.ts +5 -0
- package/dist/deck/index.js +6 -0
- package/dist/dialog/dialog.d.ts +278 -0
- package/dist/dialog/dialog.js +145 -0
- package/dist/dialog/fold.d.ts +58 -0
- package/dist/dialog/fold.js +63 -0
- package/dist/dialog/index.d.ts +6 -0
- package/dist/dialog/index.js +21 -0
- package/dist/disclosure/disclosure.d.ts +24 -0
- package/dist/disclosure/disclosure.js +25 -0
- package/dist/disclosure/index.d.ts +5 -0
- package/dist/disclosure/index.js +6 -0
- package/dist/dom/html-element.js +8 -0
- package/dist/drag/drag.d.ts +15 -0
- package/dist/drag/drag.js +123 -0
- package/dist/drop-zone/drop-zone.d.ts +119 -0
- package/dist/drop-zone/drop-zone.js +64 -0
- package/dist/drop-zone/index.d.ts +5 -0
- package/dist/drop-zone/index.js +14 -0
- package/dist/empty-state/empty-state.d.ts +18 -0
- package/dist/empty-state/empty-state.js +16 -0
- package/dist/empty-state/index.d.ts +5 -0
- package/dist/empty-state/index.js +6 -0
- package/dist/error-summary/error-summary.d.ts +34 -0
- package/dist/error-summary/error-summary.js +33 -0
- package/dist/error-summary/index.d.ts +5 -0
- package/dist/error-summary/index.js +6 -0
- package/dist/field/field.d.ts +35 -0
- package/dist/field/field.js +34 -0
- package/dist/field/index.d.ts +5 -0
- package/dist/field/index.js +6 -0
- package/dist/field-grid/field-grid.d.ts +8 -0
- package/dist/field-grid/field-grid.js +8 -0
- package/dist/field-grid/index.d.ts +5 -0
- package/dist/field-grid/index.js +6 -0
- package/dist/fields/fields.js +9 -0
- package/dist/fieldset/fieldset.d.ts +13 -0
- package/dist/fieldset/fieldset.js +13 -0
- package/dist/fieldset/index.d.ts +5 -0
- package/dist/fieldset/index.js +6 -0
- package/dist/filter-chip/filter-chip.d.ts +21 -0
- package/dist/filter-chip/filter-chip.js +28 -0
- package/dist/filter-chip/index.d.ts +5 -0
- package/dist/filter-chip/index.js +6 -0
- package/dist/filter-strip/filter-strip.d.ts +12 -0
- package/dist/filter-strip/filter-strip.js +13 -0
- package/dist/filter-strip/index.d.ts +5 -0
- package/dist/filter-strip/index.js +6 -0
- package/dist/flash-word/flash-word.d.ts +31 -0
- package/dist/flash-word/flash-word.js +31 -0
- package/dist/flash-word/index.d.ts +5 -0
- package/dist/flash-word/index.js +9 -0
- package/dist/focus/focus.d.ts +15 -0
- package/dist/focus/focus.js +17 -0
- package/dist/focus/index.d.ts +5 -0
- package/dist/focus/index.js +9 -0
- package/dist/format/format.js +52 -0
- package/dist/format/index.d.ts +5 -0
- package/dist/format/index.js +6 -0
- package/dist/glyph/glyph.d.ts +9 -0
- package/dist/glyph/glyph.js +25 -0
- package/dist/glyph/glyphs.d.ts +381 -0
- package/dist/glyph/glyphs.js +2603 -0
- package/dist/glyph/index.d.ts +5 -0
- package/dist/glyph/index.js +6 -0
- package/dist/group/group.d.ts +8 -0
- package/dist/group/group.js +9 -0
- package/dist/group/index.d.ts +5 -0
- package/dist/group/index.js +6 -0
- package/dist/history/history.d.ts +34 -0
- package/dist/history/history.js +15 -0
- package/dist/history/index.d.ts +5 -0
- package/dist/history/index.js +6 -0
- package/dist/icon-button/icon-button.d.ts +23 -0
- package/dist/icon-button/icon-button.js +23 -0
- package/dist/icon-button/index.d.ts +5 -0
- package/dist/icon-button/index.js +6 -0
- package/dist/identity/identity.d.ts +15 -0
- package/dist/identity/identity.js +15 -0
- package/dist/identity/index.d.ts +5 -0
- package/dist/identity/index.js +6 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +85 -0
- package/dist/inline-input/index.d.ts +5 -0
- package/dist/inline-input/index.js +20 -0
- package/dist/inline-input/inline-input.d.ts +196 -0
- package/dist/inline-input/inline-input.js +212 -0
- package/dist/key-help/index.d.ts +5 -0
- package/dist/key-help/index.js +18 -0
- package/dist/key-help/key-help.d.ts +255 -0
- package/dist/key-help/key-help.js +137 -0
- package/dist/key-hint/index.d.ts +6 -0
- package/dist/key-hint/index.js +12 -0
- package/dist/key-hint/key-hint.d.ts +13 -0
- package/dist/key-hint/key-hint.js +7 -0
- package/dist/key-hint/key-label.d.ts +18 -0
- package/dist/key-hint/key-label.js +77 -0
- package/dist/keymap/keymap.d.ts +11 -0
- package/dist/keymap/keymap.js +9 -0
- package/dist/keys/keys.js +4 -0
- package/dist/line-diff/diff.d.ts +2 -0
- package/dist/line-diff/diff.js +73 -0
- package/dist/line-diff/index.d.ts +6 -0
- package/dist/line-diff/index.js +10 -0
- package/dist/line-diff/line-diff.d.ts +21 -0
- package/dist/line-diff/line-diff.js +75 -0
- package/dist/line-diff/patch.d.ts +15 -0
- package/dist/line-diff/patch.js +120 -0
- package/dist/link-button/index.d.ts +5 -0
- package/dist/link-button/index.js +6 -0
- package/dist/link-button/link-button.d.ts +11 -0
- package/dist/link-button/link-button.js +10 -0
- package/dist/link-state/index.d.ts +5 -0
- package/dist/link-state/index.js +6 -0
- package/dist/link-state/link-state.d.ts +15 -0
- package/dist/link-state/link-state.js +17 -0
- package/dist/live-region/index.d.ts +5 -0
- package/dist/live-region/index.js +9 -0
- package/dist/live-region/live-region.d.ts +39 -0
- package/dist/live-region/live-region.js +33 -0
- package/dist/loading/index.d.ts +5 -0
- package/dist/loading/index.js +6 -0
- package/dist/loading/loading.d.ts +19 -0
- package/dist/loading/loading.js +16 -0
- package/dist/locale/locale.d.ts +3 -0
- package/dist/locale/locale.js +5 -0
- package/dist/mark/index.d.ts +5 -0
- package/dist/mark/index.js +6 -0
- package/dist/mark/mark.d.ts +15 -0
- package/dist/mark/mark.js +30 -0
- package/dist/menu/index.d.ts +7 -0
- package/dist/menu/index.js +25 -0
- package/dist/menu/item.d.ts +236 -0
- package/dist/menu/item.js +19 -0
- package/dist/menu/menu.d.ts +206 -0
- package/dist/menu/menu.js +208 -0
- package/dist/menu/slip.js +163 -0
- package/dist/meter/index.d.ts +5 -0
- package/dist/meter/index.js +6 -0
- package/dist/meter/meter.d.ts +38 -0
- package/dist/meter/meter.js +69 -0
- package/dist/monogram/monogram.js +33 -0
- package/dist/nav-strip/index.d.ts +5 -0
- package/dist/nav-strip/index.js +6 -0
- package/dist/nav-strip/nav-strip.d.ts +19 -0
- package/dist/nav-strip/nav-strip.js +21 -0
- package/dist/notice/index.d.ts +5 -0
- package/dist/notice/index.js +6 -0
- package/dist/notice/notice.d.ts +23 -0
- package/dist/notice/notice.js +35 -0
- package/dist/outcome/index.d.ts +5 -0
- package/dist/outcome/index.js +6 -0
- package/dist/outcome/outcome.d.ts +19 -0
- package/dist/outcome/outcome.js +14 -0
- package/dist/page-head/index.d.ts +5 -0
- package/dist/page-head/index.js +6 -0
- package/dist/page-head/page-head.d.ts +13 -0
- package/dist/page-head/page-head.js +10 -0
- package/dist/panel/index.d.ts +5 -0
- package/dist/panel/index.js +6 -0
- package/dist/panel/panel.d.ts +35 -0
- package/dist/panel/panel.js +25 -0
- package/dist/password-field/index.d.ts +5 -0
- package/dist/password-field/index.js +6 -0
- package/dist/password-field/password-field.d.ts +33 -0
- package/dist/password-field/password-field.js +39 -0
- package/dist/places/index.d.ts +5 -0
- package/dist/places/index.js +6 -0
- package/dist/places/places.d.ts +32 -0
- package/dist/places/places.js +22 -0
- package/dist/props-list/index.d.ts +5 -0
- package/dist/props-list/index.js +6 -0
- package/dist/props-list/props-list.d.ts +18 -0
- package/dist/props-list/props-list.js +12 -0
- package/dist/prose/index.d.ts +5 -0
- package/dist/prose/index.js +6 -0
- package/dist/prose/prose.d.ts +14 -0
- package/dist/prose/prose.js +6 -0
- package/dist/query-chip/index.d.ts +5 -0
- package/dist/query-chip/index.js +6 -0
- package/dist/query-chip/query-chip.d.ts +18 -0
- package/dist/query-chip/query-chip.js +17 -0
- package/dist/radio-choices/index.d.ts +5 -0
- package/dist/radio-choices/index.js +12 -0
- package/dist/radio-choices/radio-choices.d.ts +105 -0
- package/dist/radio-choices/radio-choices.js +56 -0
- package/dist/rail/index.d.ts +5 -0
- package/dist/rail/index.js +22 -0
- package/dist/rail/rail.d.ts +403 -0
- package/dist/rail/rail.js +355 -0
- package/dist/reel/index.d.ts +6 -0
- package/dist/reel/index.js +26 -0
- package/dist/reel/layout.d.ts +58 -0
- package/dist/reel/layout.js +378 -0
- package/dist/reel/reel.d.ts +1070 -0
- package/dist/reel/reel.js +1019 -0
- package/dist/remote/index.d.ts +5 -0
- package/dist/remote/index.js +6 -0
- package/dist/remote/remote.d.ts +28 -0
- package/dist/remote/remote.js +41 -0
- package/dist/rows/index.d.ts +5 -0
- package/dist/rows/index.js +12 -0
- package/dist/rows/rows.d.ts +116 -0
- package/dist/rows/rows.js +67 -0
- package/dist/scheme/index.d.ts +6 -0
- package/dist/scheme/index.js +10 -0
- package/dist/scheme/scheme-switch.d.ts +98 -0
- package/dist/scheme/scheme-switch.js +118 -0
- package/dist/scheme/scheme.d.ts +5 -0
- package/dist/scheme/scheme.js +16 -0
- package/dist/scheme/script.d.ts +8 -0
- package/dist/scheme/script.js +10 -0
- package/dist/secret/index.d.ts +5 -0
- package/dist/secret/index.js +6 -0
- package/dist/secret/secret.d.ts +13 -0
- package/dist/secret/secret.js +9 -0
- package/dist/segmented/index.d.ts +5 -0
- package/dist/segmented/index.js +6 -0
- package/dist/segmented/segmented.d.ts +17 -0
- package/dist/segmented/segmented.js +17 -0
- package/dist/select-field/index.d.ts +5 -0
- package/dist/select-field/index.js +6 -0
- package/dist/select-field/select-field.d.ts +38 -0
- package/dist/select-field/select-field.js +29 -0
- package/dist/sheet/index.d.ts +5 -0
- package/dist/sheet/index.js +6 -0
- package/dist/sheet/sheet.d.ts +16 -0
- package/dist/sheet/sheet.js +15 -0
- package/dist/skip-link/index.d.ts +5 -0
- package/dist/skip-link/index.js +9 -0
- package/dist/skip-link/skip-link.d.ts +23 -0
- package/dist/skip-link/skip-link.js +36 -0
- package/dist/slot/slot.js +8 -0
- package/dist/sortable/index.d.ts +5 -0
- package/dist/sortable/index.js +16 -0
- package/dist/sortable/sortable.d.ts +1125 -0
- package/dist/sortable/sortable.js +431 -0
- package/dist/stack/index.d.ts +5 -0
- package/dist/stack/index.js +6 -0
- package/dist/stack/stack.d.ts +15 -0
- package/dist/stack/stack.js +12 -0
- package/dist/stage/index.d.ts +5 -0
- package/dist/stage/index.js +6 -0
- package/dist/stage/stage.d.ts +14 -0
- package/dist/stage/stage.js +11 -0
- package/dist/stat/index.d.ts +5 -0
- package/dist/stat/index.js +6 -0
- package/dist/stat/stat.d.ts +18 -0
- package/dist/stat/stat.js +13 -0
- package/dist/status-bar/index.d.ts +6 -0
- package/dist/status-bar/index.js +11 -0
- package/dist/status-bar/status-bar.d.ts +28 -0
- package/dist/status-bar/status-bar.js +19 -0
- package/dist/subscription/prefix-keys.js +12 -0
- package/dist/table/index.d.ts +5 -0
- package/dist/table/index.js +6 -0
- package/dist/table/table.d.ts +26 -0
- package/dist/table/table.js +18 -0
- package/dist/tabs/index.d.ts +5 -0
- package/dist/tabs/index.js +14 -0
- package/dist/tabs/tabs.d.ts +125 -0
- package/dist/tabs/tabs.js +57 -0
- package/dist/tag/index.d.ts +5 -0
- package/dist/tag/index.js +6 -0
- package/dist/tag/tag.d.ts +16 -0
- package/dist/tag/tag.js +25 -0
- package/dist/text-button/index.d.ts +5 -0
- package/dist/text-button/index.js +6 -0
- package/dist/text-button/text-button.d.ts +8 -0
- package/dist/text-button/text-button.js +12 -0
- package/dist/textarea-field/index.d.ts +5 -0
- package/dist/textarea-field/index.js +6 -0
- package/dist/textarea-field/textarea-field.d.ts +28 -0
- package/dist/textarea-field/textarea-field.js +30 -0
- package/dist/time/index.d.ts +5 -0
- package/dist/time/index.js +9 -0
- package/dist/time/time.d.ts +38 -0
- package/dist/time/time.js +63 -0
- package/dist/tips/index.d.ts +5 -0
- package/dist/tips/index.js +14 -0
- package/dist/tips/tips.d.ts +339 -0
- package/dist/tips/tips.js +308 -0
- package/dist/toast/index.d.ts +5 -0
- package/dist/toast/index.js +17 -0
- package/dist/toast/stack.d.ts +7 -0
- package/dist/toast/stack.js +23 -0
- package/dist/toast/toast.d.ts +559 -0
- package/dist/toast/toast.js +269 -0
- package/dist/toc/index.d.ts +5 -0
- package/dist/toc/index.js +9 -0
- package/dist/toc/toc.d.ts +42 -0
- package/dist/toc/toc.js +35 -0
- package/dist/top-bar/bar-height.d.ts +26 -0
- package/dist/top-bar/bar-height.js +43 -0
- package/dist/top-bar/index.d.ts +6 -0
- package/dist/top-bar/index.js +12 -0
- package/dist/top-bar/top-bar.d.ts +19 -0
- package/dist/top-bar/top-bar.js +18 -0
- package/dist/wall/index.d.ts +5 -0
- package/dist/wall/index.js +9 -0
- package/dist/wall/wall.d.ts +16 -0
- package/dist/wall/wall.js +15 -0
- package/dist/window/index.d.ts +5 -0
- package/dist/window/index.js +6 -0
- package/dist/window/window.d.ts +28 -0
- package/dist/window/window.js +29 -0
- package/dist/wordmark/index.d.ts +5 -0
- package/dist/wordmark/index.js +6 -0
- package/dist/wordmark/wordmark.d.ts +10 -0
- package/dist/wordmark/wordmark.js +10 -0
- package/dist/wrap/index.d.ts +5 -0
- package/dist/wrap/index.js +6 -0
- package/dist/wrap/wrap.d.ts +12 -0
- package/dist/wrap/wrap.js +9 -0
- package/fonts/DepartureMono-Regular.woff2 +0 -0
- package/fonts/LICENSE.txt +2 -0
- package/package.json +57 -3
- package/src/pixel-paper.css +4611 -0
- package/src/tokens.css +151 -0
package/src/tokens.css
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/* pixel paper tokens: every colour, type, space, shadow and motion value the system uses.
|
|
2
|
+
Paper (light) and plum (dark) are two palettes of this one set. With no data-scheme the
|
|
3
|
+
page follows the OS; data-scheme="light" (paper) or "dark" (plum) on <html> pins one.
|
|
4
|
+
The rules behind each value live in DESIGN.md. */
|
|
5
|
+
|
|
6
|
+
@font-face {
|
|
7
|
+
font-family: "Departure Mono";
|
|
8
|
+
src: url("../fonts/DepartureMono-Regular.woff2") format("woff2");
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-display: swap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:root {
|
|
15
|
+
color-scheme: light dark;
|
|
16
|
+
|
|
17
|
+
--ink: light-dark(#16150f, #efecf3);
|
|
18
|
+
--paper: light-dark(#fdfdfa, #3b3640);
|
|
19
|
+
--ground: light-dark(#dcdcd4, #2d2931);
|
|
20
|
+
--rule: light-dark(#d8d8d0, #534c5a);
|
|
21
|
+
--head: light-dark(#efefe8, #453f4b);
|
|
22
|
+
--muted: light-dark(#5d5c52, #aea7b8);
|
|
23
|
+
|
|
24
|
+
--amber: #f5a623;
|
|
25
|
+
--green: #2fbf71;
|
|
26
|
+
--red: light-dark(#b3251e, #ff8074);
|
|
27
|
+
|
|
28
|
+
--on-status: #16150f;
|
|
29
|
+
--on-red: light-dark(#fdfdfa, #16150f);
|
|
30
|
+
/* muted misses AA on plum's head tint; text on a head fill uses this */
|
|
31
|
+
--on-head: light-dark(#5d5c52, #b6afc1);
|
|
32
|
+
|
|
33
|
+
/* Sixteen printer's inks for what a program prints: terminal colours, syntax. Never on
|
|
34
|
+
chrome. Each reads at AA on the head tint, the ground code sits on, except black on
|
|
35
|
+
plum, which is the ground's own tone. On paper the whites print as greys and ink,
|
|
36
|
+
because a white on paper cannot be read. */
|
|
37
|
+
--term-black: #16150f;
|
|
38
|
+
--term-red: light-dark(#a3271f, #ff9589);
|
|
39
|
+
--term-green: light-dark(#2b6a2e, #8fd49a);
|
|
40
|
+
--term-yellow: light-dark(#735600, #e6c86e);
|
|
41
|
+
--term-blue: light-dark(#274b8c, #a9c1fb);
|
|
42
|
+
--term-magenta: light-dark(#7a2a5c, #f2a7d4);
|
|
43
|
+
--term-cyan: light-dark(#23605c, #8fd3cb);
|
|
44
|
+
--code-keyword: var(--term-magenta);
|
|
45
|
+
--code-string: var(--term-cyan);
|
|
46
|
+
--code-number: var(--term-yellow);
|
|
47
|
+
--code-function: var(--term-blue);
|
|
48
|
+
--code-type: var(--term-green);
|
|
49
|
+
--code-comment: var(--on-head);
|
|
50
|
+
|
|
51
|
+
--shadow-color: light-dark(rgba(22, 21, 15, 0.85), rgba(0, 0, 0, 0.8));
|
|
52
|
+
--shadow-danger-color: light-dark(rgba(179, 37, 30, 0.6), rgba(0, 0, 0, 0.8));
|
|
53
|
+
--veil: rgba(22, 21, 15, 0.4);
|
|
54
|
+
/* The grain and the dither are drawn with gradients, not images, so a host's
|
|
55
|
+
Content-Security-Policy needs no img-src for them. Each is a 4px tile with 1px dots at
|
|
56
|
+
(0, 0) and (2, 2), one conic layer per dot, and a background shorthand rather than an
|
|
57
|
+
image: write background: var(--dither) for the ground (it paints its own base) and
|
|
58
|
+
background: var(--veil-grain), var(--veil) for a veil. */
|
|
59
|
+
--veil-grain:
|
|
60
|
+
conic-gradient(at 1px 1px, #0000 75%, rgb(22 21 15 / 0.5) 0) 0 0 / 4px 4px,
|
|
61
|
+
conic-gradient(at 1px 1px, #0000 75%, rgb(22 21 15 / 0.5) 0) 2px 2px / 4px
|
|
62
|
+
4px;
|
|
63
|
+
--dither-base: light-dark(#e0e0d8, #2f2b33);
|
|
64
|
+
--dither-dot: light-dark(#bcbcb2, #423d4a);
|
|
65
|
+
--dither:
|
|
66
|
+
conic-gradient(at 1px 1px, #0000 75%, var(--dither-dot) 0) 0 0 / 4px 4px,
|
|
67
|
+
conic-gradient(at 1px 1px, #0000 75%, var(--dither-dot) 0) 2px 2px / 4px 4px,
|
|
68
|
+
var(--dither-base);
|
|
69
|
+
|
|
70
|
+
--fade-on-ink: 0.75; /* what prints muted on paper, printed in paper on an inverted fill */
|
|
71
|
+
--fade-held: 0.6; /* a held control on an ink title bar */
|
|
72
|
+
--fade-dragged: 0.4; /* a held item, dimmed in place while its copy follows the pointer */
|
|
73
|
+
|
|
74
|
+
--font-px: "Departure Mono", ui-monospace, Menlo, Monaco, monospace;
|
|
75
|
+
--font-body: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
76
|
+
--font-code: ui-monospace, Menlo, Monaco, monospace;
|
|
77
|
+
|
|
78
|
+
--type-label: 10px; /* labels, field labels, table heads, meta */
|
|
79
|
+
--type-state: 11px; /* chips, tabs, ages, counts, state words */
|
|
80
|
+
--type-control: 12px; /* buttons, nav, menus, code, notices */
|
|
81
|
+
--type-body: 13px; /* body text, title bars */
|
|
82
|
+
--type-name: 14px; /* a group's or a meter's name */
|
|
83
|
+
--type-title: 16px; /* an editable title in a card */
|
|
84
|
+
--type-page: 22px; /* a working screen's name (PageHead) */
|
|
85
|
+
--type-page-narrow: 18px; /* the same name on a phone */
|
|
86
|
+
--type-wordmark: 18px;
|
|
87
|
+
--type-wordmark-wall: 22px;
|
|
88
|
+
--tracking-caps: 0.04em; /* uppercase pixel controls */
|
|
89
|
+
--tracking-state: 0.05em; /* chips, tabs, tips: words that report state */
|
|
90
|
+
--tracking-head: 0.06em; /* a card's title bar, a notice's or outcome's headline */
|
|
91
|
+
--tracking-title: 0.08em; /* a panel's title bar, an empty state's headline, the flash word */
|
|
92
|
+
--tracking-label: 0.1em; /* uppercase pixel labels */
|
|
93
|
+
|
|
94
|
+
--read-body: 15px;
|
|
95
|
+
--read-h3: 15px;
|
|
96
|
+
--read-h2: 20px;
|
|
97
|
+
--read-title: 30px;
|
|
98
|
+
--read-weight: 650;
|
|
99
|
+
--read-measure: 68ch;
|
|
100
|
+
|
|
101
|
+
--line: 2px; /* anything that contains: ink */
|
|
102
|
+
--hair: 1px; /* anything that divides: rule */
|
|
103
|
+
|
|
104
|
+
--row: 34px; /* the height of a row */
|
|
105
|
+
--pad: 16px; /* inside a panel or card */
|
|
106
|
+
--gap: 24px; /* between panels */
|
|
107
|
+
--deck: 1160px; /* the widest a deck of panels runs */
|
|
108
|
+
--rail: 272px; /* the column of panels beside a deck, until the reader sizes it */
|
|
109
|
+
--rail-drawer: 320px; /* the rail as a drawer, whatever width the reader gave it */
|
|
110
|
+
--rail-folded: 64px; /* the rail folded to its first panel's bar, stood on end */
|
|
111
|
+
|
|
112
|
+
--space-s: 8px; /* things in one line: buttons, chips, a glyph and its word */
|
|
113
|
+
--space-m: 14px; /* the parts of one body: a panel's, a card's, a window's */
|
|
114
|
+
--space-l: var(
|
|
115
|
+
--gap
|
|
116
|
+
); /* whole surfaces: panels, a card and what stands beside it */
|
|
117
|
+
|
|
118
|
+
--type-figure: 30px; /* a stat's value */
|
|
119
|
+
--type-figure-narrow: 22px; /* the same value at 900px and under, a step down the ramp */
|
|
120
|
+
|
|
121
|
+
--shadow-card: 8px 8px 0 var(--shadow-color);
|
|
122
|
+
--shadow-panel: 5px 5px 0 var(--shadow-color);
|
|
123
|
+
--shadow-button: 3px 3px 0 var(--shadow-color);
|
|
124
|
+
--shadow-button-small: 2px 2px 0 var(--shadow-color);
|
|
125
|
+
--shadow-pressed: 1px 1px 0 var(--shadow-color);
|
|
126
|
+
--shadow-danger: 3px 3px 0 var(--shadow-danger-color);
|
|
127
|
+
|
|
128
|
+
--reel-gutter: 16px; /* between columns, and between the panes of a column */
|
|
129
|
+
--reel-column-min: 280px; /* the narrowest a column prints, whatever its width */
|
|
130
|
+
--reel-pane-min: 120px; /* the shortest a pane prints */
|
|
131
|
+
|
|
132
|
+
--bench-work-min: 152px; /* the least of its height the work keeps: a 120px pane, 16px gutters */
|
|
133
|
+
--bench-head-min: 64px; /* the least of its head a short window keeps: its padding and a small button */
|
|
134
|
+
|
|
135
|
+
--chart-plot: 160px; /* a line chart's plot, between its top line and its axis */
|
|
136
|
+
|
|
137
|
+
--motion-flash: 0.7s;
|
|
138
|
+
--motion-blink: 1.2s;
|
|
139
|
+
--motion-card: 0.14s;
|
|
140
|
+
--motion-veil: 0.12s;
|
|
141
|
+
|
|
142
|
+
--toast-hold: 5s; /* how long a toast that is not an error stays while nothing holds it */
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:root[data-scheme="light"] {
|
|
146
|
+
color-scheme: light;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:root[data-scheme="dark"] {
|
|
150
|
+
color-scheme: dark;
|
|
151
|
+
}
|