Skip to main content
Design tokens provide consistent visual styling across your compositions.

Color palettes

5 built-in palettes, each with 7 color slots:
import { palettes } from '@oanim/core';

const colors = palettes.dark;
// colors.primary, colors.secondary, colors.accent,
// colors.bg, colors.bgAlt, colors.text, colors.textMuted

dark

TokenValueUsage
primary#6366f1Primary accent (indigo)
secondary#8b5cf6Secondary accent (violet)
accent#06b6d4Highlight (cyan)
bg#0a0a0aMain background
bgAlt#141414Alternate background
text#f1f5f9Primary text
textMuted#94a3b8Secondary text

light

TokenValueUsage
primary#4f46e5Primary accent (indigo)
secondary#7c3aedSecondary accent (violet)
accent#0891b2Highlight (cyan)
bg#ffffffMain background
bgAlt#f8fafcAlternate background
text#0f172aPrimary text
textMuted#64748bSecondary text

midnight

TokenValueUsage
primary#818cf8Primary accent (light indigo)
secondary#a78bfaSecondary accent (light violet)
accent#22d3eeHighlight (light cyan)
bg#020617Deep dark background
bgAlt#0f172aAlternate background
text#e2e8f0Primary text
textMuted#64748bSecondary text

sunset

TokenValueUsage
primary#f97316Primary accent (orange)
secondary#f59e0bSecondary accent (amber)
accent#ef4444Highlight (red)
bg#0c0a09Warm dark background
bgAlt#1c1917Alternate background
text#fafaf9Primary text
textMuted#a8a29eSecondary text

ocean

TokenValueUsage
primary#0ea5e9Primary accent (sky blue)
secondary#06b6d4Secondary accent (cyan)
accent#14b8a6Highlight (teal)
bg#0c1222Deep blue background
bgAlt#162032Alternate background
text#e0f2fePrimary text
textMuted#7dd3fcSecondary text

Font stacks

Pre-configured font family strings for common pairings:
import { fonts } from '@oanim/core';

Heading fonts

KeyValue
fonts.heading.interInter, sans-serif
fonts.heading.instrumentSerif"Instrument Serif", serif
fonts.heading.spaceGrotesk"Space Grotesk", sans-serif
fonts.heading.dmSans"DM Sans", sans-serif

Body fonts

KeyValue
fonts.body.interInter, sans-serif
fonts.body.dmSans"DM Sans", sans-serif
fonts.body.sourceCodePro"Source Code Pro", monospace

Monospace fonts

KeyValue
fonts.mono.jetbrainsMono"JetBrains Mono", monospace
fonts.mono.firaCode"Fira Code", monospace
fonts.mono.geistMono"Geist Mono", monospace
Load fonts via @remotion/google-fonts or staticFile() for local fonts. The token values are CSS font-family strings — they don’t load the font files.

Spacing scale

Consistent spacing values in pixels, based on a 4px unit scaled for 1920x1080:
import { spacing } from '@oanim/core';
KeyValueTypical use
xs4pxTight spacing, icon gaps
sm8pxSmall padding
md16pxDefault padding
lg24pxSection padding
xl32pxLarge gaps
2xl48pxMajor section spacing
3xl64pxHero spacing
4xl96pxLarge layout margins
5xl128pxFull-width margins