lietzsche;noether
Pages

updated 2026-11-26·2 min read

About Styling in Noether

Theme token cascade from NOETHER_THEME defaults and ThemeRegistry JSON definitions to user appearance overrides and scoped extension styles.

Noether styles the workspace through --noether-* CSS custom properties applied at :root, with .theme-light and .theme-dark mode classes toggled on the root element.

1. Token Cascade & Scopes

Noether resolves theme tokens in four layers inside src/core/themes/ and src/store/settingsStore.ts:

Cascade PriorityToken Scope & Target Layer
1. Core Fallback Defaultssrc/core/themes/preinstalled/noether.ts (NOETHER_THEME) and fallback :root variables in src/index.css
2. Active Theme DefinitionThemeDefinition JSON (variables, modes.dark / modes.light, optional customCss) resolved by themeRegistry.resolveThemeTokens()
3. User Appearance OverridesSettings > Appearance accent color (deriveAccentHover / deriveAccentActive / deriveAccentSubtle), interface/text/monospace fonts, and editor font size
4. Extension StylesheetsOptional styles.css injected by ExternalExtensionLoader (<style id="noether-extension-style-<id>">) consuming --noether-* tokens

2. Dark & Light Theme Structure

NOETHER_THEME defines dark defaults under variables and light overrides under modes.light. At runtime, themeRegistry.generateCssVariables() maps those tokens onto :root style properties and toggles .theme-dark / .theme-light:

/* Core Dark Defaults (src/core/themes/preinstalled/noether.ts) */
:root {
  --noether-bg-app: #141414;
  --noether-bg-sidebar: #151515;
  --noether-bg-main: #1c1c1c;
  --noether-bg-card: #222222;
  --noether-border-base: #292929;
  --noether-text-primary: #ffffff;
  --noether-text-secondary: #dcddde;
  --noether-accent: #eb584d;
}

/* Light Mode Overrides (applied via modes.light + .theme-light) */
.theme-light {
  --noether-bg-app: #f4f4f5;
  --noether-bg-sidebar: #f8f9fa;
  --noether-bg-main: #ffffff;
  --noether-bg-card: #ffffff;
  --noether-border-base: #e4e4e7;
  --noether-text-primary: #09090b;
  --noether-text-secondary: #27272a;
  --noether-accent: #eb584d;
}

3. Native Desktop Responsiveness

Interactive controls (.noether-btn, .noether-switch, .noether-toolbar-btn, SidebarActionButton) set transition: none or transition-none so hover and click states update immediately without transition lag.

  • Foundations: Surface, border, typography, accent, shadow, and font stack tokens.
  • Window Variables: Drag regions, Action Rail, layout order, and status bar tokens.
  • Editor Variables: Document canvas, heading scales, code blocks, wikilinks, and folding classes.
  • Component Variables: Native .noether-btn, .noether-switch, input, card, and popover tokens.

Search wiki and portfolio

type to search across all entries.