polish: sans-serif body font + midnight theme contrast refresh

- body font-family mono -> system sans-serif; 13px/1.5 -> 14px/1.6
- add --font-ui theme token
- midnight theme: readable muted text (#7c7c7c -> #a0a0a0, WCAG AA),
  restored muted/dim hierarchy, visible card borders, friendlier accent
- index.css @theme vars mirror themes.ts midnight (no first-paint flash)
This commit is contained in:
Jure
2026-05-18 18:17:13 +02:00
parent 62667bc8ef
commit 2250e2daf6
2 changed files with 25 additions and 21 deletions
+16 -12
View File
@@ -1,22 +1,26 @@
@import "tailwindcss";
@theme {
/* Colour vars below mirror the `midnight` theme in src/lib/themes.ts.
applyTheme() overrides these at runtime — keep them in sync so the
pre-theme initial paint matches and there is no colour flash. */
--color-bg: #0a0a0a;
--color-bg-raised: #111111;
--color-bg-hover: #1a1a1a;
--color-border: #222222;
--color-border-subtle: #1a1a1a;
--color-text: #e0e0e0;
--color-text-muted: #7c7c7c;
--color-text-dim: #797979;
--color-accent: #8b5cf6;
--color-accent-hover: #7c3aed;
--color-bg-raised: #121212;
--color-bg-hover: #1c1c1c;
--color-border: #2a2a2a;
--color-border-subtle: #1e1e1e;
--color-text: #e8e8e8;
--color-text-muted: #a0a0a0;
--color-text-dim: #6e6e6e;
--color-accent: #9d7aff;
--color-accent-hover: #8b5cf6;
--color-accent-text: #ffffff;
--color-zap: #f59e0b;
--color-zap-text: #000000;
--color-danger: #ef4444;
--color-warning: #f59e0b;
--color-success: #22c55e;
--font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
--font-mono: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
--font-reading: Georgia, "Times New Roman", "Noto Serif", serif;
}
@@ -35,9 +39,9 @@
body {
background: var(--color-bg);
color: var(--color-text);
font-family: var(--font-mono);
font-size: 13px;
line-height: 1.5;
font-family: var(--font-ui);
font-size: 14px;
line-height: 1.6;
margin: 0;
overflow: hidden;
}
+9 -9
View File
@@ -29,15 +29,15 @@ export const themes: Theme[] = [
name: "Midnight",
colors: {
bg: "#0a0a0a",
"bg-raised": "#111111",
"bg-hover": "#1a1a1a",
border: "#222222",
"border-subtle": "#1a1a1a",
text: "#e0e0e0",
"text-muted": "#7c7c7c",
"text-dim": "#797979",
accent: "#8b5cf6",
"accent-hover": "#7c3aed",
"bg-raised": "#121212",
"bg-hover": "#1c1c1c",
border: "#2a2a2a",
"border-subtle": "#1e1e1e",
text: "#e8e8e8",
"text-muted": "#a0a0a0",
"text-dim": "#6e6e6e",
accent: "#9d7aff",
"accent-hover": "#8b5cf6",
"accent-text": "#ffffff",
zap: "#f59e0b",
"zap-text": "#000000",