Back to Demo Hub
Colors & Themes
CSS variable-based color system with dark (default) and light mode support
Background
--backgroundPage background
Dark:
#0a0a0aLight: #ffffff--background-secondaryCards, sections
Dark:
#141414Light: #f4f4f5--background-elevatedHover states, elevated surfaces
Dark:
#1a1a1aLight: #fafafaForeground
--foregroundPrimary text
Dark:
#ffffffLight: #09090b--foreground-secondaryBody text, descriptions
Dark:
#a1a1aaLight: #52525b--foreground-mutedCaptions, labels
Dark:
#71717aLight: #71717aAccent (Brand Green)
--accentPrimary actions, active states
Dark:
#89AB2DLight: #6B8A1E--accent-hoverButton hover
Dark:
#9BBC3DLight: #5A7419--accent-mutedSubtle accent
Dark:
#6B8A1ELight: #89AB2D--accent-lightAccent backgrounds
Dark:
rgba(137,171,45,0.1)Light: rgba(107,138,30,0.1)--accent-borderAccent borders
Dark:
rgba(137,171,45,0.3)Light: rgba(107,138,30,0.3)Borders
--borderDefault borders
Dark:
#27272aLight: #e4e4e7--border-hoverHover borders
Dark:
#3f3f46Light: #d4d4d8Shadows
--shadow-smSubtle elevation
Dark:
0 1px 2px rgba(0,0,0,0.5)Light: 0 1px 2px rgba(0,0,0,0.05)--shadow-mdCards, dropdowns
Dark:
0 4px 6px rgba(0,0,0,0.5)Light: 0 4px 6px rgba(0,0,0,0.07)--shadow-lgModals, popovers
Dark:
0 10px 15px rgba(0,0,0,0.5)Light: 0 10px 15px rgba(0,0,0,0.1)Live Preview
Accent Color
Used for CTAs, active states, links
Elevated Surface
Cards, dropdowns, hover states
Accent Light
Selected states, highlights
Usage
/* In Tailwind classes */
<div className="bg-[var(--background)] text-[var(--foreground)]" />
<div className="border border-[var(--border)] hover:border-[var(--border-hover)]" />
<button className="bg-[var(--accent)] hover:bg-[var(--accent-hover)]" />
/* Theme switching is handled by data-theme attribute */
<html data-theme="light"> /* or "dark" (default) */