@brignano/design 0.13.0 → 0.14.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/DESIGN.md +152 -23
- package/README.md +50 -3
- package/components.css +249 -249
- package/controls.css +238 -238
- package/decisions/0001-cobalt.md +1 -1
- package/decisions/0008-cobalt-hue-256.md +1 -1
- package/decisions/0014-identity.md +1 -1
- package/decisions/0015-white-label-on-cobalt.md +1 -1
- package/decisions/0017-product-identity.md +1 -1
- package/decisions/0019-house-theme-shell.md +51 -0
- package/decisions/0020-kits-opt-in.md +56 -0
- package/decisions/README.md +2 -0
- package/kits/larch.css +125 -0
- package/kits/ledger.css +121 -0
- package/kits/split.css +123 -0
- package/package.json +9 -1
- package/product-page.css +82 -82
- package/scripts/colour.mjs +42 -0
- package/scripts/theme.mjs +190 -0
- package/tailwind.css +13 -20
- package/templates/app-shell.css +15 -15
- package/templates/article.css +26 -26
- package/templates/changelog.css +9 -9
- package/templates/email.html +3 -3
- package/templates/error.css +7 -7
- package/templates/legal.css +11 -11
- package/templates/settings.css +9 -9
- package/themes/driftwood.css +109 -0
- package/themes/driftwood.theme +5 -0
- package/themes/guidebook.css +104 -0
- package/themes/guidebook.theme +5 -0
- package/themes/homelab.css +101 -0
- package/themes/homelab.theme +2 -0
- package/themes/receipts.css +101 -0
- package/themes/receipts.theme +2 -0
- package/themes/sites.css +106 -0
- package/themes/sites.theme +7 -0
- package/tokens/base.css +37 -0
- package/tokens/chart.json +145 -0
- package/tokens/color.json +840 -0
- package/tokens/component.json +75 -0
- package/tokens/head.css +84 -0
- package/tokens/kits/larch.json +255 -0
- package/tokens/kits/ledger.json +247 -0
- package/tokens/kits/split.json +247 -0
- package/tokens/motion.json +38 -0
- package/tokens/names.d.ts +246 -0
- package/tokens/shape.json +56 -0
- package/tokens/space.json +99 -0
- package/tokens/tailwind.json +343 -0
- package/tokens/type.json +206 -0
- package/tokens.chart.css +23 -23
- package/tokens.css +278 -136
package/templates/legal.css
CHANGED
|
@@ -26,32 +26,32 @@
|
|
|
26
26
|
max-width: calc(var(--measure) + 16rem);
|
|
27
27
|
margin-inline: auto;
|
|
28
28
|
}
|
|
29
|
-
.legal-header { margin-bottom: var(--
|
|
29
|
+
.legal-header { margin-bottom: var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
|
|
30
30
|
.legal-header > h1 { margin: 0; font-size: var(--text-3xl); font-weight: var(--weight-semibold); letter-spacing: -0.02em; line-height: var(--leading-display); text-wrap: balance; }
|
|
31
|
-
.legal-updated { margin: var(--
|
|
31
|
+
.legal-updated { margin: var(--space-2) 0 0; font-family: var(--mono); font-size: var(--text-sm); color: var(--slate); }
|
|
32
32
|
|
|
33
|
-
.legal-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--
|
|
34
|
-
.legal-body > .prose :is(h2, h3) { scroll-margin-top: var(--
|
|
33
|
+
.legal-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
|
|
34
|
+
.legal-body > .prose :is(h2, h3) { scroll-margin-top: var(--space-5); }
|
|
35
35
|
|
|
36
36
|
.legal-toc {
|
|
37
|
-
padding: var(--
|
|
37
|
+
padding: var(--space-4) var(--space-5);
|
|
38
38
|
background: var(--card);
|
|
39
39
|
border: 1px solid var(--line);
|
|
40
|
-
border-radius: var(--radius);
|
|
40
|
+
border-radius: var(--radius-card);
|
|
41
41
|
}
|
|
42
|
-
.legal-toc-title { margin: 0 0 var(--
|
|
43
|
-
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--
|
|
42
|
+
.legal-toc-title { margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--ink); }
|
|
43
|
+
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-1); }
|
|
44
44
|
.legal-toc a { color: var(--ink-soft); font-size: var(--text-sm); text-decoration: none; border-radius: var(--radius-sm); }
|
|
45
45
|
.legal-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
|
|
46
46
|
.legal-toc a[aria-current] { color: var(--ink); font-weight: var(--weight-semibold); }
|
|
47
|
-
.legal-toc a:focus-visible { outline: 2px solid var(--
|
|
47
|
+
.legal-toc a:focus-visible { outline: 2px solid var(--action-ink); outline-offset: 2px; }
|
|
48
48
|
|
|
49
49
|
@container legal (min-width: 52rem) {
|
|
50
|
-
.legal-body { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--
|
|
50
|
+
.legal-body { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--space-7); }
|
|
51
51
|
.legal-toc {
|
|
52
52
|
align-self: start;
|
|
53
53
|
position: sticky;
|
|
54
|
-
top: var(--
|
|
54
|
+
top: var(--space-5);
|
|
55
55
|
padding: 0;
|
|
56
56
|
background: none;
|
|
57
57
|
border: 0;
|
package/templates/settings.css
CHANGED
|
@@ -47,34 +47,34 @@
|
|
|
47
47
|
max-width: 64rem;
|
|
48
48
|
margin-inline: auto;
|
|
49
49
|
}
|
|
50
|
-
.settings-title { margin: 0 0 var(--
|
|
50
|
+
.settings-title { margin: 0 0 var(--space-6); font-size: var(--text-3xl); font-weight: var(--weight-semibold); letter-spacing: -0.02em; line-height: var(--leading-display); text-wrap: balance; }
|
|
51
51
|
|
|
52
52
|
.settings-section {
|
|
53
53
|
display: grid;
|
|
54
54
|
grid-template-columns: minmax(0, 1fr);
|
|
55
|
-
gap: var(--
|
|
55
|
+
gap: var(--space-4) var(--space-7);
|
|
56
56
|
margin: 0;
|
|
57
|
-
padding: var(--
|
|
57
|
+
padding: var(--space-6) 0;
|
|
58
58
|
border-top: 1px solid var(--line);
|
|
59
59
|
}
|
|
60
60
|
.settings-intro { min-width: 0; overflow-wrap: anywhere; }
|
|
61
61
|
.settings-intro > h2 { margin: 0; text-wrap: balance; font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-title); }
|
|
62
|
-
.settings-intro > p { margin: var(--
|
|
63
|
-
.settings-fields { display: grid; gap: var(--
|
|
62
|
+
.settings-intro > p { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--ink-soft); max-width: 40ch; }
|
|
63
|
+
.settings-fields { display: grid; gap: var(--space-5); min-width: 0; max-width: 32rem; }
|
|
64
64
|
|
|
65
65
|
.settings-save {
|
|
66
66
|
display: flex;
|
|
67
67
|
flex-wrap: wrap;
|
|
68
68
|
align-items: center;
|
|
69
69
|
justify-content: flex-end;
|
|
70
|
-
gap: var(--
|
|
70
|
+
gap: var(--space-3);
|
|
71
71
|
max-width: 32rem;
|
|
72
|
-
padding: var(--
|
|
72
|
+
padding: var(--space-3) 0 0;
|
|
73
73
|
border-top: 1px solid var(--line);
|
|
74
74
|
}
|
|
75
75
|
.settings-save:has(> .settings-save-actions[hidden]) { padding-top: 0; border-top: 0; }
|
|
76
76
|
.settings-save-note { margin: 0 auto 0 0; font-size: var(--text-sm); color: var(--ink-soft); }
|
|
77
|
-
.settings-save-actions { display: flex; flex-wrap: wrap; gap: var(--
|
|
77
|
+
.settings-save-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
|
|
78
78
|
.settings-save-actions[hidden] { display: none; }
|
|
79
79
|
|
|
80
80
|
.settings-danger .settings-intro > h2 { color: var(--danger-ink); }
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
flex-wrap: wrap;
|
|
84
84
|
align-items: center;
|
|
85
85
|
justify-content: space-between;
|
|
86
|
-
gap: var(--
|
|
86
|
+
gap: var(--space-3) var(--space-5);
|
|
87
87
|
}
|
|
88
88
|
.settings-danger-row > p { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); max-width: 40ch; }
|
|
89
89
|
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* GENERATED by scripts/build.mjs from themes/driftwood.theme and tokens/kits/split.json. Edit that, then `npm run build`. */
|
|
2
|
+
|
|
3
|
+
/* driftwood.theme
|
|
4
|
+
|
|
5
|
+
kit: split
|
|
6
|
+
scheme: dark
|
|
7
|
+
hue: 195 # teal
|
|
8
|
+
typeface: mono
|
|
9
|
+
shell: canvas */
|
|
10
|
+
[data-product='driftwood'] {
|
|
11
|
+
/* This product is always dark. */
|
|
12
|
+
color-scheme: dark;
|
|
13
|
+
|
|
14
|
+
/* From the split kit. */
|
|
15
|
+
--bg: light-dark(#fafafa, #0b0c0e);
|
|
16
|
+
--card: light-dark(#ffffff, #141517);
|
|
17
|
+
--surface-hover: light-dark(#f0f0f0, #1d1e20);
|
|
18
|
+
--surface-active: light-dark(#e4e4e4, #26282a);
|
|
19
|
+
--surface-sticky: light-dark(color-mix(in srgb, #ffffff 92%, transparent), color-mix(in srgb, #0b0c0e 92%, transparent));
|
|
20
|
+
--on-dark: light-dark(#fafafa, #0b0c0e);
|
|
21
|
+
--ink: light-dark(#0f0f11, #f2f2f2);
|
|
22
|
+
--ink-soft: light-dark(#414245, #c4c4c4);
|
|
23
|
+
--slate: light-dark(#626366, #9e9e9e);
|
|
24
|
+
--line: light-dark(#d7d7d7, #2d2e30);
|
|
25
|
+
--line-soft: light-dark(#e8e8e8, #1e1f22);
|
|
26
|
+
--card-line: var(--line);
|
|
27
|
+
--card-shadow: var(--shadow-1);
|
|
28
|
+
--line-strong: light-dark(#0f0f11, #f2f2f2);
|
|
29
|
+
--line-control: light-dark(#0f0f11, #f2f2f2);
|
|
30
|
+
--action-ink: light-dark(#0f0f11, #f2f2f2);
|
|
31
|
+
--action-ink-hover: light-dark(#414245, #c4c4c4);
|
|
32
|
+
--disabled: light-dark(#e4e4e4, #26282a);
|
|
33
|
+
--disabled-ink: light-dark(#868686, #636363);
|
|
34
|
+
--mono: 'Martian Mono', ui-monospace, monospace;
|
|
35
|
+
--weight-heavy: 800;
|
|
36
|
+
--leading-display: 0.95;
|
|
37
|
+
--tracking-display: -0.035em;
|
|
38
|
+
--display-case: uppercase;
|
|
39
|
+
--radius-sm: 0px;
|
|
40
|
+
--radius-control: 0px;
|
|
41
|
+
--radius-card: 0px;
|
|
42
|
+
--radius-lg: 0px;
|
|
43
|
+
--shadow-1: none;
|
|
44
|
+
--shadow-2: none;
|
|
45
|
+
--shadow-3: none;
|
|
46
|
+
|
|
47
|
+
/* From the theme. */
|
|
48
|
+
--action: light-dark(#55e3e3, #55e3e3);
|
|
49
|
+
--action-hover: light-dark(#46cece, #46cece);
|
|
50
|
+
--action-pressed: light-dark(#36baba, #36baba);
|
|
51
|
+
--on-action: light-dark(#0f0f11, #0f0f11);
|
|
52
|
+
--action-edge: light-dark(#0f0f11, #55e3e3);
|
|
53
|
+
--accent: light-dark(#55e3e3, #55e3e3);
|
|
54
|
+
--on-accent: light-dark(#0f0f11, #0f0f11);
|
|
55
|
+
--action-surface: light-dark(color-mix(in srgb, #55e3e3 12%, transparent), color-mix(in srgb, #55e3e3 20%, transparent));
|
|
56
|
+
--action-line: light-dark(color-mix(in srgb, #55e3e3 32%, transparent), color-mix(in srgb, #55e3e3 44%, transparent));
|
|
57
|
+
--action-selection: light-dark(color-mix(in srgb, #55e3e3 26%, transparent), color-mix(in srgb, #55e3e3 30%, transparent));
|
|
58
|
+
--sans: 'Martian Mono', ui-monospace, monospace;
|
|
59
|
+
--display: 'Martian Mono', ui-monospace, monospace;
|
|
60
|
+
--display-stretch: normal;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Aliases from :root that lead to a token this theme sets, declared again so
|
|
64
|
+
they resolve against the theme's values on whatever element carries it. */
|
|
65
|
+
[data-product='driftwood'] {
|
|
66
|
+
--i: var(--action);
|
|
67
|
+
--i-ink: var(--action-ink);
|
|
68
|
+
--i-hover: var(--action-hover);
|
|
69
|
+
--i-ink-hover: var(--action-ink-hover);
|
|
70
|
+
--i-pressed: var(--action-pressed);
|
|
71
|
+
--i-surface: var(--action-surface);
|
|
72
|
+
--i-line: var(--action-line);
|
|
73
|
+
--i-selection: var(--action-selection);
|
|
74
|
+
--on-i: var(--on-action);
|
|
75
|
+
--i-disabled-bg: var(--disabled);
|
|
76
|
+
--i-disabled-ink: var(--disabled-ink);
|
|
77
|
+
--info: var(--action);
|
|
78
|
+
--info-ink: var(--action-ink);
|
|
79
|
+
--info-surface: var(--action-surface);
|
|
80
|
+
--info-line: var(--action-line);
|
|
81
|
+
--diff-changed: var(--action);
|
|
82
|
+
--diff-changed-ink: var(--action-ink);
|
|
83
|
+
--diff-changed-surface: var(--action-surface);
|
|
84
|
+
--code-surface: var(--bg);
|
|
85
|
+
--code-ink: var(--ink);
|
|
86
|
+
--code-keyword: var(--action-ink);
|
|
87
|
+
--code-string: var(--ink-soft);
|
|
88
|
+
--code-comment: var(--slate);
|
|
89
|
+
--code-highlight: var(--action-surface);
|
|
90
|
+
--gold: var(--slate);
|
|
91
|
+
--leading-3xl: var(--leading-display);
|
|
92
|
+
--tracking-3xl: var(--tracking-display);
|
|
93
|
+
--leading-4xl: var(--leading-display);
|
|
94
|
+
--tracking-4xl: var(--tracking-display);
|
|
95
|
+
--radius: var(--radius-card);
|
|
96
|
+
--shadow: var(--shadow-1);
|
|
97
|
+
--button-radius: var(--radius-control);
|
|
98
|
+
--field-radius: var(--radius-control);
|
|
99
|
+
--field-line: var(--line-control);
|
|
100
|
+
--card-radius: var(--radius-card);
|
|
101
|
+
--pill-radius: var(--radius-sm);
|
|
102
|
+
--dialog-radius: var(--radius-lg);
|
|
103
|
+
--focus-ring: var(--action-ink);
|
|
104
|
+
--chart-surface: var(--card);
|
|
105
|
+
--chart-other: var(--slate);
|
|
106
|
+
--chart-grid: var(--line);
|
|
107
|
+
--chart-axis: var(--slate);
|
|
108
|
+
--seq-0: var(--line);
|
|
109
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* GENERATED by scripts/build.mjs from themes/guidebook.theme and tokens/kits/larch.json. Edit that, then `npm run build`. */
|
|
2
|
+
|
|
3
|
+
/* guidebook.theme
|
|
4
|
+
|
|
5
|
+
kit: larch
|
|
6
|
+
ground: bright
|
|
7
|
+
hue: 290 # violet
|
|
8
|
+
heading-weight: 800
|
|
9
|
+
shell: player */
|
|
10
|
+
[data-product='guidebook'] {
|
|
11
|
+
/* From the larch kit. */
|
|
12
|
+
--card-line: var(--line);
|
|
13
|
+
--card-shadow: var(--shadow-1);
|
|
14
|
+
--accent: light-dark(#f1c45e, #e3ad4b);
|
|
15
|
+
--on-accent: light-dark(#12241a, #12241a);
|
|
16
|
+
--sans: 'Onest', system-ui, sans-serif;
|
|
17
|
+
--display: 'Bricolage Grotesque', system-ui, sans-serif;
|
|
18
|
+
--mono: 'IBM Plex Mono', ui-monospace, monospace;
|
|
19
|
+
--leading-display: 1.05;
|
|
20
|
+
--tracking-display: -0.035em;
|
|
21
|
+
--display-case: none;
|
|
22
|
+
--display-stretch: normal;
|
|
23
|
+
--radius-sm: 8px;
|
|
24
|
+
--radius-control: 12px;
|
|
25
|
+
--radius-card: 20px;
|
|
26
|
+
--radius-lg: 28px;
|
|
27
|
+
--button-radius: 999px;
|
|
28
|
+
--pill-radius: 999px;
|
|
29
|
+
--shadow-1: none;
|
|
30
|
+
|
|
31
|
+
/* From the theme. */
|
|
32
|
+
--bg: light-dark(#f6f6fc, #0f0e18);
|
|
33
|
+
--card: light-dark(#fdfdff, #1b1a27);
|
|
34
|
+
--surface-hover: light-dark(#f1f1fa, #252333);
|
|
35
|
+
--surface-active: light-dark(#e9e8f4, #2d2b3d);
|
|
36
|
+
--ink: light-dark(#181625, #f1f1fa);
|
|
37
|
+
--ink-soft: light-dark(#424053, #cac9d7);
|
|
38
|
+
--slate: light-dark(#57556a, #aaa8ba);
|
|
39
|
+
--line: light-dark(#dddceb, #323041);
|
|
40
|
+
--line-soft: light-dark(#e7e6f3, #262433);
|
|
41
|
+
--line-strong: light-dark(#bdbbcd, #4c4a5f);
|
|
42
|
+
--line-control: light-dark(#74708e, #8885a3);
|
|
43
|
+
--disabled-ink: light-dark(#858495, #686777);
|
|
44
|
+
--surface-sticky: light-dark(color-mix(in srgb, #fdfdff 92%, transparent), color-mix(in srgb, #0f0e18 92%, transparent));
|
|
45
|
+
--on-dark: light-dark(#f6f6fc, #0f0e18);
|
|
46
|
+
--disabled: light-dark(#e9e8f4, #2d2b3d);
|
|
47
|
+
--chart-surface: light-dark(#fdfdff, #1b1a27);
|
|
48
|
+
--action: light-dark(#6741ca, #bcb2ff);
|
|
49
|
+
--action-hover: light-dark(#5730b1, #aa9df1);
|
|
50
|
+
--action-pressed: light-dark(#462494, #978bda);
|
|
51
|
+
--action-ink-hover: light-dark(#4c279f, #d9d5ff);
|
|
52
|
+
--on-action: light-dark(#fcfbfe, #0f0e18);
|
|
53
|
+
--action-edge: light-dark(#6741ca, #bcb2ff);
|
|
54
|
+
--action-ink: light-dark(#6741ca, #bcb2ff);
|
|
55
|
+
--action-surface: light-dark(color-mix(in srgb, #6741ca 12%, transparent), color-mix(in srgb, #bcb2ff 20%, transparent));
|
|
56
|
+
--action-line: light-dark(color-mix(in srgb, #6741ca 32%, transparent), color-mix(in srgb, #bcb2ff 44%, transparent));
|
|
57
|
+
--action-selection: light-dark(color-mix(in srgb, #6741ca 26%, transparent), color-mix(in srgb, #bcb2ff 30%, transparent));
|
|
58
|
+
--weight-heavy: 800;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Aliases from :root that lead to a token this theme sets, declared again so
|
|
62
|
+
they resolve against the theme's values on whatever element carries it. */
|
|
63
|
+
[data-product='guidebook'] {
|
|
64
|
+
--i: var(--action);
|
|
65
|
+
--i-ink: var(--action-ink);
|
|
66
|
+
--i-hover: var(--action-hover);
|
|
67
|
+
--i-ink-hover: var(--action-ink-hover);
|
|
68
|
+
--i-pressed: var(--action-pressed);
|
|
69
|
+
--i-surface: var(--action-surface);
|
|
70
|
+
--i-line: var(--action-line);
|
|
71
|
+
--i-selection: var(--action-selection);
|
|
72
|
+
--on-i: var(--on-action);
|
|
73
|
+
--i-disabled-bg: var(--disabled);
|
|
74
|
+
--i-disabled-ink: var(--disabled-ink);
|
|
75
|
+
--info: var(--action);
|
|
76
|
+
--info-ink: var(--action-ink);
|
|
77
|
+
--info-surface: var(--action-surface);
|
|
78
|
+
--info-line: var(--action-line);
|
|
79
|
+
--diff-changed: var(--action);
|
|
80
|
+
--diff-changed-ink: var(--action-ink);
|
|
81
|
+
--diff-changed-surface: var(--action-surface);
|
|
82
|
+
--code-surface: var(--bg);
|
|
83
|
+
--code-ink: var(--ink);
|
|
84
|
+
--code-keyword: var(--action-ink);
|
|
85
|
+
--code-string: var(--ink-soft);
|
|
86
|
+
--code-comment: var(--slate);
|
|
87
|
+
--code-highlight: var(--action-surface);
|
|
88
|
+
--gold: var(--slate);
|
|
89
|
+
--leading-3xl: var(--leading-display);
|
|
90
|
+
--tracking-3xl: var(--tracking-display);
|
|
91
|
+
--leading-4xl: var(--leading-display);
|
|
92
|
+
--tracking-4xl: var(--tracking-display);
|
|
93
|
+
--radius: var(--radius-card);
|
|
94
|
+
--shadow: var(--shadow-1);
|
|
95
|
+
--field-radius: var(--radius-control);
|
|
96
|
+
--field-line: var(--line-control);
|
|
97
|
+
--card-radius: var(--radius-card);
|
|
98
|
+
--dialog-radius: var(--radius-lg);
|
|
99
|
+
--focus-ring: var(--action-ink);
|
|
100
|
+
--chart-other: var(--slate);
|
|
101
|
+
--chart-grid: var(--line);
|
|
102
|
+
--chart-axis: var(--slate);
|
|
103
|
+
--seq-0: var(--line);
|
|
104
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* GENERATED by scripts/build.mjs from themes/homelab.theme and tokens/kits/split.json. Edit that, then `npm run build`. */
|
|
2
|
+
|
|
3
|
+
/* homelab.theme
|
|
4
|
+
|
|
5
|
+
kit: split # the house look, unchanged
|
|
6
|
+
shell: console */
|
|
7
|
+
[data-product='homelab'] {
|
|
8
|
+
/* From the split kit. */
|
|
9
|
+
--bg: light-dark(#fafafa, #0b0c0e);
|
|
10
|
+
--card: light-dark(#ffffff, #141517);
|
|
11
|
+
--surface-hover: light-dark(#f0f0f0, #1d1e20);
|
|
12
|
+
--surface-active: light-dark(#e4e4e4, #26282a);
|
|
13
|
+
--surface-sticky: light-dark(color-mix(in srgb, #ffffff 92%, transparent), color-mix(in srgb, #0b0c0e 92%, transparent));
|
|
14
|
+
--on-dark: light-dark(#fafafa, #0b0c0e);
|
|
15
|
+
--ink: light-dark(#0f0f11, #f2f2f2);
|
|
16
|
+
--ink-soft: light-dark(#414245, #c4c4c4);
|
|
17
|
+
--slate: light-dark(#626366, #9e9e9e);
|
|
18
|
+
--line: light-dark(#d7d7d7, #2d2e30);
|
|
19
|
+
--line-soft: light-dark(#e8e8e8, #1e1f22);
|
|
20
|
+
--card-line: var(--line);
|
|
21
|
+
--card-shadow: var(--shadow-1);
|
|
22
|
+
--line-strong: light-dark(#0f0f11, #f2f2f2);
|
|
23
|
+
--line-control: light-dark(#0f0f11, #f2f2f2);
|
|
24
|
+
--action: light-dark(#bff538, #bff538);
|
|
25
|
+
--action-hover: light-dark(#ade02a, #ade02a);
|
|
26
|
+
--action-pressed: light-dark(#9ccb1b, #9ccb1b);
|
|
27
|
+
--on-action: light-dark(#0f0f11, #0f0f11);
|
|
28
|
+
--action-edge: light-dark(#0f0f11, #bff538);
|
|
29
|
+
--action-ink: light-dark(#0f0f11, #f2f2f2);
|
|
30
|
+
--action-ink-hover: light-dark(#414245, #c4c4c4);
|
|
31
|
+
--action-surface: light-dark(color-mix(in srgb, #bff538 12%, transparent), color-mix(in srgb, #bff538 20%, transparent));
|
|
32
|
+
--action-line: light-dark(color-mix(in srgb, #bff538 32%, transparent), color-mix(in srgb, #bff538 44%, transparent));
|
|
33
|
+
--action-selection: light-dark(color-mix(in srgb, #bff538 26%, transparent), color-mix(in srgb, #bff538 30%, transparent));
|
|
34
|
+
--disabled: light-dark(#e4e4e4, #26282a);
|
|
35
|
+
--disabled-ink: light-dark(#868686, #636363);
|
|
36
|
+
--accent: light-dark(#bff538, #bff538);
|
|
37
|
+
--on-accent: light-dark(#0f0f11, #0f0f11);
|
|
38
|
+
--sans: 'Archivo', system-ui, sans-serif;
|
|
39
|
+
--display: 'Archivo', system-ui, sans-serif;
|
|
40
|
+
--mono: 'Martian Mono', ui-monospace, monospace;
|
|
41
|
+
--weight-heavy: 800;
|
|
42
|
+
--leading-display: 0.95;
|
|
43
|
+
--tracking-display: -0.035em;
|
|
44
|
+
--display-case: uppercase;
|
|
45
|
+
--display-stretch: 120%;
|
|
46
|
+
--radius-sm: 0px;
|
|
47
|
+
--radius-control: 0px;
|
|
48
|
+
--radius-card: 0px;
|
|
49
|
+
--radius-lg: 0px;
|
|
50
|
+
--shadow-1: none;
|
|
51
|
+
--shadow-2: none;
|
|
52
|
+
--shadow-3: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Aliases from :root that lead to a token this theme sets, declared again so
|
|
56
|
+
they resolve against the theme's values on whatever element carries it. */
|
|
57
|
+
[data-product='homelab'] {
|
|
58
|
+
--i: var(--action);
|
|
59
|
+
--i-ink: var(--action-ink);
|
|
60
|
+
--i-hover: var(--action-hover);
|
|
61
|
+
--i-ink-hover: var(--action-ink-hover);
|
|
62
|
+
--i-pressed: var(--action-pressed);
|
|
63
|
+
--i-surface: var(--action-surface);
|
|
64
|
+
--i-line: var(--action-line);
|
|
65
|
+
--i-selection: var(--action-selection);
|
|
66
|
+
--on-i: var(--on-action);
|
|
67
|
+
--i-disabled-bg: var(--disabled);
|
|
68
|
+
--i-disabled-ink: var(--disabled-ink);
|
|
69
|
+
--info: var(--action);
|
|
70
|
+
--info-ink: var(--action-ink);
|
|
71
|
+
--info-surface: var(--action-surface);
|
|
72
|
+
--info-line: var(--action-line);
|
|
73
|
+
--diff-changed: var(--action);
|
|
74
|
+
--diff-changed-ink: var(--action-ink);
|
|
75
|
+
--diff-changed-surface: var(--action-surface);
|
|
76
|
+
--code-surface: var(--bg);
|
|
77
|
+
--code-ink: var(--ink);
|
|
78
|
+
--code-keyword: var(--action-ink);
|
|
79
|
+
--code-string: var(--ink-soft);
|
|
80
|
+
--code-comment: var(--slate);
|
|
81
|
+
--code-highlight: var(--action-surface);
|
|
82
|
+
--gold: var(--slate);
|
|
83
|
+
--leading-3xl: var(--leading-display);
|
|
84
|
+
--tracking-3xl: var(--tracking-display);
|
|
85
|
+
--leading-4xl: var(--leading-display);
|
|
86
|
+
--tracking-4xl: var(--tracking-display);
|
|
87
|
+
--radius: var(--radius-card);
|
|
88
|
+
--shadow: var(--shadow-1);
|
|
89
|
+
--button-radius: var(--radius-control);
|
|
90
|
+
--field-radius: var(--radius-control);
|
|
91
|
+
--field-line: var(--line-control);
|
|
92
|
+
--card-radius: var(--radius-card);
|
|
93
|
+
--pill-radius: var(--radius-sm);
|
|
94
|
+
--dialog-radius: var(--radius-lg);
|
|
95
|
+
--focus-ring: var(--action-ink);
|
|
96
|
+
--chart-surface: var(--card);
|
|
97
|
+
--chart-other: var(--slate);
|
|
98
|
+
--chart-grid: var(--line);
|
|
99
|
+
--chart-axis: var(--slate);
|
|
100
|
+
--seq-0: var(--line);
|
|
101
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* GENERATED by scripts/build.mjs from themes/receipts.theme and tokens/kits/ledger.json. Edit that, then `npm run build`. */
|
|
2
|
+
|
|
3
|
+
/* receipts.theme
|
|
4
|
+
|
|
5
|
+
kit: ledger # unchanged
|
|
6
|
+
shell: document */
|
|
7
|
+
[data-product='receipts'] {
|
|
8
|
+
/* From the ledger kit. */
|
|
9
|
+
--bg: light-dark(#f8f5ef, #15120f);
|
|
10
|
+
--card: light-dark(#fefcf9, #1f1b17);
|
|
11
|
+
--surface-hover: light-dark(#f0ece4, #282521);
|
|
12
|
+
--surface-active: light-dark(#e7e2d9, #312d28);
|
|
13
|
+
--surface-sticky: light-dark(color-mix(in srgb, #fefcf9 92%, transparent), color-mix(in srgb, #15120f 92%, transparent));
|
|
14
|
+
--on-dark: light-dark(#f8f5ef, #15120f);
|
|
15
|
+
--ink: light-dark(#1d1713, #efebe2);
|
|
16
|
+
--ink-soft: light-dark(#4e4640, #c1bdb5);
|
|
17
|
+
--slate: light-dark(#69625b, #a29e96);
|
|
18
|
+
--line: light-dark(#d8d4ca, #36322d);
|
|
19
|
+
--line-soft: light-dark(#e8e4dc, #292622);
|
|
20
|
+
--card-line: var(--line);
|
|
21
|
+
--card-shadow: var(--shadow-1);
|
|
22
|
+
--line-strong: light-dark(#bbb7ae, #514c47);
|
|
23
|
+
--line-control: light-dark(#877e78, #78746d);
|
|
24
|
+
--action: light-dark(#1d1713, #efebe2);
|
|
25
|
+
--action-hover: light-dark(#38322d, #d4d0c8);
|
|
26
|
+
--action-pressed: light-dark(#4e4640, #c1bdb5);
|
|
27
|
+
--on-action: light-dark(#f8f5ef, #15120f);
|
|
28
|
+
--action-edge: light-dark(#1d1713, #efebe2);
|
|
29
|
+
--action-ink: light-dark(#1d1713, #efebe2);
|
|
30
|
+
--action-ink-hover: light-dark(#4e4640, #c1bdb5);
|
|
31
|
+
--action-surface: light-dark(color-mix(in srgb, #1d1713 12%, transparent), color-mix(in srgb, #efebe2 20%, transparent));
|
|
32
|
+
--action-line: light-dark(color-mix(in srgb, #1d1713 32%, transparent), color-mix(in srgb, #efebe2 44%, transparent));
|
|
33
|
+
--action-selection: light-dark(color-mix(in srgb, #1d1713 26%, transparent), color-mix(in srgb, #efebe2 30%, transparent));
|
|
34
|
+
--disabled: light-dark(#e7e2d9, #312d28);
|
|
35
|
+
--disabled-ink: light-dark(#8c857f, #66635d);
|
|
36
|
+
--accent: light-dark(#f1c45e, #d19936);
|
|
37
|
+
--on-accent: light-dark(#1d1713, #1d1713);
|
|
38
|
+
--sans: 'Instrument Sans', system-ui, sans-serif;
|
|
39
|
+
--display: 'Newsreader', Georgia, serif;
|
|
40
|
+
--mono: 'IBM Plex Mono', ui-monospace, monospace;
|
|
41
|
+
--weight-heavy: 500;
|
|
42
|
+
--leading-display: 1.05;
|
|
43
|
+
--tracking-display: -0.025em;
|
|
44
|
+
--display-case: none;
|
|
45
|
+
--display-stretch: normal;
|
|
46
|
+
--radius-sm: 2px;
|
|
47
|
+
--radius-control: 3px;
|
|
48
|
+
--radius-card: 4px;
|
|
49
|
+
--radius-lg: 6px;
|
|
50
|
+
--shadow-1: none;
|
|
51
|
+
--shadow-2: none;
|
|
52
|
+
--shadow-3: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Aliases from :root that lead to a token this theme sets, declared again so
|
|
56
|
+
they resolve against the theme's values on whatever element carries it. */
|
|
57
|
+
[data-product='receipts'] {
|
|
58
|
+
--i: var(--action);
|
|
59
|
+
--i-ink: var(--action-ink);
|
|
60
|
+
--i-hover: var(--action-hover);
|
|
61
|
+
--i-ink-hover: var(--action-ink-hover);
|
|
62
|
+
--i-pressed: var(--action-pressed);
|
|
63
|
+
--i-surface: var(--action-surface);
|
|
64
|
+
--i-line: var(--action-line);
|
|
65
|
+
--i-selection: var(--action-selection);
|
|
66
|
+
--on-i: var(--on-action);
|
|
67
|
+
--i-disabled-bg: var(--disabled);
|
|
68
|
+
--i-disabled-ink: var(--disabled-ink);
|
|
69
|
+
--info: var(--action);
|
|
70
|
+
--info-ink: var(--action-ink);
|
|
71
|
+
--info-surface: var(--action-surface);
|
|
72
|
+
--info-line: var(--action-line);
|
|
73
|
+
--diff-changed: var(--action);
|
|
74
|
+
--diff-changed-ink: var(--action-ink);
|
|
75
|
+
--diff-changed-surface: var(--action-surface);
|
|
76
|
+
--code-surface: var(--bg);
|
|
77
|
+
--code-ink: var(--ink);
|
|
78
|
+
--code-keyword: var(--action-ink);
|
|
79
|
+
--code-string: var(--ink-soft);
|
|
80
|
+
--code-comment: var(--slate);
|
|
81
|
+
--code-highlight: var(--action-surface);
|
|
82
|
+
--gold: var(--slate);
|
|
83
|
+
--leading-3xl: var(--leading-display);
|
|
84
|
+
--tracking-3xl: var(--tracking-display);
|
|
85
|
+
--leading-4xl: var(--leading-display);
|
|
86
|
+
--tracking-4xl: var(--tracking-display);
|
|
87
|
+
--radius: var(--radius-card);
|
|
88
|
+
--shadow: var(--shadow-1);
|
|
89
|
+
--button-radius: var(--radius-control);
|
|
90
|
+
--field-radius: var(--radius-control);
|
|
91
|
+
--field-line: var(--line-control);
|
|
92
|
+
--card-radius: var(--radius-card);
|
|
93
|
+
--pill-radius: var(--radius-sm);
|
|
94
|
+
--dialog-radius: var(--radius-lg);
|
|
95
|
+
--focus-ring: var(--action-ink);
|
|
96
|
+
--chart-surface: var(--card);
|
|
97
|
+
--chart-other: var(--slate);
|
|
98
|
+
--chart-grid: var(--line);
|
|
99
|
+
--chart-axis: var(--slate);
|
|
100
|
+
--seq-0: var(--line);
|
|
101
|
+
}
|
package/themes/sites.css
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* GENERATED by scripts/build.mjs from themes/sites.theme and tokens/kits/larch.json. Edit that, then `npm run build`. */
|
|
2
|
+
|
|
3
|
+
/* sites.theme
|
|
4
|
+
|
|
5
|
+
kit: larch
|
|
6
|
+
ground: wash
|
|
7
|
+
hue: 355 # magenta
|
|
8
|
+
typeface: onest
|
|
9
|
+
heading-weight: 500
|
|
10
|
+
corners: 16
|
|
11
|
+
shell: conversation */
|
|
12
|
+
[data-product='sites'] {
|
|
13
|
+
/* From the larch kit. */
|
|
14
|
+
--card-line: var(--line);
|
|
15
|
+
--card-shadow: var(--shadow-1);
|
|
16
|
+
--accent: light-dark(#f1c45e, #e3ad4b);
|
|
17
|
+
--on-accent: light-dark(#12241a, #12241a);
|
|
18
|
+
--sans: 'Onest', system-ui, sans-serif;
|
|
19
|
+
--mono: 'IBM Plex Mono', ui-monospace, monospace;
|
|
20
|
+
--leading-display: 1.05;
|
|
21
|
+
--tracking-display: -0.035em;
|
|
22
|
+
--display-case: none;
|
|
23
|
+
--display-stretch: normal;
|
|
24
|
+
--button-radius: 999px;
|
|
25
|
+
--pill-radius: 999px;
|
|
26
|
+
--shadow-1: none;
|
|
27
|
+
|
|
28
|
+
/* From the theme. */
|
|
29
|
+
--bg: light-dark(#ffe7ef, #1d0f14);
|
|
30
|
+
--card: light-dark(#fff8fa, #2b1920);
|
|
31
|
+
--surface-hover: light-dark(#feedf2, #36222a);
|
|
32
|
+
--surface-active: light-dark(#f9e3ea, #402a32);
|
|
33
|
+
--ink: light-dark(#231219, #f9eff2);
|
|
34
|
+
--ink-soft: light-dark(#513b43, #d6c5cb);
|
|
35
|
+
--slate: light-dark(#685159, #b9a5ab);
|
|
36
|
+
--line: light-dark(#ead9df, #3f2d34);
|
|
37
|
+
--line-soft: light-dark(#f2e3e8, #322127);
|
|
38
|
+
--line-strong: light-dark(#cbb8be, #5d464e);
|
|
39
|
+
--line-control: light-dark(#8b6a76, #a07e8a);
|
|
40
|
+
--disabled-ink: light-dark(#938087, #75636a);
|
|
41
|
+
--surface-sticky: light-dark(color-mix(in srgb, #fff8fa 92%, transparent), color-mix(in srgb, #1d0f14 92%, transparent));
|
|
42
|
+
--on-dark: light-dark(#ffe7ef, #1d0f14);
|
|
43
|
+
--disabled: light-dark(#f9e3ea, #402a32);
|
|
44
|
+
--chart-surface: light-dark(#fffdfd, #2b1920);
|
|
45
|
+
--action: light-dark(#b10b69, #fb9dc2);
|
|
46
|
+
--action-hover: light-dark(#960057, #e68aaf);
|
|
47
|
+
--action-pressed: light-dark(#7b0046, #d0799c);
|
|
48
|
+
--action-ink-hover: light-dark(#84004c, #ffcadd);
|
|
49
|
+
--on-action: light-dark(#fefbfc, #1d0f14);
|
|
50
|
+
--action-edge: light-dark(#b10b69, #fb9dc2);
|
|
51
|
+
--action-ink: light-dark(#b10b69, #fb9dc2);
|
|
52
|
+
--action-surface: light-dark(color-mix(in srgb, #b10b69 12%, transparent), color-mix(in srgb, #fb9dc2 20%, transparent));
|
|
53
|
+
--action-line: light-dark(color-mix(in srgb, #b10b69 32%, transparent), color-mix(in srgb, #fb9dc2 44%, transparent));
|
|
54
|
+
--action-selection: light-dark(color-mix(in srgb, #b10b69 26%, transparent), color-mix(in srgb, #fb9dc2 30%, transparent));
|
|
55
|
+
--display: 'Onest', system-ui, sans-serif;
|
|
56
|
+
--weight-heavy: 500;
|
|
57
|
+
--radius-sm: 8px;
|
|
58
|
+
--radius-control: 16px;
|
|
59
|
+
--radius-card: 24px;
|
|
60
|
+
--radius-lg: 32px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Aliases from :root that lead to a token this theme sets, declared again so
|
|
64
|
+
they resolve against the theme's values on whatever element carries it. */
|
|
65
|
+
[data-product='sites'] {
|
|
66
|
+
--i: var(--action);
|
|
67
|
+
--i-ink: var(--action-ink);
|
|
68
|
+
--i-hover: var(--action-hover);
|
|
69
|
+
--i-ink-hover: var(--action-ink-hover);
|
|
70
|
+
--i-pressed: var(--action-pressed);
|
|
71
|
+
--i-surface: var(--action-surface);
|
|
72
|
+
--i-line: var(--action-line);
|
|
73
|
+
--i-selection: var(--action-selection);
|
|
74
|
+
--on-i: var(--on-action);
|
|
75
|
+
--i-disabled-bg: var(--disabled);
|
|
76
|
+
--i-disabled-ink: var(--disabled-ink);
|
|
77
|
+
--info: var(--action);
|
|
78
|
+
--info-ink: var(--action-ink);
|
|
79
|
+
--info-surface: var(--action-surface);
|
|
80
|
+
--info-line: var(--action-line);
|
|
81
|
+
--diff-changed: var(--action);
|
|
82
|
+
--diff-changed-ink: var(--action-ink);
|
|
83
|
+
--diff-changed-surface: var(--action-surface);
|
|
84
|
+
--code-surface: var(--bg);
|
|
85
|
+
--code-ink: var(--ink);
|
|
86
|
+
--code-keyword: var(--action-ink);
|
|
87
|
+
--code-string: var(--ink-soft);
|
|
88
|
+
--code-comment: var(--slate);
|
|
89
|
+
--code-highlight: var(--action-surface);
|
|
90
|
+
--gold: var(--slate);
|
|
91
|
+
--leading-3xl: var(--leading-display);
|
|
92
|
+
--tracking-3xl: var(--tracking-display);
|
|
93
|
+
--leading-4xl: var(--leading-display);
|
|
94
|
+
--tracking-4xl: var(--tracking-display);
|
|
95
|
+
--radius: var(--radius-card);
|
|
96
|
+
--shadow: var(--shadow-1);
|
|
97
|
+
--field-radius: var(--radius-control);
|
|
98
|
+
--field-line: var(--line-control);
|
|
99
|
+
--card-radius: var(--radius-card);
|
|
100
|
+
--dialog-radius: var(--radius-lg);
|
|
101
|
+
--focus-ring: var(--action-ink);
|
|
102
|
+
--chart-other: var(--slate);
|
|
103
|
+
--chart-grid: var(--line);
|
|
104
|
+
--chart-axis: var(--slate);
|
|
105
|
+
--seq-0: var(--line);
|
|
106
|
+
}
|