NETFRAME_DOCS // THEMING
GITHUB

Theming

NetFrame emits every design value as a CSS custom property on :root. Override any token to retheme without touching a Sass file or rebuilding anything.

Override the palette

/* your-theme.css */
:root {
  --nf-color-primary:   #bd00ff;  /* swap green for purple */
  --nf-color-secondary: #ff6b00;  /* orange instead of magenta */
}

Scope overrides to a class to support multiple themes on one page:

.theme-purple {
  --nf-color-primary: #bd00ff;
}

Color tokens

SwatchTokenDefault ValueUsage
--nf-color-bg#000000Page background. True black.
--nf-color-surface#131313Primary surface.
--nf-color-surface-lowest#0e0e0eDeepest inset surface.
--nf-color-surface-low#1b1b1bCards, panels.
--nf-color-surface-container#1f1f1fContainer backgrounds.
--nf-color-surface-high#2a2a2aElevated surfaces.
--nf-color-surface-highest#353535Top surface layer.
--nf-color-primary#00ff00Terminal Green. Primary actions.
--nf-color-on-primary#000000Text on primary.
--nf-color-secondary#ff69a4Hot Pink. Secondary actions.
--nf-color-tertiary#bc82ffUV Violet. Tertiary accents.
--nf-color-error#ffb4abError state.
--nf-color-text#e2e2e2Primary text.
--nf-color-text-muted#c8d6c0Secondary text.
--nf-color-text-subtle#a0b098Placeholder, labels.
--nf-color-border#3b4b35Default border.
--nf-color-border-strong#84967cEmphasis border.

Typography tokens

TokenDefault ValueUsage
--nf-font-display'Space Grotesk', system-ui, sans-serifHeaders — always UPPERCASE
--nf-font-body'JetBrains Mono', monospaceBody text, inputs, UI
--nf-font-label'VT323', monospaceStatus strips, badges, lo-fi labels

Spacing tokens

TokenDefault Value
--nf-space-10.25rem (4px)
--nf-space-20.5rem (8px)
--nf-space-30.75rem (12px)
--nf-space-41rem (16px)
--nf-space-61.5rem (24px)
--nf-space-82rem (32px)
--nf-space-102.5rem (40px)
--nf-space-123rem (48px)

Motion tokens

TokenDefault ValueUsage
--nf-duration-fast80msMicro-interactions
--nf-duration-base150msStandard transitions
--nf-duration-slow250msEnter/exit animations
--nf-duration-crawl600msSpinners, sweeps
--nf-ease-sharpcubic-bezier(0.4, 0, 0.6, 1)Default UI transitions
--nf-ease-outcubic-bezier(0, 0, 0.2, 1)Exit animations
--nf-ease-glitchsteps(4, end)Glitch keyframes