Fantastic for shadcn/ui

Fantastic is a shadcn/ui theme built around a muted red primary color (#af9a97) with muted orange accents (#afa697). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#af9a97) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#150704black
#ffffffwhite
Card
#fdf8f7snow
#030303black
Card foreground
#110503black
#ffffffwhite
Popover
#fdf8f7snow
#030303black
Popover foreground
#110503black
#ffffffwhite
Primary
#af9a97rosybrown
#af9a97rosybrown
Primary foreground
#0c0909black
#0c0909black
Secondary
#af97a0darkgray
#af97a0darkgray
Secondary foreground
#0c090ablack
#0c090ablack
Muted
#eee2e6mistyrose
#1d1115black
Muted foreground
#64545adimgray
#ab9ba1darkgray
Accent
#afa697darkgray
#afa697darkgray
Accent foreground
#0c0b09black
#0c0b09black
Destructive
#b84305firebrick
#e05206orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#af9a97rosybrown
#af9a97rosybrown

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.22:1AAA
Text on card19.03:1AAA
Primary button7.48:1AAA
Secondary button7.34:1AAA
Muted text5.62:1AA
Accent8.20:1AAA
Destructive5.44:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.48:1AAA
Secondary button7.34:1AAA
Muted text6.95:1AA
Accent8.20:1AAA
Destructive3.90:1AA Large

CSS variables

Paste this into your globals.css to use Fantastic in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 27.946);
  --foreground: oklch(0.149 0.028 33.198);
  --muted: oklch(0.923 0.015 353.046);
  --muted-foreground: oklch(0.463 0.024 353.993);
  --popover: oklch(0.982 0.005 27.959);
  --popover-foreground: oklch(0.137 0.024 34.102);
  --card: oklch(0.982 0.005 27.959);
  --card-foreground: oklch(0.137 0.024 34.102);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.705 0.025 28.153);
  --primary-foreground: oklch(0.144 0.004 28.649);
  --secondary: oklch(0.701 0.031 353.796);
  --secondary-foreground: oklch(0.143 0.005 353.014);
  --accent: oklch(0.729 0.024 81.463);
  --accent-foreground: oklch(0.148 0.004 81.977);
  --destructive: oklch(0.54 0.163 41.384);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.705 0.025 28.153);
  --chart-1: oklch(0.705 0.025 28.153);
  --chart-2: oklch(0.701 0.031 353.796);
  --chart-3: oklch(0.729 0.024 81.463);
  --chart-4: oklch(0.727 0.028 353.647);
  --chart-5: oklch(0.703 0.031 28.221);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.195 0.023 355.782);
  --muted-foreground: oklch(0.705 0.021 353.418);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.705 0.025 28.153);
  --primary-foreground: oklch(0.144 0.004 28.649);
  --secondary: oklch(0.701 0.031 353.796);
  --secondary-foreground: oklch(0.143 0.005 353.014);
  --accent: oklch(0.729 0.024 81.463);
  --accent-foreground: oklch(0.148 0.004 81.977);
  --destructive: oklch(0.622 0.19 40.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.705 0.025 28.153);
  --chart-1: oklch(0.705 0.025 28.153);
  --chart-2: oklch(0.701 0.031 353.796);
  --chart-3: oklch(0.729 0.024 81.463);
  --chart-4: oklch(0.727 0.028 353.647);
  --chart-5: oklch(0.703 0.031 28.221);
}