diff --git a/src/styles/index.css b/src/styles/index.css index af04f2de..5ae69f66 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -1,29 +1,16 @@ @import 'tailwindcss'; @import './tokens.css'; -/* - 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; -} - +html, body, #root { height: 100%; } body { - margin: 0; - min-height: 100dvh; + background: var(--color-bg); + color: var(--color-ink); + font-family: var(--font-sans); + -webkit-font-smoothing: antialiased; } -#root { - min-height: 100dvh; -} +.svg-canvas [data-state='current'] { fill: var(--color-accent) !important; fill-opacity: 0.85 !important; } +.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); } diff --git a/src/styles/tokens.css b/src/styles/tokens.css index 9f57d0b2..428a5e6d 100644 --- a/src/styles/tokens.css +++ b/src/styles/tokens.css @@ -1,19 +1,27 @@ -/* - Design tokens — imported by index.css via @import. - Extend @theme here when implementing the design system. - Source of truth for colors, spacing, typography scales. -*/ +:root { + --color-bg: #fbf9f5; + --color-surface: #ffffff; + --color-surface-strong: #f4efe6; + --color-ink: #1f1b16; + --color-ink-muted: #6b6359; + --color-border: #e7e0d2; -@theme { - /* Typography */ - --font-body: 'Inter', system-ui, sans-serif; - --font-heading: 'Fraunces', Georgia, serif; + --color-accent: #b85a3f; + --color-accent-strong: #9c4831; + --color-danger: #c0392b; + --color-danger-strong: #962c21; - /* Clinical-warm observation accent palette (6 tones) */ - --color-obs-1: hsl(15 60% 50%); /* terracotta */ - --color-obs-2: hsl(150 25% 45%); /* sauge */ - --color-obs-3: hsl(185 50% 35%); /* bleu canard */ - --color-obs-4: hsl(38 70% 50%); /* ambre */ - --color-obs-5: hsl(290 30% 40%); /* prune */ - --color-obs-6: hsl(45 55% 45%); /* ocre */ + --obs-accent-0: #b85a3f; + --obs-accent-1: #6b8e6b; + --obs-accent-2: #3f7d8c; + --obs-accent-3: #b88a3f; + --obs-accent-4: #7a3f7d; + --obs-accent-5: #8a6b3f; + + --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; }