feat(styles): design tokens + svg-canvas state rules
This commit is contained in:
1 parent
afd58b386b
commit
cc5f4d077a
2 files changed
+34
-39
No files matched your search
+10
-23
@@ -1,29 +1,16 @@
|
|||||||
@import 'tailwindcss';
|
@import 'tailwindcss';
|
||||||
@import './tokens.css';
|
@import './tokens.css';
|
||||||
|
|
||||||
/*
|
html, body, #root { height: 100%; }
|
||||||
Global base styles.
|
|
||||||
Tailwind v4 uses CSS-first config — no tailwind.config.js required.
|
|
||||||
Add @plugin directives here if needed in the future.
|
|
||||||
*/
|
|
||||||
|
|
||||||
*,
|
|
||||||
*::before,
|
|
||||||
*::after {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
font-family: var(--font-body);
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
background: var(--color-bg);
|
||||||
min-height: 100dvh;
|
color: var(--color-ink);
|
||||||
|
font-family: var(--font-sans);
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
}
|
}
|
||||||
|
|
||||||
#root {
|
.svg-canvas [data-state='current'] { fill: var(--color-accent) !important; fill-opacity: 0.85 !important; }
|
||||||
min-height: 100dvh;
|
.svg-canvas [data-state='linked'] { stroke-dasharray: 4 3; stroke: var(--color-accent); fill-opacity: 0.35 !important; }
|
||||||
}
|
.svg-canvas [data-state='multi'] { fill: var(--color-accent) !important; fill-opacity: 0.65 !important; stroke: var(--color-ink); stroke-width: 1.5; }
|
||||||
|
.svg-canvas [data-bone-id] { cursor: pointer; }
|
||||||
|
.svg-canvas [data-bone-id]:hover { filter: brightness(1.05); }
|
||||||
+24
-16
@@ -1,19 +1,27 @@
|
|||||||
/*
|
:root {
|
||||||
Design tokens — imported by index.css via @import.
|
--color-bg: #fbf9f5;
|
||||||
Extend @theme here when implementing the design system.
|
--color-surface: #ffffff;
|
||||||
Source of truth for colors, spacing, typography scales.
|
--color-surface-strong: #f4efe6;
|
||||||
*/
|
--color-ink: #1f1b16;
|
||||||
|
--color-ink-muted: #6b6359;
|
||||||
|
--color-border: #e7e0d2;
|
||||||
|
|
||||||
@theme {
|
--color-accent: #b85a3f;
|
||||||
/* Typography */
|
--color-accent-strong: #9c4831;
|
||||||
--font-body: 'Inter', system-ui, sans-serif;
|
--color-danger: #c0392b;
|
||||||
--font-heading: 'Fraunces', Georgia, serif;
|
--color-danger-strong: #962c21;
|
||||||
|
|
||||||
/* Clinical-warm observation accent palette (6 tones) */
|
--obs-accent-0: #b85a3f;
|
||||||
--color-obs-1: hsl(15 60% 50%); /* terracotta */
|
--obs-accent-1: #6b8e6b;
|
||||||
--color-obs-2: hsl(150 25% 45%); /* sauge */
|
--obs-accent-2: #3f7d8c;
|
||||||
--color-obs-3: hsl(185 50% 35%); /* bleu canard */
|
--obs-accent-3: #b88a3f;
|
||||||
--color-obs-4: hsl(38 70% 50%); /* ambre */
|
--obs-accent-4: #7a3f7d;
|
||||||
--color-obs-5: hsl(290 30% 40%); /* prune */
|
--obs-accent-5: #8a6b3f;
|
||||||
--color-obs-6: hsl(45 55% 45%); /* ocre */
|
|
||||||
|
--severity-mild: #6b8e6b;
|
||||||
|
--severity-moderate: #b88a3f;
|
||||||
|
--severity-severe: #c0392b;
|
||||||
|
|
||||||
|
--font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
||||||
|
--font-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user