Theme

The theme property defines your design system with 7 optional token categories. All tokens generate CSS custom properties and Tailwind CSS utility classes.

colors

Named color tokens as key-value pairs. Each becomes a CSS variable (--color-{name}) and Tailwind class (bg-{name}, text-{name}).

fonts

Typography configuration for heading, body, and mono fonts. Supports family, fallback, weights, size, line height, and Google Fonts URL.

spacing

Named spacing tokens as Tailwind class strings. Define container widths, section padding, gaps, and component spacing.

shadows

Named shadow tokens as CSS box-shadow values. Each becomes a shadow-{name} utility.

animations

Custom @keyframes animations with enabled flag, duration, timing function, iteration count, and keyframe definitions.

breakpoints

Custom responsive breakpoints as pixel values. Each becomes a min-width media query for responsive utilities.

borderRadius

Named border radius tokens as CSS values. Each becomes a rounded-{name} utility class.

theme: colors: primary: "#3b82f6" secondary: "#8b5cf6" background: "#0a0e1a" text: "#e8ecf4" fonts: heading: family: Inter weights: [600, 700] lineHeight: "1.2" body: family: Inter size: "16px" spacing: container: "max-w-7xl mx-auto px-4" section: "py-16 sm:py-20" shadows: card: "0 4px 6px rgba(0, 0, 0, 0.1)"