348 lines
12 KiB
CSS
348 lines
12 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "shadcn/tailwind.css";
|
|
@import "@uiw/react-md-editor/markdown-editor.css";
|
|
@import "@uiw/react-markdown-preview/markdown.css";
|
|
|
|
/* "dark:" must be true for every dark-surfaced theme, not just .dark --
|
|
Ocean is a second dark look, so both classes turn on dark utilities. */
|
|
@custom-variant dark (&:is(.dark *, .ocean *));
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--font-sans: var(--font-sans);
|
|
--font-mono: var(--font-mono);
|
|
--font-heading: var(--font-heading);
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar: var(--sidebar);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-ring: var(--ring);
|
|
--color-input: var(--input);
|
|
--color-border: var(--border);
|
|
--color-destructive: var(--destructive);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-card: var(--card);
|
|
/* One more surface: the "lane" behind a category's cards -- sits between
|
|
the page background and the card, so cards read as objects resting on a
|
|
tray instead of floating on the page. */
|
|
--color-lane: var(--lane);
|
|
--radius-sm: calc(var(--radius) * 0.6);
|
|
--radius-md: calc(var(--radius) * 0.8);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) * 1.4);
|
|
--radius-2xl: calc(var(--radius) * 1.8);
|
|
--radius-3xl: calc(var(--radius) * 2.2);
|
|
--radius-4xl: calc(var(--radius) * 2.6);
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
Themes
|
|
The app ships four looks, chosen via the theme picker (next-themes):
|
|
default -- calm, cool neutral light theme (the safe, focused one)
|
|
sunset -- warm paper + persimmon accent, a cozier light theme
|
|
dark -- deep charcoal with an indigo accent
|
|
ocean -- deep blue-green night theme with a seafoam accent
|
|
Each is a complete token set; components only ever use tokens, so adding
|
|
a fifth theme later is just another block like these.
|
|
--------------------------------------------------------------------------- */
|
|
|
|
:root,
|
|
.theme-default {
|
|
color-scheme: light;
|
|
--background: oklch(0.985 0.002 260);
|
|
--foreground: oklch(0.235 0.02 265);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.235 0.02 265);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.235 0.02 265);
|
|
/* Single calm accent (indigo) for interactive chrome -- buttons, active
|
|
nav, focus rings -- kept deliberately separate from the curated vibrant
|
|
Group palette in lib/colors.ts so the group colors stay the only
|
|
"loud" color on screen. */
|
|
--primary: oklch(0.53 0.2 272);
|
|
--primary-foreground: oklch(0.98 0.01 274);
|
|
--secondary: oklch(0.955 0.004 260);
|
|
--secondary-foreground: oklch(0.31 0.02 265);
|
|
--muted: oklch(0.95 0.004 260);
|
|
--muted-foreground: oklch(0.52 0.02 265);
|
|
--accent: oklch(0.95 0.022 272);
|
|
--accent-foreground: oklch(0.35 0.12 272);
|
|
--destructive: oklch(0.58 0.21 27);
|
|
--border: oklch(0.905 0.004 260);
|
|
--input: oklch(0.885 0.004 260);
|
|
--ring: oklch(0.58 0.15 272);
|
|
--lane: oklch(0.95 0.005 260);
|
|
--chart-1: oklch(0.87 0 0);
|
|
--chart-2: oklch(0.556 0 0);
|
|
--chart-3: oklch(0.439 0 0);
|
|
--chart-4: oklch(0.371 0 0);
|
|
--chart-5: oklch(0.269 0 0);
|
|
--radius: 0.75rem;
|
|
--sidebar: oklch(0.975 0.003 260);
|
|
--sidebar-foreground: oklch(0.235 0.02 265);
|
|
--sidebar-primary: oklch(0.53 0.2 272);
|
|
--sidebar-primary-foreground: oklch(0.98 0.01 274);
|
|
--sidebar-accent: oklch(0.95 0.022 272);
|
|
--sidebar-accent-foreground: oklch(0.35 0.12 272);
|
|
--sidebar-border: oklch(0.905 0.004 260);
|
|
--sidebar-ring: oklch(0.58 0.15 272);
|
|
}
|
|
|
|
.dark {
|
|
color-scheme: dark;
|
|
--background: oklch(0.175 0.012 265);
|
|
--foreground: oklch(0.93 0.01 265);
|
|
--card: oklch(0.22 0.013 265);
|
|
--card-foreground: oklch(0.93 0.01 265);
|
|
--popover: oklch(0.23 0.014 265);
|
|
--popover-foreground: oklch(0.93 0.01 265);
|
|
--primary: oklch(0.7 0.14 272);
|
|
--primary-foreground: oklch(0.16 0.04 272);
|
|
--secondary: oklch(0.27 0.012 265);
|
|
--secondary-foreground: oklch(0.93 0.01 265);
|
|
--muted: oklch(0.26 0.013 265);
|
|
--muted-foreground: oklch(0.68 0.02 265);
|
|
--accent: oklch(0.31 0.04 272);
|
|
--accent-foreground: oklch(0.9 0.03 272);
|
|
--destructive: oklch(0.68 0.19 24);
|
|
--border: oklch(1 0 0 / 10%);
|
|
--input: oklch(1 0 0 / 14%);
|
|
--ring: oklch(0.68 0.14 272);
|
|
--lane: oklch(1 0 0 / 5%);
|
|
--chart-1: oklch(0.87 0 0);
|
|
--chart-2: oklch(0.556 0 0);
|
|
--chart-3: oklch(0.439 0 0);
|
|
--chart-4: oklch(0.371 0 0);
|
|
--chart-5: oklch(0.269 0 0);
|
|
--radius: 0.75rem;
|
|
--sidebar: oklch(0.205 0.013 265);
|
|
--sidebar-foreground: oklch(0.93 0.01 265);
|
|
--sidebar-primary: oklch(0.7 0.14 272);
|
|
--sidebar-primary-foreground: oklch(0.16 0.04 272);
|
|
--sidebar-accent: oklch(0.31 0.04 272);
|
|
--sidebar-accent-foreground: oklch(0.9 0.03 272);
|
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
--sidebar-ring: oklch(0.68 0.14 272);
|
|
}
|
|
|
|
.theme-sunset {
|
|
color-scheme: light;
|
|
--background: oklch(0.968 0.016 75);
|
|
--foreground: oklch(0.27 0.032 52);
|
|
--card: oklch(0.988 0.008 80);
|
|
--card-foreground: oklch(0.27 0.032 52);
|
|
--popover: oklch(0.99 0.007 80);
|
|
--popover-foreground: oklch(0.27 0.032 52);
|
|
/* Persimmon -- warm enough to feel like part of the paper, saturated
|
|
enough to stay unmistakably "the accent". */
|
|
--primary: oklch(0.58 0.19 42);
|
|
--primary-foreground: oklch(0.98 0.01 60);
|
|
--secondary: oklch(0.945 0.02 72);
|
|
--secondary-foreground: oklch(0.32 0.05 50);
|
|
--muted: oklch(0.938 0.02 72);
|
|
--muted-foreground: oklch(0.54 0.045 58);
|
|
--accent: oklch(0.928 0.035 62);
|
|
--accent-foreground: oklch(0.36 0.11 44);
|
|
--destructive: oklch(0.57 0.21 25);
|
|
--border: oklch(0.89 0.022 72);
|
|
--input: oklch(0.865 0.024 72);
|
|
--ring: oklch(0.6 0.16 44);
|
|
--lane: oklch(0.942 0.018 72);
|
|
--chart-1: oklch(0.79 0.12 58);
|
|
--chart-2: oklch(0.66 0.14 48);
|
|
--chart-3: oklch(0.53 0.13 42);
|
|
--chart-4: oklch(0.42 0.1 52);
|
|
--chart-5: oklch(0.31 0.07 58);
|
|
/* Slightly rounder than the default theme -- a touch softer overall. */
|
|
--radius: 0.9rem;
|
|
--sidebar: oklch(0.958 0.013 75);
|
|
--sidebar-foreground: oklch(0.27 0.032 52);
|
|
--sidebar-primary: oklch(0.58 0.19 42);
|
|
--sidebar-primary-foreground: oklch(0.98 0.01 60);
|
|
--sidebar-accent: oklch(0.928 0.035 62);
|
|
--sidebar-accent-foreground: oklch(0.36 0.11 44);
|
|
--sidebar-border: oklch(0.89 0.022 72);
|
|
--sidebar-ring: oklch(0.6 0.16 44);
|
|
}
|
|
|
|
.ocean {
|
|
color-scheme: dark;
|
|
--background: oklch(0.2 0.035 224);
|
|
--foreground: oklch(0.92 0.02 215);
|
|
--card: oklch(0.245 0.04 220);
|
|
--card-foreground: oklch(0.92 0.02 215);
|
|
--popover: oklch(0.255 0.042 218);
|
|
--popover-foreground: oklch(0.92 0.02 215);
|
|
/* Seafoam -- a cool, luminous accent that reads "water at night" against
|
|
the deep blue-green surfaces without screaming. */
|
|
--primary: oklch(0.76 0.11 192);
|
|
--primary-foreground: oklch(0.21 0.05 200);
|
|
--secondary: oklch(0.295 0.042 222);
|
|
--secondary-foreground: oklch(0.92 0.02 215);
|
|
--muted: oklch(0.285 0.042 222);
|
|
--muted-foreground: oklch(0.7 0.03 215);
|
|
--accent: oklch(0.33 0.05 214);
|
|
--accent-foreground: oklch(0.9 0.03 192);
|
|
--destructive: oklch(0.7 0.17 25);
|
|
--border: oklch(1 0 0 / 10%);
|
|
--input: oklch(1 0 0 / 14%);
|
|
--ring: oklch(0.72 0.11 192);
|
|
--lane: oklch(1 0 0 / 6%);
|
|
--chart-1: oklch(0.76 0.1 192);
|
|
--chart-2: oklch(0.63 0.11 200);
|
|
--chart-3: oklch(0.5 0.11 215);
|
|
--chart-4: oklch(0.4 0.1 228);
|
|
--chart-5: oklch(0.3 0.08 240);
|
|
--radius: 0.8rem;
|
|
--sidebar: oklch(0.225 0.042 220);
|
|
--sidebar-foreground: oklch(0.92 0.02 215);
|
|
--sidebar-primary: oklch(0.76 0.11 192);
|
|
--sidebar-primary-foreground: oklch(0.21 0.05 200);
|
|
--sidebar-accent: oklch(0.33 0.05 214);
|
|
--sidebar-accent-foreground: oklch(0.9 0.03 192);
|
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
--sidebar-ring: oklch(0.72 0.11 192);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
/* Gentle, calm type for a tool that sits on screen all day. */
|
|
font-feature-settings: "cv02", "cv03", "cv04", "cv11";
|
|
letter-spacing: -0.006em;
|
|
}
|
|
/* Headings use the display face (see --font-heading / Figtree). */
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
letter-spacing: -0.018em;
|
|
}
|
|
/* Smooth, low-key hover/selection feel: fade color changes instead of
|
|
snapping. Components that set their own transition-* utility override
|
|
this (utilities win on specificity). */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
transition:
|
|
background-color 200ms ease,
|
|
border-color 200ms ease,
|
|
color 200ms ease,
|
|
fill 200ms ease,
|
|
stroke 200ms ease;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
transition: none !important;
|
|
animation: none !important;
|
|
}
|
|
}
|
|
::selection {
|
|
background: color-mix(in srgb, var(--ring) 28%, transparent);
|
|
}
|
|
/* Quiet scrollbars that match the theme. */
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: color-mix(in srgb, var(--foreground) 22%, transparent) transparent;
|
|
}
|
|
*::-webkit-scrollbar {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
*::-webkit-scrollbar-track,
|
|
*::-webkit-scrollbar-corner {
|
|
background: transparent;
|
|
}
|
|
*::-webkit-scrollbar-thumb {
|
|
background: color-mix(in srgb, var(--foreground) 20%, transparent);
|
|
border: 3px solid transparent;
|
|
border-radius: 999px;
|
|
background-clip: padding-box;
|
|
}
|
|
*::-webkit-scrollbar-thumb:hover {
|
|
background: color-mix(in srgb, var(--foreground) 32%, transparent);
|
|
background-clip: padding-box;
|
|
}
|
|
}
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
Markdown editor / preview (third-party CSS) -- fit the theme's tokens and
|
|
the app's type scale so notes blend into dialogs instead of looking
|
|
pasted in.
|
|
--------------------------------------------------------------------------- */
|
|
.wmde-markdown {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.875rem;
|
|
letter-spacing: -0.006em;
|
|
}
|
|
.w-md-editor {
|
|
--md-editor-font-family: var(--font-sans);
|
|
font-size: 0.875rem;
|
|
color: var(--foreground);
|
|
background: var(--card);
|
|
border-color: var(--border);
|
|
box-shadow: none;
|
|
}
|
|
.w-md-editor .w-md-editor-toolbar {
|
|
background: color-mix(in srgb, var(--foreground) 5%, transparent);
|
|
border-color: var(--border);
|
|
}
|
|
.w-md-editor-toolbar-item,
|
|
.w-md-editor-toolbar-item-icon {
|
|
color: var(--muted-foreground);
|
|
}
|
|
.w-md-editor-toolbar-item-active,
|
|
.w-md-editor-toolbar-item-active .w-md-editor-toolbar-item-icon {
|
|
color: var(--foreground);
|
|
}
|
|
.w-md-editor-text,
|
|
.w-md-editor-text-pre,
|
|
.w-md-editor-text-input {
|
|
color: var(--foreground);
|
|
}
|
|
.w-md-editor-text-input::placeholder {
|
|
color: var(--muted-foreground);
|
|
}
|
|
/* Dark-surfaced themes (Dark, Ocean) -- the editor's stock CSS is
|
|
light-only, so override it where we render with data-color-mode="dark". */
|
|
[data-color-mode="dark"] .w-md-editor {
|
|
background: var(--card);
|
|
border-color: var(--border);
|
|
}
|
|
[data-color-mode="dark"] .w-md-editor .w-md-editor-toolbar {
|
|
background: color-mix(in srgb, var(--foreground) 7%, transparent);
|
|
border-color: var(--border);
|
|
}
|
|
[data-color-mode="dark"] .w-md-editor .w-md-editor-text,
|
|
[data-color-mode="dark"] .w-md-editor .w-md-editor-text-pre,
|
|
[data-color-mode="dark"] .w-md-editor .w-md-editor-text-input {
|
|
color: var(--foreground);
|
|
background: transparent;
|
|
}
|