updated 2026-11-26·5 min read
Foundations CSS Variables
Core surface hierarchy, interactive button tokens, borders, typography colors, brand accents, box shadows, and native system font stacks from NOETHER_THEME.
Core palette, typography, elevation shadow, and font stack tokens defined in src/core/themes/preinstalled/noether.ts (NOETHER_THEME) and src/index.css.
1. Surface & Background Tokens
| Token | Dark Default | Light Default | Description |
|---|
--noether-bg-app | #141414 | #f4f4f5 | Outermost application shell background. |
--noether-bg-topbar | #0d0d0d | #f4f4f5 | Window title bar and tab strip background. |
--noether-bg-ribbon | #111111 | #eceff1 | Left vertical Action Rail icon strip. |
--noether-bg-sidebar | #151515 | #f8f9fa | Left and right collapsible sidebars. |
--noether-bg-sidebar-hover | rgba(255, 255, 255, 0.05) | rgba(0, 0, 0, 0.04) | Hover state for tree items and sidebar tabs. |
--noether-bg-sidebar-active | rgba(255, 255, 255, 0.09) | rgba(0, 0, 0, 0.08) | Active state for tree items and sidebar tabs. |
--noether-bg-main | #1c1c1c | #ffffff | Primary editor and reading canvas. |
--noether-bg-card | #222222 | #ffffff | Settings cards, callouts, and info panels. |
--noether-bg-card-hover | #2a2a2a | #f4f4f5 | Hover state for interactive cards and .noether-btn. |
--noether-bg-popover | #232323 | #ffffff | Floating dropdown and context menus. |
--noether-bg-input | #181818 | #f0f0f2 | Text inputs, search boxes, and textareas. |
--noether-bg-input-focus | #222222 | #ffffff | Focused input background. |
--noether-bg-tab-active | #1c1c1c | #ffffff | Active document tab surface. |
--noether-bg-tab-hover | #232323 | #f4f4f5 | Hovered inactive tab surface. |
--noether-bg-statusbar | #1f1f1f | #f4f4f5 | Bottom status bar strip. |
When themes omit btnHoverBg or btnActiveBg, themeRegistry.generateCssVariables() applies dark/light translucent defaults; custom user accent colors derive --noether-accent-hover, --noether-accent-active, --noether-accent-subtle, and --noether-accent-gradient:
| Token | Dark Default | Light Default | Description |
|---|
--noether-btn-hover-bg | rgba(255, 255, 255, 0.05) | rgba(0, 0, 0, 0.04) | Hover tint for toolbar and icon buttons. |
--noether-btn-active-bg | rgba(255, 255, 255, 0.09) | rgba(0, 0, 0, 0.08) | Active / pressed tint for toolbar buttons and selected menu items. |
3. Border Tokens
| Token | Dark Default | Light Default | Description |
|---|
--noether-border-subtle | #202020 | #f0f0f2 | Faint divider lines and setting row separators. |
--noether-border-base | #292929 | #e4e4e7 | Standard component borders and card outlines. |
--noether-border-strong | #383838 | #cbd5e1 | Emphasized dividers, active borders, and modal edges. |
4. Typography & Text Colors
| Token | Dark Default | Light Default | Description |
|---|
--noether-text-primary | #ffffff | #09090b | Primary headings, active labels, and body copy in .ProseMirror. |
--noether-text-secondary | #dcddde | #27272a | Secondary text, file tree items, and subtitles. |
--noether-text-muted | #888888 | #52525b | Muted captions, timestamps, and hotkey hints. |
--noether-text-faint | #555555 | #71717a | Placeholders and disabled labels. |
5. Accent & Brand Palette
The default Noether brand accent is warm coral (#eb584d):
| Token | Dark Default | Light Default | Description |
|---|
--noether-accent | #eb584d | #eb584d | Primary brand accent color. |
--noether-accent-hover | #d94338 | #d94338 | Hover state for primary controls. |
--noether-accent-active | #b83228 | #b83228 | Pressed / active state for accent buttons. |
--noether-accent-subtle | rgba(235, 88, 77, 0.15) | rgba(235, 88, 77, 0.12) | Subtle background tint for active selections. |
--noether-accent-gradient | linear-gradient(135deg, #eb584d 0%, #f07167 100%) | linear-gradient(135deg, #eb584d 0%, #f07167 100%) | 2-stop gradient accent. |
6. Elevation & Box Shadows
| Token | Dark Default | Light Default | Description |
|---|
--noether-shadow-1 | 0 1px 3px 0 rgba(0, 0, 0, 0.25) | 0 1px 2px 0 rgba(0, 0, 0, 0.03) | Subtle card elevation. |
--noether-shadow-2 | 0 4px 16px 0 rgba(0, 0, 0, 0.4) | 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03) | Floating popovers and context menus. |
--noether-shadow-3 | 0 8px 32px 0 rgba(0, 0, 0, 0.6) | 0 10px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04) | Modal dialogs and overlays. |
7. System Font Stacks
/* UI and navigation controls */
--font-interface-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--font-interface: var(--font-interface-fallback);
/* Long-form document reading and writing */
--font-text-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
--font-text: var(--font-text-fallback);
/* Monospace code blocks and inline syntax */
--font-monospace-fallback: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
--font-monospace: var(--font-monospace-fallback);