/* The theme is a small set of design tokens. Components refer to tokens only, never to raw colors. Each color scheme (see the nine `:root[data-scheme="..."]` blocks below) sets every color token for light and for `.dark`. With no `data-scheme`, the Sage values in `:root` and `.dark` apply. --background the page background --foreground text and iconography on the background --card editor page, list pane, cards --card-foreground text on cards --popover floating menus and dialogs (lifted in dark) --popover-foreground text on floating surfaces --muted-foreground secondary text, metadata, placeholders --primary highlighter fill: primary buttons, active marker --primary-foreground text on the highlighter fill --destructive destructive actions and error states --destructive-foreground text on a destructive-filled surface --border hairline borders and dividers --ring the focus outline --sidebar the sidebar background --sidebar-foreground sidebar text and icons --sidebar-primary primary actions inside the sidebar --sidebar-primary-foreground text on sidebar primary actions --sidebar-accent sidebar hover and selected backgrounds --sidebar-accent-foreground text on sidebar accents --sidebar-border sidebar borders and dividers --sidebar-ring sidebar focus rings --link links and accent ink --mark text selection and search matches --active-row the selected row: sidebar item, note, palette option --active-row-foreground text on the selected row --ok connected, saved --warn offline, reconnecting --bad errors (same role as --destructive) --keycap-bg keycap chips --shadow-xs, --shadow-sm raised controls and cards: none by default --shadow-float floating surfaces only (menus, dialogs, tooltips) Fonts are declared in Rust with topcoat-font (Atkinson Hyperlegible Next for UI and body text, Atkinson Hyperlegible Mono for metadata and keycaps). */ @import "tailwindcss"; /* Scan the project's Rust sources for the Tailwind classes they use. This file is installed at the project root, so `./src` is the crate's source. */ @source "./src/**/*.rs"; /* Dark mode is opted into by putting the `dark` class on an ancestor, typically . */ @custom-variant dark (&:is(.dark *)); /* Expose the tokens as Tailwind utilities (`bg-background`, `text-primary`, `border-border`, `text-link`, `bg-mark`, ...). The indirection through plain variables on `:root` and `.dark` is what lets the values swap when the color scheme changes. */ @theme inline { --font-sans: "Atkinson Hyperlegible Next", sans-serif; --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace; --color-background: var(--background); --color-foreground: var(--foreground); --color-card: var(--card); --color-card-foreground: var(--card-foreground); --color-popover: var(--popover); --color-popover-foreground: var(--popover-foreground); --color-muted-foreground: var(--muted-foreground); --color-primary: var(--primary); --color-primary-foreground: var(--primary-foreground); --color-destructive: var(--destructive); --color-destructive-foreground: var(--destructive-foreground); --color-border: var(--border); --color-ring: var(--ring); --color-sidebar: var(--sidebar); --color-sidebar-foreground: var(--sidebar-foreground); --color-sidebar-primary: var(--sidebar-primary); --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); --color-sidebar-accent: var(--sidebar-accent); --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); --color-sidebar-border: var(--sidebar-border); --color-sidebar-ring: var(--sidebar-ring); --color-link: var(--link); --color-mark: var(--mark); --color-active-row: var(--active-row); --color-active-row-foreground: var(--active-row-foreground); --color-ok: var(--ok); --color-warn: var(--warn); --color-bad: var(--bad); --color-keycap: var(--keycap-bg); --radius-control: 6px; --radius-float: 10px; --radius-pill: 999px; --shadow-xs: var(--shadow-xs); --shadow-sm: var(--shadow-sm); --shadow-float: var(--shadow-float); } :root { --background: #f5f7f4; --foreground: #18201a; --card: #ffffff; --card-foreground: #18201a; --popover: #ffffff; --popover-foreground: #18201a; --muted-foreground: #56625a; --primary: #567752; --primary-foreground: #ffffff; --destructive: #b3261e; --destructive-foreground: #ffffff; --border: #d2dbd0; --ring: #2f6b3a; --sidebar: #e9efe6; --sidebar-foreground: #18201a; --sidebar-primary: #567752; --sidebar-primary-foreground: #ffffff; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #18201a; --sidebar-border: #d2dbd0; --sidebar-ring: #2f6b3a; --link: #2f6b3a; --mark: #ffe9a3; --active-row: #d9ebd3; --active-row-foreground: #1f3d22; --ok: #1f7a4a; --warn: #9a5b00; --bad: #b3261e; --keycap-bg: #e1e9de; --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.08); --shadow-sm: 0 0 #0000; --shadow-float: 0 8px 24px rgb(0 0 0 / 0.12); } .dark { --background: #151615; --foreground: #e6e6e1; --card: #1b1c1b; --card-foreground: #e6e6e1; --popover: #1b1c1b; --popover-foreground: #e6e6e1; --muted-foreground: #9f9f98; --primary: #4a6847; --primary-foreground: #eef4ea; --destructive: #f08a80; --destructive-foreground: #151615; --border: #2b2d2b; --ring: #a7c49f; --sidebar: #111211; --sidebar-foreground: #e6e6e1; --sidebar-primary: #4a6847; --sidebar-primary-foreground: #eef4ea; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #e6e6e1; --sidebar-border: #2b2d2b; --sidebar-ring: #a7c49f; --link: #a7c49f; --mark: #5e5216; --active-row: #233024; --active-row-foreground: #d8e6d4; --ok: #8cc79a; --warn: #f2b45a; --bad: #f08a80; --keycap-bg: #252625; --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.5); --shadow-sm: 0 0 #0000; --shadow-float: 0 8px 24px rgb(0 0 0 / 0.5); } /* Color schemes. Each palette: a light block for the default mode and a dark block for `.dark`. The `:not(.dark)` keeps the light block from winning in dark mode. */ :root[data-scheme="graphite"]:not(.dark) { --background: #f6f7f9; --foreground: #15181d; --card: #ffffff; --card-foreground: #15181d; --popover: #ffffff; --popover-foreground: #15181d; --muted-foreground: #5a616d; --primary: #f2b600; --primary-foreground: #15181d; --destructive: #b42318; --destructive-foreground: #ffffff; --border: #d5d9e0; --ring: #1d4ed8; --sidebar: #eceef2; --sidebar-foreground: #15181d; --sidebar-primary: #f2b600; --sidebar-primary-foreground: #15181d; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #15181d; --sidebar-border: #d5d9e0; --sidebar-ring: #1d4ed8; --link: #1d4ed8; --mark: #ffe9a0; --active-row: #ffe08a; --active-row-foreground: #15181d; --ok: #1e7a46; --warn: #9a5b00; --bad: #b42318; --keycap-bg: #e3e6eb; } :root[data-scheme="graphite"].dark { --background: #16181c; --foreground: #eceef2; --card: #22262d; --card-foreground: #eceef2; --popover: #22262d; --popover-foreground: #eceef2; --muted-foreground: #9aa3b2; --primary: #ffc93c; --primary-foreground: #15181d; --destructive: #ff8a80; --destructive-foreground: #16181c; --border: #343a45; --ring: #8ab4ff; --sidebar: #1d2026; --sidebar-foreground: #eceef2; --sidebar-primary: #ffc93c; --sidebar-primary-foreground: #15181d; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #eceef2; --sidebar-border: #343a45; --sidebar-ring: #8ab4ff; --link: #8ab4ff; --mark: #7a5f00; --active-row: #5c4700; --active-row-foreground: #fff3c4; --ok: #5fcf8f; --warn: #f2b45a; --bad: #ff8a80; --keycap-bg: #2b3038; } :root[data-scheme="cobalt"]:not(.dark) { --background: #fbfcff; --foreground: #0e1830; --card: #ffffff; --card-foreground: #0e1830; --popover: #ffffff; --popover-foreground: #0e1830; --muted-foreground: #4a5772; --primary: #1f4fd1; --primary-foreground: #ffffff; --destructive: #b3261e; --destructive-foreground: #ffffff; --border: #d3dcea; --ring: #1f4fd1; --sidebar: #eef3fb; --sidebar-foreground: #0e1830; --sidebar-primary: #1f4fd1; --sidebar-primary-foreground: #ffffff; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #0e1830; --sidebar-border: #d3dcea; --sidebar-ring: #1f4fd1; --link: #1f4fd1; --mark: #fff0a6; --active-row: #dce7ff; --active-row-foreground: #0b2a80; --ok: #137a4a; --warn: #9a5b00; --bad: #b3261e; --keycap-bg: #e2e9f7; } :root[data-scheme="cobalt"].dark { --background: #0c1120; --foreground: #e6ecfb; --card: #17213a; --card-foreground: #e6ecfb; --popover: #17213a; --popover-foreground: #e6ecfb; --muted-foreground: #97a4c2; --primary: #5b8bff; --primary-foreground: #0a1024; --destructive: #ff8b84; --destructive-foreground: #0c1120; --border: #2a3756; --ring: #8fb0ff; --sidebar: #121a2c; --sidebar-foreground: #e6ecfb; --sidebar-primary: #5b8bff; --sidebar-primary-foreground: #0a1024; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #e6ecfb; --sidebar-border: #2a3756; --sidebar-ring: #8fb0ff; --link: #8fb0ff; --mark: #6b5a00; --active-row: #1d2f5c; --active-row-foreground: #cfdcff; --ok: #5fd39a; --warn: #f2b45a; --bad: #ff8b84; --keycap-bg: #1f2a45; } :root[data-scheme="oxblood"]:not(.dark) { --background: #f7f5f4; --foreground: #201a19; --card: #ffffff; --card-foreground: #201a19; --popover: #ffffff; --popover-foreground: #201a19; --muted-foreground: #625a57; --primary: #8e1b22; --primary-foreground: #ffffff; --destructive: #a4161a; --destructive-foreground: #ffffff; --border: #d9d2cf; --ring: #9c2a2a; --sidebar: #eeeae8; --sidebar-foreground: #201a19; --sidebar-primary: #8e1b22; --sidebar-primary-foreground: #ffffff; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #201a19; --sidebar-border: #d9d2cf; --sidebar-ring: #9c2a2a; --link: #9c2a2a; --mark: #ffe9a3; --active-row: #f8dcd9; --active-row-foreground: #6b1218; --ok: #2d6a3e; --warn: #9a5b00; --bad: #a4161a; --keycap-bg: #e7e2e0; } :root[data-scheme="oxblood"].dark { --background: #141111; --foreground: #f1eceb; --card: #221d1d; --card-foreground: #f1eceb; --popover: #221d1d; --popover-foreground: #f1eceb; --muted-foreground: #a89f9c; --primary: #d85c63; --primary-foreground: #140e0e; --destructive: #ff8a8a; --destructive-foreground: #141111; --border: #3a3332; --ring: #f09a94; --sidebar: #1c1818; --sidebar-foreground: #f1eceb; --sidebar-primary: #d85c63; --sidebar-primary-foreground: #140e0e; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #f1eceb; --sidebar-border: #3a3332; --sidebar-ring: #f09a94; --link: #f09a94; --mark: #6e5a10; --active-row: #4a1d21; --active-row-foreground: #ffd9d6; --ok: #7ccf96; --warn: #f2b45a; --bad: #ff8a8a; --keycap-bg: #2e2828; } :root[data-scheme="teal"]:not(.dark) { --background: #f4f8f8; --foreground: #13201f; --card: #ffffff; --card-foreground: #13201f; --popover: #ffffff; --popover-foreground: #13201f; --muted-foreground: #4f6663; --primary: #0f5e5a; --primary-foreground: #ffffff; --destructive: #b42318; --destructive-foreground: #ffffff; --border: #cbdad8; --ring: #0b6b66; --sidebar: #e8f0f0; --sidebar-foreground: #13201f; --sidebar-primary: #0f5e5a; --sidebar-primary-foreground: #ffffff; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #13201f; --sidebar-border: #cbdad8; --sidebar-ring: #0b6b66; --link: #0b6b66; --mark: #ffe27a; --active-row: #cdeee9; --active-row-foreground: #073b38; --ok: #1b7340; --warn: #9a5b00; --bad: #b42318; --keycap-bg: #dde8e7; } :root[data-scheme="teal"].dark { --background: #0d1514; --foreground: #e3efed; --card: #172624; --card-foreground: #e3efed; --popover: #172624; --popover-foreground: #e3efed; --muted-foreground: #98b1ad; --primary: #3fb3a6; --primary-foreground: #06201e; --destructive: #ff8a80; --destructive-foreground: #0d1514; --border: #2a3d3b; --ring: #7fd6cc; --sidebar: #121d1c; --sidebar-foreground: #e3efed; --sidebar-primary: #3fb3a6; --sidebar-primary-foreground: #06201e; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #e3efed; --sidebar-border: #2a3d3b; --sidebar-ring: #7fd6cc; --link: #7fd6cc; --mark: #6b5a10; --active-row: #15403b; --active-row-foreground: #c4f2eb; --ok: #5fcf8f; --warn: #f2b45a; --bad: #ff8a80; --keycap-bg: #1f3431; } :root[data-scheme="plum"]:not(.dark) { --background: #f8f6fa; --foreground: #1f1a26; --card: #ffffff; --card-foreground: #1f1a26; --popover: #ffffff; --popover-foreground: #1f1a26; --muted-foreground: #5f5570; --primary: #7b2d6e; --primary-foreground: #ffffff; --destructive: #b3261e; --destructive-foreground: #ffffff; --border: #d9d1e2; --ring: #6a2fb0; --sidebar: #efeaf3; --sidebar-foreground: #1f1a26; --sidebar-primary: #7b2d6e; --sidebar-primary-foreground: #ffffff; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #1f1a26; --sidebar-border: #d9d1e2; --sidebar-ring: #6a2fb0; --link: #6a2fb0; --mark: #ffe9a3; --active-row: #f1d9ee; --active-row-foreground: #5a1a4f; --ok: #1f7a4a; --warn: #9a5b00; --bad: #b3261e; --keycap-bg: #e8e2ee; } :root[data-scheme="plum"].dark { --background: #120f16; --foreground: #ece8f2; --card: #201b27; --card-foreground: #ece8f2; --popover: #201b27; --popover-foreground: #ece8f2; --muted-foreground: #a79fb6; --primary: #d27ac4; --primary-foreground: #1a0d18; --destructive: #ff8a8a; --destructive-foreground: #120f16; --border: #3a3246; --ring: #c9a6ff; --sidebar: #1a1620; --sidebar-foreground: #ece8f2; --sidebar-primary: #d27ac4; --sidebar-primary-foreground: #1a0d18; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #ece8f2; --sidebar-border: #3a3246; --sidebar-ring: #c9a6ff; --link: #c9a6ff; --mark: #6b5a10; --active-row: #4a2446; --active-row-foreground: #f5d6ef; --ok: #7ccf96; --warn: #f2b45a; --bad: #ff8a8a; --keycap-bg: #2e2739; } :root[data-scheme="mono"]:not(.dark) { --background: #fafafa; --foreground: #111111; --card: #ffffff; --card-foreground: #111111; --popover: #ffffff; --popover-foreground: #111111; --muted-foreground: #5c5c5c; --primary: #111111; --primary-foreground: #ffffff; --destructive: #9b1c1c; --destructive-foreground: #ffffff; --border: #d8d8d8; --ring: #222222; --sidebar: #f0f0f0; --sidebar-foreground: #111111; --sidebar-primary: #111111; --sidebar-primary-foreground: #ffffff; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #111111; --sidebar-border: #d8d8d8; --sidebar-ring: #222222; --link: #222222; --mark: #fff1a8; --active-row: #e4e4e4; --active-row-foreground: #111111; --ok: #2e6b3a; --warn: #9a5b00; --bad: #9b1c1c; --keycap-bg: #e6e6e6; } :root[data-scheme="mono"].dark { --background: #0e0e0e; --foreground: #f2f2f2; --card: #1c1c1c; --card-foreground: #f2f2f2; --popover: #1c1c1c; --popover-foreground: #f2f2f2; --muted-foreground: #a3a3a3; --primary: #f2f2f2; --primary-foreground: #111111; --destructive: #ff8a8a; --destructive-foreground: #0e0e0e; --border: #333333; --ring: #e6e6e6; --sidebar: #161616; --sidebar-foreground: #f2f2f2; --sidebar-primary: #f2f2f2; --sidebar-primary-foreground: #111111; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #f2f2f2; --sidebar-border: #333333; --sidebar-ring: #e6e6e6; --link: #e6e6e6; --mark: #5e4f12; --active-row: #2e2e2e; --active-row-foreground: #f2f2f2; --ok: #7ccf96; --warn: #f2b45a; --bad: #ff8a8a; --keycap-bg: #262626; } :root[data-scheme="tangerine"]:not(.dark) { --background: #f6f7f8; --foreground: #161a1f; --card: #ffffff; --card-foreground: #161a1f; --popover: #ffffff; --popover-foreground: #161a1f; --muted-foreground: #5a626c; --primary: #f59e0b; --primary-foreground: #1a0d00; --destructive: #b3261e; --destructive-foreground: #ffffff; --border: #d6dadf; --ring: #a85200; --sidebar: #eceef0; --sidebar-foreground: #161a1f; --sidebar-primary: #f59e0b; --sidebar-primary-foreground: #1a0d00; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #161a1f; --sidebar-border: #d6dadf; --sidebar-ring: #a85200; --link: #a85200; --mark: #fff1a8; --active-row: #fde9c4; --active-row-foreground: #6b3d00; --ok: #1f7a4a; --warn: #9a5b00; --bad: #b3261e; --keycap-bg: #e3e6ea; } :root[data-scheme="tangerine"].dark { --background: #0f1113; --foreground: #eef0f2; --card: #1c2024; --card-foreground: #eef0f2; --popover: #1c2024; --popover-foreground: #eef0f2; --muted-foreground: #a4acb6; --primary: #ffb347; --primary-foreground: #1a0d00; --destructive: #ff8a8a; --destructive-foreground: #0f1113; --border: #343a42; --ring: #ffc27a; --sidebar: #16191c; --sidebar-foreground: #eef0f2; --sidebar-primary: #ffb347; --sidebar-primary-foreground: #1a0d00; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #eef0f2; --sidebar-border: #343a42; --sidebar-ring: #ffc27a; --link: #ffc27a; --mark: #5e4f12; --active-row: #4f3412; --active-row-foreground: #ffe2b8; --ok: #7ccf96; --warn: #f2b45a; --bad: #ff8a8a; --keycap-bg: #2a2f35; } :root[data-scheme="sage"]:not(.dark) { --background: #f5f7f4; --foreground: #18201a; --card: #ffffff; --card-foreground: #18201a; --popover: #ffffff; --popover-foreground: #18201a; --muted-foreground: #56625a; --primary: #567752; --primary-foreground: #ffffff; --destructive: #b3261e; --destructive-foreground: #ffffff; --border: #d2dbd0; --ring: #2f6b3a; --sidebar: #e9efe6; --sidebar-foreground: #18201a; --sidebar-primary: #567752; --sidebar-primary-foreground: #ffffff; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #18201a; --sidebar-border: #d2dbd0; --sidebar-ring: #2f6b3a; --link: #2f6b3a; --mark: #ffe9a3; --active-row: #d9ebd3; --active-row-foreground: #1f3d22; --ok: #1f7a4a; --warn: #9a5b00; --bad: #b3261e; --keycap-bg: #e1e9de; } :root[data-scheme="sage"].dark { --background: #151615; --foreground: #e6e6e1; --card: #1b1c1b; --card-foreground: #e6e6e1; --popover: #1b1c1b; --popover-foreground: #e6e6e1; --muted-foreground: #9f9f98; --primary: #4a6847; --primary-foreground: #eef4ea; --destructive: #f08a80; --destructive-foreground: #151615; --border: #2b2d2b; --ring: #a7c49f; --sidebar: #111211; --sidebar-foreground: #e6e6e1; --sidebar-primary: #4a6847; --sidebar-primary-foreground: #eef4ea; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #e6e6e1; --sidebar-border: #2b2d2b; --sidebar-ring: #a7c49f; --link: #a7c49f; --mark: #5e5216; --active-row: #233024; --active-row-foreground: #d8e6d4; --ok: #8cc79a; --warn: #f2b45a; --bad: #f08a80; --keycap-bg: #252625; } :root[data-scheme="spark"]:not(.dark) { --background: #f6f6f7; --foreground: #1a1a1d; --card: #ffffff; --card-foreground: #1a1a1d; --popover: #ffffff; --popover-foreground: #1a1a1d; --muted-foreground: #5b5b63; --primary: #ff8205; --primary-foreground: #1a0e00; --destructive: #b3261e; --destructive-foreground: #ffffff; --border: #d8d8dd; --ring: #a34c00; --sidebar: #eeeef0; --sidebar-foreground: #1a1a1d; --sidebar-primary: #ff8205; --sidebar-primary-foreground: #1a0e00; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #1a1a1d; --sidebar-border: #d8d8dd; --sidebar-ring: #a34c00; --link: #a34c00; --mark: #fff1a8; --active-row: #ffe8c7; --active-row-foreground: #753a00; --ok: #1f7a4a; --warn: #9a5b00; --bad: #b3261e; --keycap-bg: #e5e5ea; } :root[data-scheme="spark"].dark { --background: #120f0d; --foreground: #f3ebe6; --card: #211b17; --card-foreground: #f3ebe6; --popover: #211b17; --popover-foreground: #f3ebe6; --muted-foreground: #ab9d94; --primary: #ff9a2e; --primary-foreground: #1a0e00; --destructive: #ff8a8a; --destructive-foreground: #120f0d; --border: #3d322b; --ring: #ffaa5c; --sidebar: #1a1512; --sidebar-foreground: #f3ebe6; --sidebar-primary: #ff9a2e; --sidebar-primary-foreground: #1a0e00; --sidebar-accent: color-mix(in srgb, var(--sidebar) 60%, var(--border)); --sidebar-accent-foreground: #f3ebe6; --sidebar-border: #3d322b; --sidebar-ring: #ffaa5c; --link: #ffaa5c; --mark: #6b5a10; --active-row: #58320a; --active-row-foreground: #ffe0bd; --ok: #7ccf96; --warn: #f2b45a; --bad: #ff8a8a; --keycap-bg: #2e2520; } @layer base { /* Tailwind's preflight resets buttons to the default cursor; every clickable control gets the pointer. */ button:not(:disabled), [role="button"]:not([aria-disabled="true"]), [role="menuitem"], [role="menuitemradio"], [role="option"], summary, select, label[for] { cursor: pointer; } body { @apply bg-background font-sans text-foreground antialiased; font-size: 14px; line-height: 20px; } ::selection { background-color: var(--mark); color: var(--foreground); } :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } } @media (forced-colors: active) { :focus-visible { outline: 2px solid CanvasText; outline-offset: 2px; } ::selection { background-color: Highlight; color: HighlightText; } } } @layer components { /* Highlighter swipe behind the active sidebar item or selected note row. */ .marker { border-radius: 6px; color: var(--active-row-foreground); background-image: linear-gradient(transparent 15%, var(--active-row) 15% 85%, transparent 85%); background-repeat: no-repeat; background-size: 100% 100%; animation: marker-swipe 160ms ease-out; } @keyframes marker-swipe { from { background-size: 0% 100%; } to { background-size: 100% 100%; } } @media (forced-colors: active) { .marker { background: Highlight; color: HighlightText; } } /* The three swatch dots in the color scheme picker. The inline style sets each dot's light and dark colors; `.dark` picks the dark one. */ .scheme-dots { display: inline-flex; flex-shrink: 0; align-items: center; gap: 3px; } .scheme-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background-color: var(--dot-light); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) 18%, transparent); } .dark .scheme-dot { background-color: var(--dot-dark); } /* The checkmark on the chosen scheme in the picker menu. */ [role="menuitemradio"] .scheme-check { flex-shrink: 0; opacity: 0; } [role="menuitemradio"][aria-checked="true"] .scheme-check { opacity: 1; } /* A keyboard key label, such as Ctrl, K, or Esc. */ .keycap { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 20px; padding: 1px 5px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; white-space: nowrap; color: var(--muted-foreground); background-color: var(--keycap-bg); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; } /* Segmented control: a track of mutually exclusive buttons. The pressed segment (aria-pressed="true") is raised on the card surface. Both controls in the sidebar footer use these, so they share height and visual language. */ .segmented { display: inline-flex; flex-shrink: 0; align-items: center; gap: 2px; height: 28px; padding: 2px; border-radius: var(--radius-control); background-color: color-mix(in srgb, var(--foreground) 5%, transparent); } .segment { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; height: 24px; min-width: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--muted-foreground); background-color: transparent; cursor: pointer; transition: background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out; } .segment:hover { color: var(--foreground); background-color: color-mix(in srgb, var(--foreground) 6%, transparent); } .segment:active { background-color: color-mix(in srgb, var(--foreground) 12%, transparent); } .segment-icon { width: 24px; padding: 0; } /* Declared after the hover and active rules so the pressed segment keeps its look. */ .segment[aria-pressed="true"] { color: var(--foreground); background-color: var(--card); border-color: var(--border); box-shadow: var(--shadow-xs); } .segment:disabled { cursor: not-allowed; opacity: 0.5; } /* One-pixel rules between rows and panes. */ .hairline-t { border-top: 1px solid var(--border); } .hairline-b { border-bottom: 1px solid var(--border); } .hairline-l { border-left: 1px solid var(--border); } .hairline-r { border-right: 1px solid var(--border); } /* Tiny mono labels that group a list or a pane. */ .section-label { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); } } /* The browser's own clear button on search fields is drawn in its accent color (blue in dark mode). Redraw it as a muted cross, and drop the shortcut hint while there is text so the cross sits at the edge. */ input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; cursor: pointer; background-color: var(--muted-foreground); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat; } input[type="search"]::-webkit-search-cancel-button:hover { background-color: var(--foreground); } #search-input:not(:placeholder-shown) { padding-right: 2rem; } form:has(#search-input:not(:placeholder-shown)) .search-hint { display: none; } /* Checkbox of a search filter row: an empty box, filled with a tick when on. */ .filter-box { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid var(--border); border-radius: 4px; } .filter-box svg { display: none; width: 12px; height: 12px; } [aria-checked="true"] > .filter-box { border-color: transparent; background: var(--primary); color: var(--primary-foreground); } [aria-checked="true"] > .filter-box svg { display: block; }