@tailwind base; @tailwind components; @tailwind utilities; /* Forjed display face (Outage Cut), self-hosted - the brand wordmark and section headings, matching the docs site (docs/.vitepress/theme/custom.css) and the Yerd social cards. A single heavy all-caps weight, so anything set in it uses font-weight: normal to avoid faux-bold synthesis. Exposed to Tailwind as the `font-display` utility (see tailwind.config.js). Its own metrics (ascent 750, descent 250, cap height 700) sit the caps 0.1em high in the line box; the overrides balance the space above and below so it centres beside other text. */ @font-face { font-family: "Outage Cut"; src: url("./assets/fonts/OutageCut.ttf") format("truetype"); ascent-override: 85%; descent-override: 15%; font-weight: normal; font-style: normal; font-display: swap; } /* Inter (rsms/inter v4.1, https://github.com/rsms/inter/releases/tag/v4.1), the UI face. */ @font-face { font-family: "Inter"; src: url("./assets/fonts/inter/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; } /* JetBrains Mono (v2.304, https://github.com/JetBrains/JetBrainsMono/releases/tag/v2.304), for anything a developer types. */ @font-face { font-family: "JetBrains Mono"; src: url("./assets/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; } /* JetBrains Mono (v2.304, https://github.com/JetBrains/JetBrainsMono/releases/tag/v2.304), medium weight. */ @font-face { font-family: "JetBrains Mono"; src: url("./assets/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; } /* JetBrains Mono (v2.304, https://github.com/JetBrains/JetBrainsMono/releases/tag/v2.304), semibold weight. */ @font-face { font-family: "JetBrains Mono"; src: url("./assets/fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; } @layer base { :root { /* Light palette from the "Yerd App" draft: white window, soft cool-grey sidebar (`--sidebar`), ink text on slate secondary text, and the draft blue as both the primary fill and the single accent. `--selected` is the active nav row and `--faint` the quietest text (status lines, hints). */ /* Tell the UA to render native controls (number-input spin buttons, etc.) for this theme, so their glyphs aren't dark-on-dark in dark mode. */ color-scheme: light; --background: 0 0% 100%; --foreground: 220 49% 8%; --card: 0 0% 100%; --card-foreground: 220 49% 8%; --popover: 0 0% 100%; --popover-foreground: 220 49% 8%; --primary: 226 84% 58%; --primary-foreground: 0 0% 100%; --secondary: 216 29% 97%; --secondary-foreground: 220 49% 8%; --muted: 210 40% 98%; --muted-foreground: 219 15% 41%; --accent: 216 29% 97%; --accent-foreground: 220 49% 8%; --destructive: 0 84% 60%; --destructive-foreground: 0 0% 98%; --success: 160 82% 40%; --success-foreground: 0 0% 98%; --warning: 42 80% 50%; --warning-foreground: 0 0% 9%; /* Draft accent blue. The one signal colour: active nav, focus rings, links, and the live "serving" state. Status (success/warning/destructive) still owns green/amber/red. */ --brand: 226 84% 58%; --brand-foreground: 0 0% 100%; --border: 215 27% 91%; --input: 215 27% 91%; --ring: 226 84% 58%; --sidebar: 216 29% 97%; --selected: 224 87% 94%; --faint: 218 15% 65%; --radius: 0.5rem; } .dark { /* Dark palette from the "Yerd App" draft: a blue-black window with a darker sidebar, raised surfaces for cards, and a brighter accent blue so it keeps its pop as text. `--muted` sits one step above the card surface (not a draft token) so `bg-muted` wells and code blocks still read inside cards. */ color-scheme: dark; --background: 220 23% 8%; --foreground: 216 29% 93%; --card: 220 21% 11%; --card-foreground: 216 29% 93%; --popover: 220 21% 11%; --popover-foreground: 216 29% 93%; --primary: 226 84% 58%; --primary-foreground: 0 0% 100%; --secondary: 222 22% 18%; --secondary-foreground: 216 29% 93%; --muted: 221 21% 14%; --muted-foreground: 218 13% 61%; --accent: 222 22% 18%; --accent-foreground: 216 29% 93%; /* Same bright red as the light theme so it reads on the dark surfaces in every role: text, status pips and button fills. */ --destructive: 0 84% 60%; --destructive-foreground: 0 0% 98%; --success: 160 82% 40%; --success-foreground: 144 61% 10%; --warning: 42 80% 50%; --warning-foreground: 0 0% 9%; --brand: 226 100% 68%; --brand-foreground: 0 0% 100%; --border: 222 22% 18%; --input: 222 22% 18%; --ring: 226 100% 68%; --sidebar: 223 26% 5%; --selected: 224 49% 22%; --faint: 219 14% 39%; } } @layer base { * { @apply border-border; /* Native desktop feel: text isn't selectable by default… */ -webkit-user-select: none; user-select: none; } body { /* The window is transparent (decorationless, see tauri.conf.json) so the corners can be rounded by #app; keep the body itself unpainted or it would fill those corners back in. */ @apply bg-transparent text-foreground font-sans antialiased; font-feature-settings: "rlig" 1, "calt" 1; /* Grayscale antialiasing is the key legibility fix in a macOS WebView: without it WebKit renders text with subpixel/heavier smoothing that looks muddy on the translucent surface. `optimizeLegibility` turns on kerning + ligatures to match native text rendering. */ text-rendering: optimizeLegibility; } /* The app fills the webview; the shell handles internal scrolling. */ html, body, #app { height: 100%; } /* The opaque, rounded surface - its overflow clip gives every child (the titlebar, sidebar) native macOS-style rounded corners. */ #app { @apply overflow-hidden bg-background; border-radius: 10px; } /* A maximized transparent window must meet the screen edges like a native Windows/KDE window; retaining the normal rounded shell leaves visible gaps at the corners. TitleBar toggles this class from the native window maximized state. */ html.window-maximized #app { border-radius: 0; } /* …but real inputs and value/code text stay selectable & copyable. */ input, textarea, [contenteditable="true"], code, .font-mono, .selectable { -webkit-user-select: text; user-select: text; } /* No ghost-dragging images (e.g. the logo). */ img { -webkit-user-drag: none; } /* Slim, neutral scrollbars. Light thumb on the light theme, dark thumb on the dark theme - a single hardcoded gray looked heavy on white. */ ::-webkit-scrollbar { width: 12px; height: 12px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background-color: hsl(0 0% 80%); border: 3px solid transparent; background-clip: padding-box; border-radius: 9999px; } ::-webkit-scrollbar-thumb:hover { background-color: hsl(0 0% 68%); } .dark ::-webkit-scrollbar-thumb { background-color: hsl(0 0% 32%); } .dark ::-webkit-scrollbar-thumb:hover { background-color: hsl(0 0% 44%); } /* Slimmer variant for narrow chrome (the sidebar): a narrower 10px gutter than the 12px main-content scrollbar, so the visible thumb reads thinner (~4px). It inherits the base thumb's colour and 3px transparent inset border, so the thumb still floats clear of the nav items; because that gutter only exists while the list overflows, the inset gap shows only when there's actually a scrollbar - it takes no space otherwise. */ .scrollbar-slim::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-corner { background: transparent; } }