/* Plannotator Theme System — imports all themes, provides Tailwind bridge + base styles */ /* Theme files — each defines .theme-{name} (dark) and .theme-{name}.light */ @import "./themes/plannotator.css"; @import "./themes/claude-plus.css"; @import "./themes/soft-pop.css"; @import "./themes/adwaita.css"; @import "./themes/caffeine.css"; @import "./themes/synthwave-84.css"; @import "./themes/catppuccin.css"; @import "./themes/rose-pine.css"; @import "./themes/monokai-pro.css"; @import "./themes/doom-64.css"; @import "./themes/dracula.css"; @import "./themes/gruvbox.css"; @import "./themes/kanagawa-dragon.css"; @import "./themes/kanagawa-lotus.css"; @import "./themes/kanagawa-wave.css"; @import "./themes/paulmillr.css"; @import "./themes/quantum-rose.css"; @import "./themes/solar-dusk.css"; @import "./themes/terminal.css"; @import "./themes/tokyo-night.css"; @import "./themes/tinacious.css"; @import "./themes/cursor.css"; @import "./themes/cursor-hc.css"; @import "./themes/cursor-midnight.css"; @import "./themes/everforest.css"; @import "./themes/everforest-hard.css"; @import "./themes/everforest-soft.css"; @import "./themes/nord.css"; @import "./themes/solarized.css"; @import "./themes/github.css"; @import "./themes/one-dark-pro.css"; @import "./themes/night-owl.css"; @import "./themes/ayu-dark.css"; @import "./themes/poimandres.css"; @import "./themes/material.css"; @import "./themes/vitesse.css"; @import "./themes/vesper.css"; @import "./themes/andromeeda.css"; @import "./themes/aurora-x.css"; @import "./themes/dark-plus.css"; @import "./themes/houston.css"; @import "./themes/laserwave.css"; @import "./themes/min.css"; @import "./themes/one-light.css"; @import "./themes/plastic.css"; @import "./themes/red.css"; @import "./themes/slack.css"; @import "./themes/snazzy-light.css"; @import "./themes/vitesse-black.css"; @import "./print.css"; /* Tailwind bridge — maps CSS vars to utility classes */ @theme inline { --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-primary: var(--primary); --color-primary-foreground: var(--primary-foreground); --color-secondary: var(--secondary); --color-secondary-foreground: var(--secondary-foreground); --color-muted: var(--muted); --color-muted-foreground: var(--muted-foreground); --color-accent: var(--accent); --color-accent-foreground: var(--accent-foreground); --color-destructive: var(--destructive); --color-destructive-foreground: var(--destructive-foreground); --color-success: var(--success); --color-success-foreground: var(--success-foreground); --color-warning: var(--warning); --color-warning-foreground: var(--warning-foreground); --color-border: var(--border); --color-input: var(--input); --color-ring: var(--ring); --font-sans: var(--font-sans); --font-mono: var(--font-mono); --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) + 4px); } /* Base styles — apply regardless of theme */ @layer base { * { border-color: var(--border); } } body { font-family: var(--font-sans); background: var(--background); color: var(--foreground); font-feature-settings: "ss01", "ss02", "cv01"; } /* Subtle grid background */ .bg-grid { background-image: linear-gradient(to right, oklch(0.32 0.02 260 / 0.5) 1px, transparent 1px), linear-gradient(to bottom, oklch(0.32 0.02 260 / 0.5) 1px, transparent 1px); background-size: 24px 24px; } .light .bg-grid { background-image: linear-gradient(to right, oklch(0.90 0.01 260 / 0.6) 1px, transparent 1px), linear-gradient(to bottom, oklch(0.90 0.01 260 / 0.6) 1px, transparent 1px); } /* Glow effects */ .glow-primary { box-shadow: 0 0 20px oklch(from var(--primary) l c h / 0.15), 0 0 40px oklch(from var(--primary) l c h / 0.05); } .glow-sm { box-shadow: 0 0 10px oklch(from var(--primary) l c h / 0.1); } /* ------------------------------------------------------------------ */ /* Scrollbars */ /* ------------------------------------------------------------------ */ /* * Primary scroll containers are wrapped in and styled * through the `os-theme-plannotator` theme below. Unwrapped surfaces * (third-party libraries, not-yet-migrated panels, small inline scrollers) * fall back to a thin native scrollbar. * * Transitions are color + width only — transform/opacity were removed * globally in abc952f to prevent scroll jank. DO NOT re-add them here. */ /* Native fallback for anything we haven't wrapped */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); } /* Firefox fallback */ * { scrollbar-width: thin; scrollbar-color: var(--border) transparent; } /* OverlayScrollbars theme — "os-theme-plannotator". * The library renders .os-scrollbar elements with CSS variables we can * override. Widths are 10px at rest / 14px on hover, colors are translucent * muted-foreground so they track whatever theme is active. */ .os-theme-plannotator { --os-size: 10px; --os-padding-perpendicular: 2px; --os-padding-axis: 2px; --os-track-border-radius: 8px; --os-track-bg: transparent; --os-track-bg-hover: oklch(from var(--border) l c h / 0.25); --os-track-bg-active: oklch(from var(--border) l c h / 0.4); --os-handle-border-radius: 8px; --os-handle-bg: oklch(from var(--muted-foreground) l c h / 0.28); --os-handle-bg-hover: oklch(from var(--muted-foreground) l c h / 0.55); --os-handle-bg-active: oklch(from var(--muted-foreground) l c h / 0.75); --os-handle-min-size: 40px; } /* Widen on hover — width animates via the library's internal transition. */ .os-theme-plannotator.os-scrollbar-horizontal:hover, .os-theme-plannotator.os-scrollbar-vertical:hover, .os-theme-plannotator.os-scrollbar-handle-interactive:hover { --os-size: 14px; } @media (prefers-reduced-motion: reduce) { /* Library honors autoHide: 'never' via the component option when reduced motion is on, which kills the scrollbar element's own opacity/visibility transitions. This block kills the remaining hover color + width/height transitions on the track and handle so state changes are instant. */ .os-theme-plannotator .os-scrollbar-track, .os-theme-plannotator .os-scrollbar-handle { transition: none !important; } } /* Selection */ ::selection { background: oklch(from var(--primary) l c h / 0.3); } /* Suppress all color transitions until the app has mounted and the theme is stable. Without this, the global * transition below fires on initial load — className reassignments during React mount trigger a 150ms transition from browser-default black to themed white, causing a visible flash. ThemeProvider adds .transitions-ready after mount. */ html:not(.transitions-ready) * { transition-duration: 0s !important; } /* Smooth transitions for theme switching and hover states. Only color properties — transform/opacity are handled per-component to avoid interfering with scroll compositing. */ * { transition-property: color, background-color, border-color, box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; } /* Focus states */ :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; } /* Flash highlight for annotated files in sidebar */ .file-annotation-flash { animation: file-flash 1.2s ease-out; } @keyframes file-flash { 0% { background: transparent; } 10% { background: var(--muted); } 30% { background: transparent; } 45% { background: var(--muted); } 65% { background: transparent; } 100% { background: transparent; } } /* Word-level diff markers inside modified plan-diff blocks. Emitted as / by PlanCleanDiffView's inline renderer; keep the decoration compact across line wraps via box-decoration-break: clone. */ .plan-diff-word-added, .plan-diff-word-removed { padding: 0 2px; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; } .plan-diff-word-added { background-color: color-mix(in oklab, var(--success) 20%, transparent); text-decoration: none; color: inherit; } .plan-diff-word-removed { background-color: color-mix(in oklab, var(--destructive) 15%, transparent); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--destructive) 60%, transparent); opacity: 0.75; color: inherit; } /* Inline code pills inside diff wrappers carry their own solid background which would otherwise cover the green/red tint on the surrounding /. Override the pill background so added code pills read clearly green and removed pills read clearly red-struck. */ .plan-diff-word-added code { background-color: color-mix(in oklab, var(--success) 25%, var(--muted)); } .plan-diff-word-removed code { background-color: color-mix(in oklab, var(--destructive) 20%, var(--muted)); } /* Raw HTML blocks (CommonMark Type 6) rendered via dangerouslySetInnerHTML. Minimal typography so
,
, nested lists etc. inherit sensible spacing without fighting the surrounding prose styles. */ .html-block details { border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem 0.75rem; margin: 0.5rem 0; background-color: color-mix(in oklab, var(--muted) 30%, transparent); } .html-block details[open] { padding-bottom: 0.75rem; } .html-block summary { cursor: pointer; font-weight: 500; color: var(--foreground); list-style: revert; } .html-block summary::-webkit-details-marker { color: color-mix(in oklab, var(--foreground) 60%, transparent); } .html-block details[open] > summary { margin-bottom: 0.5rem; } .html-block p { margin: 0.5rem 0; } .html-block ul, .html-block ol { margin: 0.5rem 0; padding-left: 1.5rem; } .html-block ul { list-style: disc; } .html-block ol { list-style: decimal; } .html-block blockquote { border-left: 2px solid color-mix(in oklab, var(--primary) 50%, transparent); padding-left: 1rem; margin: 0.75rem 0; color: var(--muted-foreground); font-style: italic; } .html-block code { background-color: var(--muted); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.9em; } .html-block pre { background-color: color-mix(in oklab, var(--muted) 50%, transparent); border: 1px solid color-mix(in oklab, var(--border) 30%, transparent); border-radius: 6px; padding: 0.75rem; overflow-x: auto; margin: 0.75rem 0; } .html-block pre code { background: transparent; padding: 0; } .html-block a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; } /* While the table popout dialog is mounted, drop chrome that would otherwise paint over the dialog behind it. :has() observes the dialog's presence directly — no JS, no state sync. When the dialog unmounts the selector stops matching and everything returns to natural stacking. */ body:has([data-popout="true"]) [data-annotation-panel="true"], body:has([data-popout="true"]) [data-sticky-header-lane="true"], body:has([data-popout="true"]) [data-app-header="true"], body:has([data-popout="true"]) [data-sidebar-tabs="true"], body:has([data-popout="true"]) .os-scrollbar { z-index: -1; } /* GitHub-style alerts: > [!NOTE] / [!TIP] / [!WARNING] / [!CAUTION] / [!IMPORTANT] */ .alert-note { border-left-color: #0969da; } .alert-note .alert-title { color: #0969da; } .alert-tip { border-left-color: #1a7f37; } .alert-tip .alert-title { color: #1a7f37; } .alert-warning { border-left-color: #9a6700; } .alert-warning .alert-title { color: #9a6700; } .alert-caution { border-left-color: #cf222e; } .alert-caution .alert-title { color: #cf222e; } .alert-important { border-left-color: #8250df; } .alert-important .alert-title { color: #8250df; } @media (prefers-color-scheme: dark) { .alert-note { border-left-color: #4493f8; } .alert-note .alert-title { color: #4493f8; } .alert-tip { border-left-color: #3fb950; } .alert-tip .alert-title { color: #3fb950; } .alert-warning { border-left-color: #d29922; } .alert-warning .alert-title { color: #d29922; } .alert-caution { border-left-color: #f85149; } .alert-caution .alert-title { color: #f85149; } .alert-important { border-left-color: #ab7df8; } .alert-important .alert-title { color: #ab7df8; } } /* Directive containers: :::kind ... ::: */ .directive { border-color: var(--border); background: color-mix(in srgb, var(--muted) 50%, transparent); } .directive-title { color: var(--muted-foreground); } .directive-note, .directive-info { background: color-mix(in srgb, #3b82f6 10%, transparent); border-color: color-mix(in srgb, #3b82f6 40%, transparent); } .directive-note .directive-title, .directive-info .directive-title { color: #3b82f6; } .directive-tip, .directive-success { background: color-mix(in srgb, #10b981 10%, transparent); border-color: color-mix(in srgb, #10b981 40%, transparent); } .directive-tip .directive-title, .directive-success .directive-title { color: #10b981; } .directive-warning { background: color-mix(in srgb, #f59e0b 10%, transparent); border-color: color-mix(in srgb, #f59e0b 40%, transparent); } .directive-warning .directive-title { color: #f59e0b; } .directive-danger, .directive-caution { background: color-mix(in srgb, #ef4444 10%, transparent); border-color: color-mix(in srgb, #ef4444 40%, transparent); } .directive-danger .directive-title, .directive-caution .directive-title { color: #ef4444; }