@cameronsjo/artificer 0.12.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/LICENSE +202 -0
- package/README.md +260 -0
- package/package.json +46 -0
- package/src/artificer-editorial.css +136 -0
- package/src/artificer-focus.js +47 -0
- package/src/artificer-icons.js +163 -0
- package/src/artificer-tabs.js +169 -0
- package/src/artificer-theme.js +63 -0
- package/src/artificer-whimsy.css +317 -0
- package/src/artificer-whimsy.js +184 -0
- package/src/artificer.css +1478 -0
- package/src/assets/favicon.svg +9 -0
- package/src/assets/fonts/ia-writer-quattro-400-italic.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-400.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-700-italic.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-700.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-s-400-italic.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-s-400.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-s-700-italic.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-s-700.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-v-400-italic.woff2 +0 -0
- package/src/assets/fonts/ia-writer-quattro-v-400.woff2 +0 -0
- package/src/assets/fonts/jetbrains-mono-400.woff2 +0 -0
- package/src/assets/fonts/jetbrains-mono-500.woff2 +0 -0
- package/src/assets/fonts/jetbrains-mono-700.woff2 +0 -0
- package/src/assets/og-image.png +0 -0
- package/src/assets/og-image.svg +54 -0
- package/src/print.css +167 -0
- package/src/theme-bootstrap.html +23 -0
- package/src/tokens.json +169 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2
|
+
|
|
3
|
+
<rect width="32" height="32" rx="4" fill="#292c33"></rect>
|
|
4
|
+
<rect x="2" y="2" width="28" height="28" rx="3" fill="none" stroke="#5a3a9a" stroke-width="1"></rect>
|
|
5
|
+
|
|
6
|
+
<path d="M 22 9 H 13 a 4 4 0 0 0 -4 4 v 6 a 4 4 0 0 0 4 4 h 9" fill="none" stroke="#dbbb6f" stroke-width="2.5" stroke-linecap="square"></path>
|
|
7
|
+
|
|
8
|
+
<circle cx="24" cy="22" r="1.5" fill="#c4808a"></circle>
|
|
9
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 630" width="1200" height="630">
|
|
2
|
+
<rect width="1200" height="630" fill="#292c33"></rect>
|
|
3
|
+
|
|
4
|
+
<rect x="40" y="40" width="1120" height="550" fill="none" stroke="#4a4f5c" stroke-width="1"></rect>
|
|
5
|
+
<rect x="48" y="48" width="1104" height="534" fill="none" stroke="#5a3a9a" stroke-width="0.5"></rect>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
<text x="80" y="100" fill="#b8cad4" font-family="'JetBrains Mono', ui-monospace, monospace" font-size="18" letter-spacing="3">
|
|
9
|
+
CAMERON · PERSONAL DESIGN · v0.10
|
|
10
|
+
</text>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<text x="80" y="280" fill="#e8e6e1" font-family="'JetBrains Mono', ui-monospace, monospace" font-weight="700" font-size="120" letter-spacing="-2">
|
|
14
|
+
Artificer<tspan fill="#dbbb6f">.</tspan>
|
|
15
|
+
</text>
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
<text x="80" y="362" fill="#c5c8c6" font-family="'JetBrains Mono', ui-monospace, monospace" font-size="32" letter-spacing="0">
|
|
19
|
+
A design system for someone who works
|
|
20
|
+
</text>
|
|
21
|
+
<text x="80" y="402" fill="#c5c8c6" font-family="'JetBrains Mono', ui-monospace, monospace" font-size="32" letter-spacing="0">
|
|
22
|
+
rooted in <tspan fill="#dbbb6f">Ghostty</tspan> and the <tspan fill="#c4808a">Jazz Age</tspan>.
|
|
23
|
+
</text>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
<g transform="translate(80, 480)">
|
|
27
|
+
|
|
28
|
+
<rect x="0" y="0" width="80" height="80" fill="#c4932a"></rect>
|
|
29
|
+
<text x="0" y="100" fill="#b8cad4" font-family="'JetBrains Mono', monospace" font-size="13" letter-spacing="1">GOLD</text>
|
|
30
|
+
|
|
31
|
+
<rect x="92" y="0" width="80" height="80" fill="#c4808a"></rect>
|
|
32
|
+
<text x="92" y="100" fill="#b8cad4" font-family="'JetBrains Mono', monospace" font-size="13" letter-spacing="1">ROSE</text>
|
|
33
|
+
|
|
34
|
+
<rect x="184" y="0" width="80" height="80" fill="#a04540"></rect>
|
|
35
|
+
<text x="184" y="100" fill="#b8cad4" font-family="'JetBrains Mono', monospace" font-size="13" letter-spacing="1">BRICK</text>
|
|
36
|
+
|
|
37
|
+
<rect x="276" y="0" width="80" height="80" fill="#4a8a5e"></rect>
|
|
38
|
+
<text x="276" y="100" fill="#b8cad4" font-family="'JetBrains Mono', monospace" font-size="13" letter-spacing="1">APOTH.</text>
|
|
39
|
+
|
|
40
|
+
<rect x="368" y="0" width="80" height="80" fill="#5a7a8a"></rect>
|
|
41
|
+
<text x="368" y="100" fill="#b8cad4" font-family="'JetBrains Mono', monospace" font-size="13" letter-spacing="1">STEEL</text>
|
|
42
|
+
|
|
43
|
+
<rect x="460" y="0" width="80" height="80" fill="#5a3a9a"></rect>
|
|
44
|
+
<text x="460" y="100" fill="#b8cad4" font-family="'JetBrains Mono', monospace" font-size="13" letter-spacing="1">ROYAL</text>
|
|
45
|
+
</g>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
<g transform="translate(940, 200) scale(8)">
|
|
49
|
+
<rect width="32" height="32" rx="4" fill="#313540"></rect>
|
|
50
|
+
<rect x="2" y="2" width="28" height="28" rx="3" fill="none" stroke="#5a3a9a" stroke-width="1"></rect>
|
|
51
|
+
<path d="M 22 9 H 13 a 4 4 0 0 0 -4 4 v 6 a 4 4 0 0 0 4 4 h 9" fill="none" stroke="#dbbb6f" stroke-width="2.5" stroke-linecap="square"></path>
|
|
52
|
+
<circle cx="24" cy="22" r="1.5" fill="#c4808a"></circle>
|
|
53
|
+
</g>
|
|
54
|
+
</svg>
|
package/src/print.css
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
ARTIFICER · Print stylesheet · v0.6
|
|
3
|
+
Forces ivory/indigo paper-stock mode for all print output. Strips chrome
|
|
4
|
+
that doesn't make sense on paper (theme toggle, sticky nav, hover states).
|
|
5
|
+
Include AFTER artificer.css so it overrides safely:
|
|
6
|
+
<link rel="stylesheet" href="artificer.css" />
|
|
7
|
+
<link rel="stylesheet" href="print.css" media="print" />
|
|
8
|
+
═══════════════════════════════════════════════════════════════════════════ */
|
|
9
|
+
|
|
10
|
+
@media print {
|
|
11
|
+
|
|
12
|
+
/* Force light theme regardless of <html data-theme=""> setting */
|
|
13
|
+
:root, :root[data-theme="dark"], :root[data-theme="light"] {
|
|
14
|
+
--bg: #ffffff;
|
|
15
|
+
--bg-raised: #f5ead0;
|
|
16
|
+
--bg-overlay: #eddcc0;
|
|
17
|
+
--bg-inactive: #f0e8d0;
|
|
18
|
+
|
|
19
|
+
--fg: #20203e;
|
|
20
|
+
--fg-secondary: #4a3f2a;
|
|
21
|
+
--fg-disabled: #8a8070;
|
|
22
|
+
|
|
23
|
+
--border: #cbb88a;
|
|
24
|
+
|
|
25
|
+
--accent: #7a5a10;
|
|
26
|
+
--accent-bright: #7a5a10;
|
|
27
|
+
--accent-fill: #c4932a;
|
|
28
|
+
--attention: #8a6618;
|
|
29
|
+
--attention-fill: #e0b558;
|
|
30
|
+
--urgent: #8a2418;
|
|
31
|
+
--urgent-fill: #a04540;
|
|
32
|
+
--success: #2a5a3a;
|
|
33
|
+
--steel: #2e4a5a;
|
|
34
|
+
--steel-fill: #5a7a8a;
|
|
35
|
+
|
|
36
|
+
--brand-purple: #4a25a0;
|
|
37
|
+
--brand-purple-fill: #331567;
|
|
38
|
+
|
|
39
|
+
--on-accent: #f5ead0;
|
|
40
|
+
--on-attention: #20203e;
|
|
41
|
+
--on-urgent: #f5ead0;
|
|
42
|
+
--on-success: #f5ead0;
|
|
43
|
+
|
|
44
|
+
--shadow-overlay: none;
|
|
45
|
+
|
|
46
|
+
color-scheme: light;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Page setup — generous gutters, classic letter */
|
|
50
|
+
@page {
|
|
51
|
+
size: letter;
|
|
52
|
+
margin: 0.75in 0.85in;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
html, body {
|
|
56
|
+
background: #ffffff !important;
|
|
57
|
+
color: #20203e !important;
|
|
58
|
+
font-size: 10.5pt;
|
|
59
|
+
line-height: 1.5;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Hide chrome that doesn't belong on paper */
|
|
63
|
+
.theme-toggle,
|
|
64
|
+
[data-theme-toggle],
|
|
65
|
+
.skip-link,
|
|
66
|
+
nav[role="navigation"]:has(.theme-toggle),
|
|
67
|
+
.toast,
|
|
68
|
+
.tooltip,
|
|
69
|
+
video,
|
|
70
|
+
audio,
|
|
71
|
+
iframe { display: none !important; }
|
|
72
|
+
|
|
73
|
+
/* Strip motion + interactive affordances */
|
|
74
|
+
*, *::before, *::after {
|
|
75
|
+
transition: none !important;
|
|
76
|
+
animation: none !important;
|
|
77
|
+
text-shadow: none !important;
|
|
78
|
+
box-shadow: none !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Surfaces — drop fills so ink doesn't bleed */
|
|
82
|
+
.card,
|
|
83
|
+
.card--active,
|
|
84
|
+
.card--attention,
|
|
85
|
+
.card--urgent,
|
|
86
|
+
.pane--active,
|
|
87
|
+
.pane--inactive {
|
|
88
|
+
background: transparent !important;
|
|
89
|
+
border: 1px solid #cbb88a !important;
|
|
90
|
+
break-inside: avoid;
|
|
91
|
+
}
|
|
92
|
+
.card--active { border-left: 3px solid #7a5a10 !important; }
|
|
93
|
+
.card--attention { border-left: 3px solid #8a6618 !important; }
|
|
94
|
+
.card--urgent { border-left: 3px solid #8a2418 !important; }
|
|
95
|
+
.pane--inactive { opacity: 0.6 !important; filter: none !important; }
|
|
96
|
+
|
|
97
|
+
/* Buttons read as bracketed tokens on paper */
|
|
98
|
+
.btn {
|
|
99
|
+
background: transparent !important;
|
|
100
|
+
color: #20203e !important;
|
|
101
|
+
border: 1px solid #20203e !important;
|
|
102
|
+
padding: 2px 8px !important;
|
|
103
|
+
}
|
|
104
|
+
/* Badges — outline only, color persists for semantic meaning */
|
|
105
|
+
.badge {
|
|
106
|
+
background: transparent !important;
|
|
107
|
+
border: 1px solid currentColor !important;
|
|
108
|
+
padding: 0 6px !important;
|
|
109
|
+
}
|
|
110
|
+
.badge--accent { color: #7a5a10 !important; }
|
|
111
|
+
.badge--attention { color: #8a6618 !important; }
|
|
112
|
+
.badge--urgent { color: #8a2418 !important; }
|
|
113
|
+
.badge--success { color: #2a5a3a !important; }
|
|
114
|
+
.badge--ghost { color: #2e4a5a !important; }
|
|
115
|
+
|
|
116
|
+
/* Links — show URL after, but only for off-domain links */
|
|
117
|
+
a { color: #4a25a0 !important; text-decoration: underline; }
|
|
118
|
+
a[href^="http"]::after {
|
|
119
|
+
content: " (" attr(href) ")";
|
|
120
|
+
font-size: 0.85em;
|
|
121
|
+
color: #2e4a5a;
|
|
122
|
+
word-break: break-all;
|
|
123
|
+
}
|
|
124
|
+
a[href^="#"]::after,
|
|
125
|
+
a[href^="/"]::after,
|
|
126
|
+
a[href^="./"]::after,
|
|
127
|
+
a[href^="../"]::after { content: ""; }
|
|
128
|
+
|
|
129
|
+
/* Headings — keep with following content */
|
|
130
|
+
h1, h2, h3, .t-headline-lg, .t-headline-md {
|
|
131
|
+
break-after: avoid;
|
|
132
|
+
break-inside: avoid;
|
|
133
|
+
color: #20203e !important;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Tables, code blocks, lists — don't tear */
|
|
137
|
+
table, pre, blockquote, figure { break-inside: avoid; }
|
|
138
|
+
|
|
139
|
+
/* Code — light tint for legibility on paper */
|
|
140
|
+
code, .code, kbd, .kbd, pre {
|
|
141
|
+
background: #f5ead0 !important;
|
|
142
|
+
color: #20203e !important;
|
|
143
|
+
border: 1px solid #cbb88a !important;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* Inputs — render as filled fields with the value visible */
|
|
147
|
+
.input, .textarea, .select {
|
|
148
|
+
background: transparent !important;
|
|
149
|
+
border: 1px solid #20203e !important;
|
|
150
|
+
color: #20203e !important;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Dots — keep semantic color, drop background */
|
|
154
|
+
.dot--accent { background: #7a5a10 !important; }
|
|
155
|
+
.dot--attention { background: #8a6618 !important; }
|
|
156
|
+
.dot--urgent { background: #8a2418 !important; }
|
|
157
|
+
.dot--success { background: #2a5a3a !important; }
|
|
158
|
+
|
|
159
|
+
/* Print-only utility */
|
|
160
|
+
.no-print { display: none !important; }
|
|
161
|
+
.print-only { display: block !important; }
|
|
162
|
+
.print-meta { font-size: 8.5pt; color: #2e4a5a; margin-top: 0.5in; }
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@media screen {
|
|
166
|
+
.print-only { display: none; }
|
|
167
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Artificer theme bootstrap — paste FIRST in <head>, before any CSS.
|
|
2
|
+
Sets data-theme before first paint so a dark page never flashes light.
|
|
3
|
+
The deferred artificer-theme.js is NOT sufficient alone — it runs after
|
|
4
|
+
first paint, and the no-[data-theme] branch resolves to light, which
|
|
5
|
+
means a dark consumer site flashes ivory on every page load (#39).
|
|
6
|
+
|
|
7
|
+
This is part of the Artificer v0.9.0 Baseline contract — see CLAUDE.md
|
|
8
|
+
§ Baseline contract. The localStorage key 'artificer.theme' MUST match
|
|
9
|
+
the key artificer-theme.js reads/writes; do not rename without aligning.
|
|
10
|
+
Fail-safe defaults to dark (the system's primary surface), never light. -->
|
|
11
|
+
<script>
|
|
12
|
+
(function () {
|
|
13
|
+
try {
|
|
14
|
+
var saved = localStorage.getItem('artificer.theme');
|
|
15
|
+
var prefersDark = window.matchMedia &&
|
|
16
|
+
window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
17
|
+
document.documentElement.setAttribute(
|
|
18
|
+
'data-theme', saved || (prefersDark ? 'dark' : 'light'));
|
|
19
|
+
} catch (e) {
|
|
20
|
+
document.documentElement.setAttribute('data-theme', 'dark'); /* fail-safe to brand surface, never light */
|
|
21
|
+
}
|
|
22
|
+
})();
|
|
23
|
+
</script>
|
package/src/tokens.json
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://design-tokens.org/schema.json",
|
|
3
|
+
"$description": "Artificer · Cameron's personal design system. Machine-readable token export. Mirrors artificer.css. Source of truth lives in the CSS — regenerate this file if tokens change there.",
|
|
4
|
+
"$version": "0.12.0",
|
|
5
|
+
|
|
6
|
+
"color": {
|
|
7
|
+
"$description": "All colors paired with their dark/light values. AAA-tuned where indicated. v0.6 palette: apothecary × deco × speakeasy.",
|
|
8
|
+
|
|
9
|
+
"surface": {
|
|
10
|
+
"bg": { "dark": "#292c33", "light": "#f5ead0", "use": "Base page surface. Light = ivory paper, the floor." },
|
|
11
|
+
"bgRaised": { "dark": "#313540", "light": "#eddcc0", "use": "Cards, sidebar, raised panels. Light = champagne, lifts off ivory." },
|
|
12
|
+
"bgOverlay": { "dark": "#3c4150", "light": "#e4d4b0", "use": "Modals, command palette, dropdowns." },
|
|
13
|
+
"bgInactive": { "dark": "#1d1f21", "light": "#dcc99c", "use": "Unfocused panes; pair with .pane--inactive." }
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
"fg": {
|
|
17
|
+
"fg": { "dark": "#e8e6e1", "light": "#20203e", "use": "Primary text. Bone on dark, midnight indigo on ivory." },
|
|
18
|
+
"fgSecondary": { "dark": "#c5c8c6", "light": "#4a3f2a", "use": "Meta, hints, labels." },
|
|
19
|
+
"fgDisabled": { "dark": "#666666", "light": "#8a8070", "use": "Disabled controls, placeholders." },
|
|
20
|
+
"border": { "dark": "#4a4f5c", "light": "#cbb88a", "use": "Inputs, dividers, kbd." },
|
|
21
|
+
"borderLifted":{ "dark": "#5a606e", "light": "#b8a674", "use": "Lifted border — diagram rails/connectors; more perceptible than --border on the canvas (2.22:1 dark / 2.01:1 light, non-text)." }
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
"semantic": {
|
|
25
|
+
"accent": { "dark": "#dbbb6f", "light": "#7a5a10", "use": "Burnished gold — interactive text/icons. Links, focus, secondary-button border." },
|
|
26
|
+
"accentBright": { "dark": "#e3c885", "light": "#8a6618", "use": "Hover state for accent." },
|
|
27
|
+
"accentFill": { "dark": "#c4932a", "light": "#c4932a", "use": "Deep gold fill — primary button background, badge fill, selection bg. Pair with --on-accent text." },
|
|
28
|
+
|
|
29
|
+
"attention": { "dark": "#c4808a", "light": "#8a6618", "use": "Dusty rose — \"look when you can\" text/icons. Promoted from light pink in v0.6." },
|
|
30
|
+
"attentionFill": { "dark": "#c4808a", "light": "#dbbb6f", "use": "Attention fill — dark dusty rose, light burnished gold. Pair with --on-attention text." },
|
|
31
|
+
|
|
32
|
+
"urgent": { "dark": "#a04540", "light": "#8a2418", "use": "Brick — destructive, errors, blocking. Replaced vermillion in v0.6 (better separation from gold)." },
|
|
33
|
+
"urgentFill": { "dark": "#a04540", "light": "#a04540", "use": "Brick fill — destructive buttons, urgent badges. Pair with --on-urgent text." },
|
|
34
|
+
|
|
35
|
+
"success": { "dark": "#4a8a5e", "light": "#2a5a3a", "use": "Apothecary green — completed states, success badges, autoAccept, merged. Replaced olive in v0.6." },
|
|
36
|
+
"successFill": { "dark": "#2d6644", "light": "#2a5a3a", "use": "Deep apothecary fill — success badges/dots/chips; deeper than bare success so ivory-on clears AA (5.67:1 dark / 6.70:1 light). Pair with --on-success text." },
|
|
37
|
+
|
|
38
|
+
"steel": { "dark": "#b8cad4", "light": "#2e4a5a", "use": "Steel blue — honest middle / chrome / secondary UI text / paths." },
|
|
39
|
+
"steelFill": { "dark": "#5a7a8a", "light": "#5a7a8a", "use": "Steel fill — meta badges." },
|
|
40
|
+
|
|
41
|
+
"diffAddBg": { "dark": "#1f3a28", "light": "#d8e4cc", "use": "Diff +added background. Derived tint of --success: same hue, knocked-down lightness." },
|
|
42
|
+
"diffDelBg": { "dark": "#3a1f1d", "light": "#ecd6d4", "use": "Diff -removed background. Derived tint of --urgent. Dimmer than diffAdd by design — destructive shouldn't out-shout success." }
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
"brand": {
|
|
46
|
+
"$description": "Cameron's personal signature: gold + purple. Decorative — never use semantically. Ramp: deep (chart/whimsy stop) · bright (foreground role: syntax keyword) · fill (surface).",
|
|
47
|
+
"brandPurple": { "dark": "#5a3a9a", "light": "#4a25a0", "use": "Deep purple — chart series-3, whimsy gradient stop. NOT a foreground role (sub-AA on dark)." },
|
|
48
|
+
"brandPurpleBright": { "dark": "#b095e0", "light": "#5a35b0", "use": "Lifted purple — syntax keyword foreground ($roles.syntax.keyword). 5.47:1 dark / 6.83:1 light, both AA. Minted v0.10.1." },
|
|
49
|
+
"brandPurpleFill": { "dark": "#331567", "light": "#331567", "use": "Deep purple — surface fill, plan-mode borders, masthead background." }
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
"anchor": {
|
|
53
|
+
"$description": "Fixed reference colors — used inside on-color text mappings only.",
|
|
54
|
+
"ivory": { "value": "#f5ead0", "use": "Cream paper anchor — the floor." },
|
|
55
|
+
"ivoryRaised": { "value": "#eddcc0", "use": "Champagne — the lifted card. New in v0.6." },
|
|
56
|
+
"ink": { "value": "#20203e", "use": "Midnight indigo. Replaced navy #0d1b2a in v0.6 — cooler, richer, more 'ink at midnight'." }
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
"onColor": {
|
|
60
|
+
"$description": "Text color to use when content sits on a colored fill. Pre-checked for AAA where possible.",
|
|
61
|
+
"onAccent": { "dark": "#20203e", "light": "#f5ead0", "use": "Text on --accent-fill. Indigo on gold." },
|
|
62
|
+
"onAttention": { "dark": "#20203e", "light": "#20203e", "use": "Text on --attention-fill." },
|
|
63
|
+
"onUrgent": { "dark": "#f5ead0", "light": "#f5ead0", "use": "Text on --urgent-fill. Ivory on brick." },
|
|
64
|
+
"onSuccess": { "dark": "#f5ead0", "light": "#f5ead0", "use": "Text on --success. Ivory on apothecary green." }
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
"typography": {
|
|
69
|
+
"fontFamily": {
|
|
70
|
+
"mono": { "value": "'JetBrains Mono', 'Berkeley Mono', ui-monospace, 'SF Mono', Menlo, monospace", "use": "Code, identifiers, numerals, dense tool body." },
|
|
71
|
+
"sans": { "value": "'iA Writer Quattro S', 'iA Writer Quattro', 'Iowan Old Style', 'Charter', system-ui, sans-serif", "use": "Document body, UI labels, humanist sans." }
|
|
72
|
+
},
|
|
73
|
+
"scale": {
|
|
74
|
+
"$note": "Sizes are REM so text honors the browser font-size preference (root is never overridden; 1rem = 16px at default). px equivalents in comments.",
|
|
75
|
+
"headlineLg": { "size": "1.75rem", "lineHeight": 1.3, "letterSpacing": "-0.01em", "weight": 700, "family": "mono" },
|
|
76
|
+
"headlineMd": { "size": "1.375rem", "lineHeight": 1.35, "weight": 700, "family": "mono" },
|
|
77
|
+
"bodyLg": { "size": "1rem", "lineHeight": 1.65, "weight": 400, "family": "sans" },
|
|
78
|
+
"bodyMd": { "size": "0.875rem", "lineHeight": 1.6, "weight": 400, "family": "sans" },
|
|
79
|
+
"labelMd": { "size": "0.8125rem", "lineHeight": 1.3, "weight": 500, "family": "sans" },
|
|
80
|
+
"labelSm": { "size": "0.75rem", "lineHeight": 1.3, "weight": 400, "family": "sans" },
|
|
81
|
+
"code": { "size": "0.875rem", "lineHeight": 1.5, "weight": 400, "family": "mono" }
|
|
82
|
+
},
|
|
83
|
+
"letterSpacing": "0.01em",
|
|
84
|
+
"wordSpacing": "0.16em"
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
"spacing": {
|
|
88
|
+
"xs": "4px",
|
|
89
|
+
"sm": "8px",
|
|
90
|
+
"md": "16px",
|
|
91
|
+
"lg": "24px",
|
|
92
|
+
"xl": "32px",
|
|
93
|
+
"2xl": "48px"
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
"breakpoint": {
|
|
97
|
+
"$note": "Layout breakpoints, max-width (mobile-first-down). SOURCE OF TRUTH for JS matchMedia, Tailwind `screens`, and Figma. CSS @media cannot read custom properties, so the literal @media widths in artificer.css MUST be kept equal to these.",
|
|
98
|
+
"mobile": { "value": "640px", "use": "Phone. Stacks .grid-2/.grid-3; .table--responsive reflows rows to cards." },
|
|
99
|
+
"tablet": { "value": "800px", "use": "Small tablet / split view. .split-pane + .appbar collapse; the drawer takes over nav." },
|
|
100
|
+
"wide": { "value": "1200px", "use": "Wide desktop — the system's single MIN-WIDTH breakpoint (reveal a structural region, e.g. .split-pane--inspector's third pane). NOT a content cap: width caps only at --editorial-measure (66ch). #111." }
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
"chart": {
|
|
104
|
+
"$note": "Mirrors the --series-*/--ramp-*/--diverge-*/--chart-* CSS (artificer.css). Categorical series are ALIASES of semantic tokens, so they track theme. The ramp is single-hue sequential, derived from --accent via color-mix. Diverge maps urgent->neutral->success. 5 series max — beyond that, split / group / ramp. The real ramp token is --ramp-1..5 (NOT --series-ramp-*).",
|
|
105
|
+
"series": {
|
|
106
|
+
"1": { "ref": "accent", "use": "Series 1 — gold (the accent)." },
|
|
107
|
+
"2": { "ref": "steel", "use": "Series 2 — steel blue." },
|
|
108
|
+
"3": { "ref": "brandPurple", "use": "Series 3 — purple." },
|
|
109
|
+
"4": { "ref": "success", "use": "Series 4 — apothecary green." },
|
|
110
|
+
"5": { "ref": "attention", "use": "Series 5 — rose." }
|
|
111
|
+
},
|
|
112
|
+
"ramp": {
|
|
113
|
+
"$note": "Sequential single-hue, 5 stops light->dark. Quantitative encoding only (heatmap, choropleth). Derived at color-mix(in oklch, accent X%, bg) for X = 25/45/65/85, then accent.",
|
|
114
|
+
"1": "color-mix(in oklch, var(--accent) 25%, var(--bg))",
|
|
115
|
+
"2": "color-mix(in oklch, var(--accent) 45%, var(--bg))",
|
|
116
|
+
"3": "color-mix(in oklch, var(--accent) 65%, var(--bg))",
|
|
117
|
+
"4": "color-mix(in oklch, var(--accent) 85%, var(--bg))",
|
|
118
|
+
"5": "var(--accent)"
|
|
119
|
+
},
|
|
120
|
+
"diverge": {
|
|
121
|
+
"low": { "ref": "urgent", "use": "Signed-delta low end (brick)." },
|
|
122
|
+
"mid": { "ref": "fgDisabled", "use": "Neutral midpoint." },
|
|
123
|
+
"high": { "ref": "success", "use": "Signed-delta high end (apothecary green)." }
|
|
124
|
+
},
|
|
125
|
+
"chrome": {
|
|
126
|
+
"grid": { "value": "color-mix(in oklch, var(--border) 70%, transparent)", "use": "Gridlines." },
|
|
127
|
+
"gridStrong": { "ref": "border", "use": "Emphasized gridline / baseline." },
|
|
128
|
+
"axis": { "ref": "fgSecondary", "use": "Axis lines + axis labels." }
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
"radius": {
|
|
133
|
+
"sm": { "value": "4px", "use": "Buttons, inputs, kbd." },
|
|
134
|
+
"md": { "value": "8px", "use": "Cards, panels." },
|
|
135
|
+
"lg": { "value": "12px", "use": "Overlays only." }
|
|
136
|
+
},
|
|
137
|
+
|
|
138
|
+
"motion": {
|
|
139
|
+
"duration": {
|
|
140
|
+
"instant": "80ms",
|
|
141
|
+
"fast": "160ms",
|
|
142
|
+
"max": "300ms"
|
|
143
|
+
},
|
|
144
|
+
"easing": "cubic-bezier(0.2, 0.7, 0.3, 1)",
|
|
145
|
+
"easingLinear": "linear",
|
|
146
|
+
"$note": "One curve (easing) for state/arrival; easingLinear is for continuous translation ONLY (motion pattern #02: progress bars, scrubbers, skeleton shimmer). All durations collapse to 0ms when prefers-reduced-motion: reduce."
|
|
147
|
+
},
|
|
148
|
+
|
|
149
|
+
"focus": {
|
|
150
|
+
"$note": "Focus-ring geometry, tokenized (was inline 2px/2px across ~10 selectors). Color is --accent. a11y floor: width never 0.",
|
|
151
|
+
"width": { "value": "2px", "use": "Outline width on every :focus-visible." },
|
|
152
|
+
"offset": { "value": "2px", "use": "Default offset — ring drawn outside the box." },
|
|
153
|
+
"offsetLoose": { "value": "4px", "use": "Sliders / thumbs that need air." },
|
|
154
|
+
"offsetInset": { "value": "-2px", "use": "Rings drawn inside (sidenav items, tabs, table rows, accordion)." }
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
"shadow": {
|
|
158
|
+
"overlay": {
|
|
159
|
+
"dark": "0 4px 12px rgba(0, 0, 0, 0.35)",
|
|
160
|
+
"light": "0 4px 12px rgba(32, 32, 62, 0.18)",
|
|
161
|
+
"use": "Modals, command palette. The heavier of two elevations."
|
|
162
|
+
},
|
|
163
|
+
"popover": {
|
|
164
|
+
"dark": "0 2px 8px rgba(0, 0, 0, 0.30)",
|
|
165
|
+
"light": "0 2px 8px rgba(32, 32, 62, 0.14)",
|
|
166
|
+
"use": "Popovers, tooltips, dropdowns. The lighter elevation. (Was CSS-only.)"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|