mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
c23df4db43
Extracts the UI 2.0 visual refresh and the HTML-render annotate feature onto main, standalone (no daemon). Faithful copy of feat's UI/HTML logic with the standalone transport kept.
125 lines
5.0 KiB
CSS
125 lines
5.0 KiB
CSS
/* Simple — faithful port of the DiffKit goal-prototype palette (shadcn "neutral" base).
|
|
*
|
|
* The UI 2.0 reference scheme. Unlike most themes, this one pins EXPLICIT surface
|
|
* layers (--surface-0/1/2) instead of letting them derive from --muted, because the
|
|
* prototype's elevation steps UP from the card (card 0.205 → surface 0.21/0.245/0.28)
|
|
* while the global color-mix derivation would step DOWN. The explicit values preserve
|
|
* the prototype's layered card/row/hover look.
|
|
*
|
|
* Polarity note: the prototype is light-default (:root) + .dark override. Plannotator
|
|
* is dark-default (.theme-x) + .theme-x.light override. So the prototype's `.dark`
|
|
* block maps to `.theme-simple` and its `:root` block maps to `.theme-simple.light`.
|
|
*/
|
|
.theme-simple {
|
|
--background: oklch(0.141 0.005 285.823);
|
|
--foreground: oklch(0.985 0 0);
|
|
--card: oklch(0.205 0.006 285.885);
|
|
--card-foreground: oklch(0.985 0 0);
|
|
--popover: oklch(0.225 0.006 285.885);
|
|
--popover-foreground: oklch(0.985 0 0);
|
|
--primary: oklch(0.985 0 0);
|
|
--primary-foreground: oklch(0.21 0.006 285.885);
|
|
--secondary: oklch(0.274 0.006 286.033);
|
|
--secondary-foreground: oklch(0.985 0 0);
|
|
--muted: oklch(0.16 0.005 285.823);
|
|
--muted-foreground: oklch(0.705 0.015 286.067);
|
|
--accent: oklch(0.274 0.006 286.033);
|
|
--accent-foreground: oklch(0.985 0 0);
|
|
/* --accent is a low-contrast neutral gray here, so the comment-annotation
|
|
* label/buttons use a legible blue instead (other themes inherit --accent). */
|
|
--annotation-comment: oklch(0.62 0.19 256);
|
|
--destructive: oklch(0.396 0.141 25.723);
|
|
--destructive-foreground: oklch(0.637 0.237 25.331);
|
|
--border: oklch(0.274 0.006 286.033);
|
|
--input: oklch(0.274 0.006 286.033);
|
|
--ring: oklch(0.442 0.017 285.786);
|
|
|
|
/* Plannotator tokens the prototype doesn't define (tuned to this palette) */
|
|
--success: oklch(0.62 0.194 149.214);
|
|
--success-foreground: oklch(0.985 0 0);
|
|
--warning: oklch(0.75 0.15 85);
|
|
--warning-foreground: oklch(0.21 0.006 285.885);
|
|
|
|
/* Explicit elevation — the prototype's layered look (steps up from card) */
|
|
--surface-0: oklch(0.21 0.006 286.033);
|
|
--surface-1: oklch(0.245 0.006 286.033);
|
|
--surface-2: oklch(0.28 0.006 286.033);
|
|
|
|
/* Sidebar (mirrors the prototype's dark sidebar tokens) */
|
|
--sidebar: oklch(0.21 0.006 285.885);
|
|
--sidebar-foreground: oklch(0.985 0 0);
|
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.274 0.006 286.033);
|
|
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
--sidebar-border: oklch(0.274 0.006 286.033);
|
|
--sidebar-ring: oklch(0.442 0.017 285.786);
|
|
|
|
--font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;
|
|
--font-mono: "Geist Mono Variable", "SF Mono", ui-monospace, monospace;
|
|
--radius: 0.625rem;
|
|
|
|
--code-bg: oklch(0.245 0.006 286.033);
|
|
|
|
/* Prototype extras (brand + chart) — available as raw vars for future use */
|
|
--brand: oklch(0.75 0.2 150);
|
|
--brand-dev: oklch(0.8 0.17 85);
|
|
--chart-1: oklch(0.488 0.243 264.376);
|
|
--chart-2: oklch(0.696 0.17 162.48);
|
|
--chart-3: oklch(0.769 0.188 70.08);
|
|
--chart-4: oklch(0.627 0.265 303.9);
|
|
--chart-5: oklch(0.645 0.246 16.439);
|
|
}
|
|
|
|
.theme-simple.light {
|
|
--background: oklch(1 0 0);
|
|
--foreground: oklch(0.141 0.005 285.823);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.141 0.005 285.823);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.141 0.005 285.823);
|
|
--primary: oklch(0.21 0.006 285.885);
|
|
--primary-foreground: oklch(0.985 0 0);
|
|
--secondary: oklch(0.967 0.001 286.375);
|
|
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
--muted: oklch(0.967 0.001 286.375);
|
|
--muted-foreground: oklch(0.552 0.016 285.938);
|
|
--accent: oklch(0.967 0.001 286.375);
|
|
--accent-foreground: oklch(0.21 0.006 285.885);
|
|
/* Darker blue for the near-white light card (other themes inherit --accent). */
|
|
--annotation-comment: oklch(0.52 0.20 256);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--destructive-foreground: oklch(0.577 0.245 27.325);
|
|
--border: oklch(0.92 0.004 286.32);
|
|
--input: oklch(0.92 0.004 286.32);
|
|
--ring: oklch(0.871 0.006 286.286);
|
|
|
|
--success: oklch(0.62 0.194 149.214);
|
|
--success-foreground: oklch(0.985 0 0);
|
|
--warning: oklch(0.55 0.18 85);
|
|
--warning-foreground: oklch(0.141 0.005 285.823);
|
|
|
|
--surface-0: oklch(0.967 0.001 286.375);
|
|
--surface-1: oklch(0.945 0.002 286.375);
|
|
--surface-2: oklch(0.925 0.003 286.375);
|
|
|
|
--sidebar: oklch(0.985 0 0);
|
|
--sidebar-foreground: oklch(0.141 0.005 285.823);
|
|
--sidebar-primary: oklch(0.21 0.006 285.885);
|
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
--sidebar-accent: oklch(0.967 0.001 286.375);
|
|
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
|
|
--sidebar-border: oklch(0.92 0.004 286.32);
|
|
--sidebar-ring: oklch(0.871 0.006 286.286);
|
|
|
|
--code-bg: oklch(0.967 0.001 286.375);
|
|
|
|
--brand: oklch(0.68 0.2 150);
|
|
--brand-dev: oklch(0.75 0.17 85);
|
|
--chart-1: oklch(0.646 0.222 41.116);
|
|
--chart-2: oklch(0.6 0.118 184.704);
|
|
--chart-3: oklch(0.398 0.07 227.392);
|
|
--chart-4: oklch(0.828 0.189 84.429);
|
|
--chart-5: oklch(0.769 0.188 70.08);
|
|
}
|