diff --git a/crates/izlek-web/build.rs b/crates/izlek-web/build.rs
index 000d655..c904a96 100644
--- a/crates/izlek-web/build.rs
+++ b/crates/izlek-web/build.rs
@@ -8,6 +8,10 @@ fn main() {
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
let scss = format!("{manifest_dir}/../../style/main.scss");
println!("cargo:rerun-if-changed={scss}");
+ // Partials pulled in via @use — without these, editing a skin file would
+ // leave assets/main.css stale.
+ println!("cargo:rerun-if-changed={manifest_dir}/../../style/_instrument.scss");
+ println!("cargo:rerun-if-changed={manifest_dir}/../../style/_ledger.scss");
let css = grass::from_path(&scss, &grass::Options::default())
.unwrap_or_else(|err| panic!("failed to compile {scss}: {err}"));
diff --git a/crates/izlek-web/src/layout.rs b/crates/izlek-web/src/layout.rs
index 71234bb..01a2ec7 100644
--- a/crates/izlek-web/src/layout.rs
+++ b/crates/izlek-web/src/layout.rs
@@ -312,7 +312,7 @@ async fn root_layout(cx: &Cx, slot: Result) -> Result {
"Izlek"
diff --git a/style/_instrument.scss b/style/_instrument.scss
new file mode 100644
index 0000000..850fe5e
--- /dev/null
+++ b/style/_instrument.scss
@@ -0,0 +1,9 @@
+// Instrument UI skin — dense, neutral-cool, chrome-quiet. Tokens live in
+// main.scss; skin-specific overrides and component rules for
+// [data-ui="instrument"] land here.
+
+// --- Instrument skin: chrome (topbar, wordmark, nav) -------------------------
+
+// --- Instrument skin: fields & controls --------------------------------------
+
+// --- Instrument skin: density & spacing --------------------------------------
diff --git a/style/_ledger.scss b/style/_ledger.scss
new file mode 100644
index 0000000..5adeca7
--- /dev/null
+++ b/style/_ledger.scss
@@ -0,0 +1,7 @@
+// Ledger UI skin — warm paper, hairline rules, serif display (Newsreader).
+// Tokens live in main.scss; skin-specific overrides and component rules for
+// [data-ui="ledger"] land here.
+
+// --- Ledger skin: paper & typography -----------------------------------------
+
+// --- Ledger skin: rules & ornaments ------------------------------------------
diff --git a/style/main.scss b/style/main.scss
index 9c19d41..2ddb58b 100644
--- a/style/main.scss
+++ b/style/main.scss
@@ -1,25 +1,39 @@
-// Design tokens taken from the Izlek artboards.
-:root {
+// Design tokens — two design languages selected by :
+//
+// instrument dense, neutral-cool tool (the default; the bare :root in the
+// first block doubles as its light set and as a fallback for any
+// document that somehow reaches this stylesheet without data-ui)
+// ledger warm paper, hairline rules, serif display face
+//
+// data-theme="dark" (settings.rs SaveProfileForm.theme) flips either language.
+// Component rules below read only these custom properties; the per-UI skins
+// (_instrument.scss, _ledger.scss) add overrides on top.
+@use "instrument";
+@use "ledger";
+
+// Instrument, light: warm-gray ground, quiet borders, shared accent family.
+:root,
+[data-ui="instrument"] {
color-scheme: light;
- --bg: #f7f6f2;
- --surface: #fffefb;
- --border: #e7e4dc;
- --border-strong: #e0ddd4;
- --ink: #1c1b18;
- --muted: #6f6b63;
- --muted-soft: #726d61;
+ --bg: #f2f2f0;
+ --surface: #fbfbfa;
+ --border: #dcdcd8;
+ --border-strong: #d0d0cb;
+ --ink: #1a1b1d;
+ --muted: #6b7078;
+ --muted-soft: #6b7078;
--accent: #46557b;
--accent-tint: #eef0f5;
--accent-ink: #2f3c5c;
- --field-bg: #faf9f6;
- --surface-sunken: #f1efe8;
- --surface-muted: #faf9f4;
- --ink-soft: #3d3a34;
- --row-hover: #f3f1ea;
- --panel-sunken: #f2f0ea;
- --border-soft: #d5d1c7;
- --scrim: rgba(28, 27, 24, 0.46);
+ --field-bg: #f5f5f3;
+ --surface-sunken: #e9e9e7;
+ --surface-muted: #f5f5f3;
+ --ink-soft: #3d4045;
+ --row-hover: #ececea;
+ --panel-sunken: #eeeeec;
+ --border-soft: #d3d3ce;
+ --scrim: rgba(26, 27, 29, 0.46);
--danger: #a04a24;
--danger-tint: #f9ece4;
@@ -53,79 +67,252 @@
--font-sans: system-ui, sans-serif;
--font-mono: 'IBM Plex Mono', ui-monospace, monospace;
+ --font-display: var(--font-sans);
+
+ --control-h: 32px;
+ --control-h-lg: 40px;
+ --rule-strong: #d0d0cb;
- --radius: 6px;
+ --radius: 3px;
--radius-sm: var(--radius);
- --radius-md: 8px;
- --radius-lg: 12px;
+ --radius-md: 3px;
+ --radius-lg: 3px;
--topbar-height: 56px;
- --shadow-1: 0 1px 2px rgba(28, 27, 24, 0.06);
- --shadow-2: 0 8px 24px rgba(28, 27, 24, 0.14);
- --shadow-3: 0 12px 40px rgba(28, 27, 24, 0.18);
+ --shadow-1: none;
+ --shadow-2: none;
+ --shadow-3: none;
--dur-fast: 120ms;
--ease: ease-out;
}
-// Dark, per user (settings.rs SaveProfileForm.theme). Reference class:
-// GitHub dark — neutral-cool near-black page, each layer one small,
-// low-contrast step lighter (bg < column < card), muted borders, quiet accent.
-[data-theme="dark"] {
+// Instrument, dark: near-black neutral-cool; tint fills go translucent and
+// tint borders go alpha so the ground shows through.
+[data-ui="instrument"][data-theme="dark"] {
+ color-scheme: dark;
+ --bg: #0d0e10;
+ --surface: #14161a;
+ --border: #23262c;
+ --border-strong: #2e323a;
+ --ink: #e6e4de;
+ --muted: #7d8590;
+ --muted-soft: #4a4f58;
+ --accent: #8ba1e8;
+ --accent-tint: rgba(139, 161, 232, 0.14);
+ --accent-ink: #b9c6ee;
+
+ --field-bg: #101216;
+ --surface-sunken: #101216;
+ --surface-muted: #0f1013;
+ --ink-soft: #c9c7c0;
+ --row-hover: #1a1d22;
+ --panel-sunken: #101216;
+ --border-soft: #1f2226;
+ --scrim: rgba(0, 0, 0, 0.75);
+
+ --danger: #e0906a;
+ --danger-tint: rgba(224, 144, 106, 0.13);
+ --danger-tint-soft: rgba(224, 144, 106, 0.07);
+ --danger-tint-alt: rgba(224, 144, 106, 0.05);
+ --danger-border: rgba(224, 144, 106, 0.45);
+ --danger-border-soft: rgba(224, 144, 106, 0.3);
+ --danger-border-alt: rgba(224, 144, 106, 0.35);
+
+ --warn-ink: #d4b16a;
+ --warn-tint: rgba(212, 177, 106, 0.14);
+ --warn-tint-soft: rgba(212, 177, 106, 0.07);
+ --warn-border: rgba(212, 177, 106, 0.4);
+
+ --positive: #9db98a;
+ --positive-ink: #b4cba3;
+ --positive-tint: rgba(157, 185, 138, 0.13);
+ --positive-border: rgba(157, 185, 138, 0.4);
+
+ --accent-strong: #7e93d9;
+ --accent-border: #3a4152;
+ --accent-border-strong: #2b3b63;
+
+ --avatar-tone-1: #937d58;
+ --avatar-tone-3: #96606e;
+ --avatar-tone-4: #5b93a1;
+
+ --violet-tint: rgba(185, 138, 151, 0.14);
+ --violet-border: rgba(185, 138, 151, 0.4);
+ --violet-ink: #b98a97;
+
+ --font-sans: system-ui, sans-serif;
+ --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
+ --font-display: var(--font-sans);
+
+ --control-h: 32px;
+ --control-h-lg: 40px;
+ --rule-strong: #2e323a;
+
+ --radius: 3px;
+ --radius-sm: var(--radius);
+ --radius-md: 3px;
+ --radius-lg: 3px;
+ --topbar-height: 56px;
+
+ --shadow-1: none;
+ --shadow-2: none;
+ --shadow-3: none;
+
+ --dur-fast: 120ms;
+ --ease: ease-out;
+}
+
+// Ledger, light: warm paper; hairline rules carry structure, ink carries
+// emphasis. Tint trio stays on the proven warm palette.
+[data-ui="ledger"] {
+ color-scheme: light;
+ --bg: #f6f1e6;
+ --surface: #f6f1e6;
+ --border: #ddd5c2;
+ --border-strong: #221f18;
+ --ink: #221f18;
+ --muted: #7a7466;
+ --muted-soft: #a39b88;
+ --accent: #46557b;
+ --accent-tint: #eef0f5;
+ --accent-ink: #2f3c5c;
+
+ --field-bg: #f1ebdd;
+ --surface-sunken: #efe9da;
+ --surface-muted: #f2ecdf;
+ --ink-soft: #4a453a;
+ --row-hover: #efe9da;
+ --panel-sunken: #f1ebdd;
+ --border-soft: #cfc6b0;
+ --scrim: rgba(34, 31, 24, 0.46);
+
+ --danger: #a04a24;
+ --danger-tint: #f9ece4;
+ --danger-tint-soft: #fdf6f2;
+ --danger-tint-alt: #fbf1ec;
+ --danger-border: #e8c9b8;
+ --danger-border-soft: #eddcd3;
+ --danger-border-alt: #ecd0bf;
+
+ --warn-ink: #7a5c1e;
+ --warn-tint: #f7f0dd;
+ --warn-tint-soft: #fdfaf1;
+ --warn-border: #e6d7ae;
+
+ --positive: #5c7b46;
+ --positive-ink: #4a6636;
+ --positive-tint: #eef3e9;
+ --positive-border: #d3e0c6;
+
+ --accent-strong: #5a6a94;
+ --accent-border: #d6dbe8;
+ --accent-border-strong: #d8dce6;
+
+ --avatar-tone-1: #7b6846;
+ --avatar-tone-3: #7b4655;
+ --avatar-tone-4: #46707b;
+
+ --violet-tint: #f1eaf7;
+ --violet-border: #ddc4ec;
+ --violet-ink: #6a3f82;
+
+ --font-sans: system-ui, sans-serif;
+ --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
+ --font-display: 'Newsreader', Georgia, serif;
+
+ --control-h: 32px;
+ --control-h-lg: 40px;
+ --rule-strong: #221f18;
+
+ --radius: 2px;
+ --radius-sm: var(--radius);
+ --radius-md: 2px;
+ --radius-lg: 2px;
+ --topbar-height: 56px;
+
+ --shadow-1: none;
+ --shadow-2: none;
+ --shadow-3: none;
+
+ --dur-fast: 120ms;
+ --ease: ease-out;
+}
+
+// Ledger, dark: dimmed paper ground; semantic hues lifted for contrast, tint
+// fills translucent over the paper tone.
+[data-ui="ledger"][data-theme="dark"] {
color-scheme: dark;
- --bg: #0d1117;
- --surface: #161b22;
- --border: #21262d;
- --border-strong: #30363d;
- --ink: #e6edf3;
- --muted: #8b949e;
- --muted-soft: #8b949e;
- --accent: #8b9dd9;
- --accent-tint: #1c2c4f;
- --accent-ink: #b7c4e8;
-
- --field-bg: #10151c;
- --surface-sunken: #11161d;
- --surface-muted: #0f141a;
- --ink-soft: #c9d1d9;
- --row-hover: #1c2129;
- --panel-sunken: #141920;
- --border-soft: #1d232b;
+ --bg: #171511;
+ --surface: #171511;
+ --border: #3a352a;
+ --border-strong: #e8e2d4;
+ --ink: #e8e2d4;
+ --muted: #97907f;
+ --muted-soft: #6e6757;
+ --accent: #9db0dd;
+ --accent-tint: rgba(157, 176, 221, 0.14);
+ --accent-ink: #c3cfee;
+
+ --field-bg: #1c1915;
+ --surface-sunken: #14120e;
+ --surface-muted: #1c1915;
+ --ink-soft: #cfc8b6;
+ --row-hover: #201c16;
+ --panel-sunken: #1b1814;
+ --border-soft: #2e2a20;
--scrim: rgba(0, 0, 0, 0.75);
- --danger: #d97b6e;
- --danger-tint: #3a1a13;
- --danger-tint-soft: #2c221f;
- --danger-tint-alt: #1d1113;
- --danger-border: #57302e;
- --danger-border-soft: #4a3230;
- --danger-border-alt: #3a2323;
+ --danger: #d28a5a;
+ --danger-tint: rgba(210, 138, 90, 0.13);
+ --danger-tint-soft: rgba(210, 138, 90, 0.07);
+ --danger-tint-alt: rgba(210, 138, 90, 0.05);
+ --danger-border: rgba(210, 138, 90, 0.45);
+ --danger-border-soft: rgba(210, 138, 90, 0.3);
+ --danger-border-alt: rgba(210, 138, 90, 0.35);
- --warn-ink: #c69a4e;
- --warn-tint: #2e2410;
- --warn-tint-soft: #1e190e;
- --warn-border: #57452a;
+ --warn-ink: #d4b16a;
+ --warn-tint: rgba(212, 177, 106, 0.14);
+ --warn-tint-soft: rgba(212, 177, 106, 0.07);
+ --warn-border: rgba(212, 177, 106, 0.4);
- --positive: #7aa864;
- --positive-ink: #8bbd74;
- --positive-tint: #14200f;
- --positive-border: #2f4a26;
+ --positive: #a3bd8b;
+ --positive-ink: #b8cda4;
+ --positive-tint: rgba(163, 189, 139, 0.13);
+ --positive-border: rgba(163, 189, 139, 0.4);
- --accent-strong: #7688bb;
- --accent-border: #2a3245;
- --accent-border-strong: #333c52;
+ --accent-strong: #8497c9;
+ --accent-border: #3f4658;
+ --accent-border-strong: #2c3550;
--avatar-tone-1: #937d58;
--avatar-tone-3: #96606e;
--avatar-tone-4: #5b93a1;
- --violet-tint: #2e1f42;
- --violet-border: #513a6e;
- --violet-ink: #cba8ea;
+ --violet-tint: rgba(201, 163, 222, 0.14);
+ --violet-border: rgba(201, 163, 222, 0.4);
+ --violet-ink: #c9a3de;
- --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
- --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.5);
- --shadow-3: 0 12px 40px rgba(0, 0, 0, 0.6);
+ --font-sans: system-ui, sans-serif;
+ --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
+ --font-display: 'Newsreader', Georgia, serif;
+
+ --control-h: 32px;
+ --control-h-lg: 40px;
+ --rule-strong: #e8e2d4;
+
+ --radius: 2px;
+ --radius-sm: var(--radius);
+ --radius-md: 2px;
+ --radius-lg: 2px;
+ --topbar-height: 56px;
+
+ --shadow-1: none;
+ --shadow-2: none;
+ --shadow-3: none;
+
+ --dur-fast: 120ms;
+ --ease: ease-out;
}
* { box-sizing: border-box; }