forge
Explore
Log in

Don't you dare go Hollow

Four token grounds, one vocabulary

Browse files at this commit

31d3f1ae66dd5bc11c170a22d1aaf0188f1c8412Ahmet Kaan GümüşParent: 86d9d52
  • feat
    • four token grounds, one vocabulary
Show full message
✨ feat(web): four token grounds, one vocabulary
crates/izlek-web/build.rsmodified+4 -0
@@ -8,6 +8,10 @@ fn main() {
8 let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();8 let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
9 let scss = format!("{manifest_dir}/../../style/main.scss");9 let scss = format!("{manifest_dir}/../../style/main.scss");
10 println!("cargo:rerun-if-changed={scss}");10 println!("cargo:rerun-if-changed={scss}");
11+ // Partials pulled in via @use — without these, editing a skin file would
12+ // leave assets/main.css stale.
13+ println!("cargo:rerun-if-changed={manifest_dir}/../../style/_instrument.scss");
14+ println!("cargo:rerun-if-changed={manifest_dir}/../../style/_ledger.scss");
11 15
12 let css = grass::from_path(&scss, &grass::Options::default())16 let css = grass::from_path(&scss, &grass::Options::default())
13 .unwrap_or_else(|err| panic!("failed to compile {scss}: {err}"));17 .unwrap_or_else(|err| panic!("failed to compile {scss}: {err}"));
crates/izlek-web/src/layout.rsmodified+1 -1
@@ -312,7 +312,7 @@ async fn root_layout(cx: &Cx, slot: Result) -> Result {
312 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">312 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
313 <link313 <link
314 rel="stylesheet"314 rel="stylesheet"
315- href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap"315+ href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Newsreader:ital,wght@0,400;0,600;1,400;1,600&display=swap"
316 >316 >
317 <title>"Izlek"</title>317 <title>"Izlek"</title>
318 <link rel="stylesheet" href=(STYLE)>318 <link rel="stylesheet" href=(STYLE)>
style/_instrument.scssadded+9 -0
@@ -0,0 +1,9 @@
1+// Instrument UI skin — dense, neutral-cool, chrome-quiet. Tokens live in
2+// main.scss; skin-specific overrides and component rules for
3+// [data-ui="instrument"] land here.
4+
5+// --- Instrument skin: chrome (topbar, wordmark, nav) -------------------------
6+
7+// --- Instrument skin: fields & controls --------------------------------------
8+
9+// --- Instrument skin: density & spacing --------------------------------------
style/_ledger.scssadded+7 -0
@@ -0,0 +1,7 @@
1+// Ledger UI skin — warm paper, hairline rules, serif display (Newsreader).
2+// Tokens live in main.scss; skin-specific overrides and component rules for
3+// [data-ui="ledger"] land here.
4+
5+// --- Ledger skin: paper & typography -----------------------------------------
6+
7+// --- Ledger skin: rules & ornaments ------------------------------------------
style/main.scssmodified+256 -69
@@ -1,25 +1,39 @@
1-// Design tokens taken from the Izlek artboards.1+// Design tokens — two design languages selected by <html data-ui>:
2-:root {2+//
3+// instrument dense, neutral-cool tool (the default; the bare :root in the
4+// first block doubles as its light set and as a fallback for any
5+// document that somehow reaches this stylesheet without data-ui)
6+// ledger warm paper, hairline rules, serif display face
7+//
8+// data-theme="dark" (settings.rs SaveProfileForm.theme) flips either language.
9+// Component rules below read only these custom properties; the per-UI skins
10+// (_instrument.scss, _ledger.scss) add overrides on top.
11+@use "instrument";
12+@use "ledger";
13+
14+// Instrument, light: warm-gray ground, quiet borders, shared accent family.
15+:root,
16+[data-ui="instrument"] {
3 color-scheme: light;17 color-scheme: light;
4- --bg: #f7f6f2;18+ --bg: #f2f2f0;
5- --surface: #fffefb;19+ --surface: #fbfbfa;
6- --border: #e7e4dc;20+ --border: #dcdcd8;
7- --border-strong: #e0ddd4;21+ --border-strong: #d0d0cb;
8- --ink: #1c1b18;22+ --ink: #1a1b1d;
9- --muted: #6f6b63;23+ --muted: #6b7078;
10- --muted-soft: #726d61;24+ --muted-soft: #6b7078;
11 --accent: #46557b;25 --accent: #46557b;
12 --accent-tint: #eef0f5;26 --accent-tint: #eef0f5;
13 --accent-ink: #2f3c5c;27 --accent-ink: #2f3c5c;
14 28
15- --field-bg: #faf9f6;29+ --field-bg: #f5f5f3;
16- --surface-sunken: #f1efe8;30+ --surface-sunken: #e9e9e7;
17- --surface-muted: #faf9f4;31+ --surface-muted: #f5f5f3;
18- --ink-soft: #3d3a34;32+ --ink-soft: #3d4045;
19- --row-hover: #f3f1ea;33+ --row-hover: #ececea;
20- --panel-sunken: #f2f0ea;34+ --panel-sunken: #eeeeec;
21- --border-soft: #d5d1c7;35+ --border-soft: #d3d3ce;
22- --scrim: rgba(28, 27, 24, 0.46);36+ --scrim: rgba(26, 27, 29, 0.46);
23 37
24 --danger: #a04a24;38 --danger: #a04a24;
25 --danger-tint: #f9ece4;39 --danger-tint: #f9ece4;
@@ -53,79 +67,252 @@
53 67
54 --font-sans: system-ui, sans-serif;68 --font-sans: system-ui, sans-serif;
55 --font-mono: 'IBM Plex Mono', ui-monospace, monospace;69 --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
70+ --font-display: var(--font-sans);
71+
72+ --control-h: 32px;
73+ --control-h-lg: 40px;
74+ --rule-strong: #d0d0cb;
56 75
57- --radius: 6px;76+ --radius: 3px;
58 --radius-sm: var(--radius);77 --radius-sm: var(--radius);
59- --radius-md: 8px;78+ --radius-md: 3px;
60- --radius-lg: 12px;79+ --radius-lg: 3px;
61 --topbar-height: 56px;80 --topbar-height: 56px;
62 81
63- --shadow-1: 0 1px 2px rgba(28, 27, 24, 0.06);82+ --shadow-1: none;
64- --shadow-2: 0 8px 24px rgba(28, 27, 24, 0.14);83+ --shadow-2: none;
65- --shadow-3: 0 12px 40px rgba(28, 27, 24, 0.18);84+ --shadow-3: none;
66 85
67 --dur-fast: 120ms;86 --dur-fast: 120ms;
68 --ease: ease-out;87 --ease: ease-out;
69 }88 }
70 89
71-// Dark, per user (settings.rs SaveProfileForm.theme). Reference class:90+// Instrument, dark: near-black neutral-cool; tint fills go translucent and
72-// GitHub dark — neutral-cool near-black page, each layer one small,91+// tint borders go alpha so the ground shows through.
73-// low-contrast step lighter (bg < column < card), muted borders, quiet accent.92+[data-ui="instrument"][data-theme="dark"] {
74-[data-theme="dark"] {93+ color-scheme: dark;
94+ --bg: #0d0e10;
95+ --surface: #14161a;
96+ --border: #23262c;
97+ --border-strong: #2e323a;
98+ --ink: #e6e4de;
99+ --muted: #7d8590;
100+ --muted-soft: #4a4f58;
101+ --accent: #8ba1e8;
102+ --accent-tint: rgba(139, 161, 232, 0.14);
103+ --accent-ink: #b9c6ee;
104+
105+ --field-bg: #101216;
106+ --surface-sunken: #101216;
107+ --surface-muted: #0f1013;
108+ --ink-soft: #c9c7c0;
109+ --row-hover: #1a1d22;
110+ --panel-sunken: #101216;
111+ --border-soft: #1f2226;
112+ --scrim: rgba(0, 0, 0, 0.75);
113+
114+ --danger: #e0906a;
115+ --danger-tint: rgba(224, 144, 106, 0.13);
116+ --danger-tint-soft: rgba(224, 144, 106, 0.07);
117+ --danger-tint-alt: rgba(224, 144, 106, 0.05);
118+ --danger-border: rgba(224, 144, 106, 0.45);
119+ --danger-border-soft: rgba(224, 144, 106, 0.3);
120+ --danger-border-alt: rgba(224, 144, 106, 0.35);
121+
122+ --warn-ink: #d4b16a;
123+ --warn-tint: rgba(212, 177, 106, 0.14);
124+ --warn-tint-soft: rgba(212, 177, 106, 0.07);
125+ --warn-border: rgba(212, 177, 106, 0.4);
126+
127+ --positive: #9db98a;
128+ --positive-ink: #b4cba3;
129+ --positive-tint: rgba(157, 185, 138, 0.13);
130+ --positive-border: rgba(157, 185, 138, 0.4);
131+
132+ --accent-strong: #7e93d9;
133+ --accent-border: #3a4152;
134+ --accent-border-strong: #2b3b63;
135+
136+ --avatar-tone-1: #937d58;
137+ --avatar-tone-3: #96606e;
138+ --avatar-tone-4: #5b93a1;
139+
140+ --violet-tint: rgba(185, 138, 151, 0.14);
141+ --violet-border: rgba(185, 138, 151, 0.4);
142+ --violet-ink: #b98a97;
143+
144+ --font-sans: system-ui, sans-serif;
145+ --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
146+ --font-display: var(--font-sans);
147+
148+ --control-h: 32px;
149+ --control-h-lg: 40px;
150+ --rule-strong: #2e323a;
151+
152+ --radius: 3px;
153+ --radius-sm: var(--radius);
154+ --radius-md: 3px;
155+ --radius-lg: 3px;
156+ --topbar-height: 56px;
157+
158+ --shadow-1: none;
159+ --shadow-2: none;
160+ --shadow-3: none;
161+
162+ --dur-fast: 120ms;
163+ --ease: ease-out;
164+}
165+
166+// Ledger, light: warm paper; hairline rules carry structure, ink carries
167+// emphasis. Tint trio stays on the proven warm palette.
168+[data-ui="ledger"] {
169+ color-scheme: light;
170+ --bg: #f6f1e6;
171+ --surface: #f6f1e6;
172+ --border: #ddd5c2;
173+ --border-strong: #221f18;
174+ --ink: #221f18;
175+ --muted: #7a7466;
176+ --muted-soft: #a39b88;
177+ --accent: #46557b;
178+ --accent-tint: #eef0f5;
179+ --accent-ink: #2f3c5c;
180+
181+ --field-bg: #f1ebdd;
182+ --surface-sunken: #efe9da;
183+ --surface-muted: #f2ecdf;
184+ --ink-soft: #4a453a;
185+ --row-hover: #efe9da;
186+ --panel-sunken: #f1ebdd;
187+ --border-soft: #cfc6b0;
188+ --scrim: rgba(34, 31, 24, 0.46);
189+
190+ --danger: #a04a24;
191+ --danger-tint: #f9ece4;
192+ --danger-tint-soft: #fdf6f2;
193+ --danger-tint-alt: #fbf1ec;
194+ --danger-border: #e8c9b8;
195+ --danger-border-soft: #eddcd3;
196+ --danger-border-alt: #ecd0bf;
197+
198+ --warn-ink: #7a5c1e;
199+ --warn-tint: #f7f0dd;
200+ --warn-tint-soft: #fdfaf1;
201+ --warn-border: #e6d7ae;
202+
203+ --positive: #5c7b46;
204+ --positive-ink: #4a6636;
205+ --positive-tint: #eef3e9;
206+ --positive-border: #d3e0c6;
207+
208+ --accent-strong: #5a6a94;
209+ --accent-border: #d6dbe8;
210+ --accent-border-strong: #d8dce6;
211+
212+ --avatar-tone-1: #7b6846;
213+ --avatar-tone-3: #7b4655;
214+ --avatar-tone-4: #46707b;
215+
216+ --violet-tint: #f1eaf7;
217+ --violet-border: #ddc4ec;
218+ --violet-ink: #6a3f82;
219+
220+ --font-sans: system-ui, sans-serif;
221+ --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
222+ --font-display: 'Newsreader', Georgia, serif;
223+
224+ --control-h: 32px;
225+ --control-h-lg: 40px;
226+ --rule-strong: #221f18;
227+
228+ --radius: 2px;
229+ --radius-sm: var(--radius);
230+ --radius-md: 2px;
231+ --radius-lg: 2px;
232+ --topbar-height: 56px;
233+
234+ --shadow-1: none;
235+ --shadow-2: none;
236+ --shadow-3: none;
237+
238+ --dur-fast: 120ms;
239+ --ease: ease-out;
240+}
241+
242+// Ledger, dark: dimmed paper ground; semantic hues lifted for contrast, tint
243+// fills translucent over the paper tone.
244+[data-ui="ledger"][data-theme="dark"] {
75 color-scheme: dark;245 color-scheme: dark;
76- --bg: #0d1117;246+ --bg: #171511;
77- --surface: #161b22;247+ --surface: #171511;
78- --border: #21262d;248+ --border: #3a352a;
79- --border-strong: #30363d;249+ --border-strong: #e8e2d4;
80- --ink: #e6edf3;250+ --ink: #e8e2d4;
81- --muted: #8b949e;251+ --muted: #97907f;
82- --muted-soft: #8b949e;252+ --muted-soft: #6e6757;
83- --accent: #8b9dd9;253+ --accent: #9db0dd;
84- --accent-tint: #1c2c4f;254+ --accent-tint: rgba(157, 176, 221, 0.14);
85- --accent-ink: #b7c4e8;255+ --accent-ink: #c3cfee;
86-256+
87- --field-bg: #10151c;257+ --field-bg: #1c1915;
88- --surface-sunken: #11161d;258+ --surface-sunken: #14120e;
89- --surface-muted: #0f141a;259+ --surface-muted: #1c1915;
90- --ink-soft: #c9d1d9;260+ --ink-soft: #cfc8b6;
91- --row-hover: #1c2129;261+ --row-hover: #201c16;
92- --panel-sunken: #141920;262+ --panel-sunken: #1b1814;
93- --border-soft: #1d232b;263+ --border-soft: #2e2a20;
94 --scrim: rgba(0, 0, 0, 0.75);264 --scrim: rgba(0, 0, 0, 0.75);
95 265
96- --danger: #d97b6e;266+ --danger: #d28a5a;
97- --danger-tint: #3a1a13;267+ --danger-tint: rgba(210, 138, 90, 0.13);
98- --danger-tint-soft: #2c221f;268+ --danger-tint-soft: rgba(210, 138, 90, 0.07);
99- --danger-tint-alt: #1d1113;269+ --danger-tint-alt: rgba(210, 138, 90, 0.05);
100- --danger-border: #57302e;270+ --danger-border: rgba(210, 138, 90, 0.45);
101- --danger-border-soft: #4a3230;271+ --danger-border-soft: rgba(210, 138, 90, 0.3);
102- --danger-border-alt: #3a2323;272+ --danger-border-alt: rgba(210, 138, 90, 0.35);
103 273
104- --warn-ink: #c69a4e;274+ --warn-ink: #d4b16a;
105- --warn-tint: #2e2410;275+ --warn-tint: rgba(212, 177, 106, 0.14);
106- --warn-tint-soft: #1e190e;276+ --warn-tint-soft: rgba(212, 177, 106, 0.07);
107- --warn-border: #57452a;277+ --warn-border: rgba(212, 177, 106, 0.4);
108 278
109- --positive: #7aa864;279+ --positive: #a3bd8b;
110- --positive-ink: #8bbd74;280+ --positive-ink: #b8cda4;
111- --positive-tint: #14200f;281+ --positive-tint: rgba(163, 189, 139, 0.13);
112- --positive-border: #2f4a26;282+ --positive-border: rgba(163, 189, 139, 0.4);
113 283
114- --accent-strong: #7688bb;284+ --accent-strong: #8497c9;
115- --accent-border: #2a3245;285+ --accent-border: #3f4658;
116- --accent-border-strong: #333c52;286+ --accent-border-strong: #2c3550;
117 287
118 --avatar-tone-1: #937d58;288 --avatar-tone-1: #937d58;
119 --avatar-tone-3: #96606e;289 --avatar-tone-3: #96606e;
120 --avatar-tone-4: #5b93a1;290 --avatar-tone-4: #5b93a1;
121 291
122- --violet-tint: #2e1f42;292+ --violet-tint: rgba(201, 163, 222, 0.14);
123- --violet-border: #513a6e;293+ --violet-border: rgba(201, 163, 222, 0.4);
124- --violet-ink: #cba8ea;294+ --violet-ink: #c9a3de;
125 295
126- --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);296+ --font-sans: system-ui, sans-serif;
127- --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.5);297+ --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
128- --shadow-3: 0 12px 40px rgba(0, 0, 0, 0.6);298+ --font-display: 'Newsreader', Georgia, serif;
299+
300+ --control-h: 32px;
301+ --control-h-lg: 40px;
302+ --rule-strong: #e8e2d4;
303+
304+ --radius: 2px;
305+ --radius-sm: var(--radius);
306+ --radius-md: 2px;
307+ --radius-lg: 2px;
308+ --topbar-height: 56px;
309+
310+ --shadow-1: none;
311+ --shadow-2: none;
312+ --shadow-3: none;
313+
314+ --dur-fast: 120ms;
315+ --ease: ease-out;
129 }316 }
130 317
131 * { box-sizing: border-box; }318 * { box-sizing: border-box; }