Astonishing for shadcn/ui

Astonishing is a shadcn/ui theme built around a deep red primary color (#53231d) with neutral gray accents (#e7e4e4). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the deep red primary (#53231d) on a red-tinted background (#0f0605).

Color palette

TokenLightDark
Background
#fdfcfbsnow
#0f0605black
Foreground
#0c0403black
#f9f6f6whitesmoke
Card
#fcf8f8snow
#130806black
Card foreground
#080302black
#fbf9f9snow
Popover
#fcf8f8snow
#130806black
Popover foreground
#080302black
#fbf9f9snow
Primary
#53231dmaroon
#53231dmaroon
Primary foreground
#e7bfbblightpink
#e7bfbblightpink
Secondary
#e7e4e4gainsboro
#252322black
Secondary foreground
#524847darkslategray
#bfbbbasilver
Muted
#ece5e4linen
#1b1313black
Muted foreground
#5a5453dimgray
#aca6a5darkgray
Accent
#e7e4e4gainsboro
#252322black
Accent foreground
#524847darkslategray
#bfbbbasilver
Destructive
#870c03darkred
#fa2314orangered
Destructive foreground
#fec2belightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#53231dmaroon
#53231dmaroon

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.48:1AAA
Primary button7.75:1AAA
Secondary button6.99:1AA
Muted text5.96:1AA
Accent6.99:1AA
Destructive6.57:1AA
Dark mode
Text on background18.62:1AAA
Text on card18.82:1AAA
Primary button7.75:1AAA
Secondary button8.24:1AAA
Muted text7.59:1AAA
Accent8.24:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 25.005);
  --foreground: oklch(0.123 0.018 29.975);
  --muted: oklch(0.926 0.009 25.067);
  --muted-foreground: oklch(0.451 0.008 25.148);
  --popover: oklch(0.983 0.004 25.021);
  --popover-foreground: oklch(0.107 0.016 30.06);
  --card: oklch(0.983 0.004 25.021);
  --card-foreground: oklch(0.107 0.016 30.06);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.323 0.074 28.277);
  --primary-foreground: oklch(0.839 0.046 25.531);
  --secondary: oklch(0.921 0.004 25.021);
  --secondary-foreground: oklch(0.412 0.013 25.282);
  --accent: oklch(0.921 0.004 25.021);
  --accent-foreground: oklch(0.412 0.013 25.282);
  --destructive: oklch(0.397 0.155 30.084);
  --destructive-foreground: oklch(0.867 0.069 23.269);
  --ring: oklch(0.323 0.074 28.277);
  --chart-1: oklch(0.323 0.074 28.277);
  --chart-2: oklch(0.921 0.004 25.021);
  --chart-3: oklch(0.921 0.004 25.021);
  --chart-4: oklch(0.945 0.002 25.011);
  --chart-5: oklch(0.323 0.078 28.534);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.019 28.893);
  --foreground: oklch(0.976 0.003 25.012);
  --muted: oklch(0.198 0.013 25.668);
  --muted-foreground: oklch(0.729 0.007 25.073);
  --popover: oklch(0.15 0.022 28.31);
  --popover-foreground: oklch(0.984 0.002 25.004);
  --card: oklch(0.15 0.022 28.31);
  --card-foreground: oklch(0.984 0.002 25.004);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.323 0.074 28.277);
  --primary-foreground: oklch(0.839 0.046 25.531);
  --secondary: oklch(0.257 0.004 25.119);
  --secondary-foreground: oklch(0.794 0.005 25.046);
  --accent: oklch(0.257 0.004 25.119);
  --accent-foreground: oklch(0.794 0.005 25.046);
  --destructive: oklch(0.63 0.244 29.731);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.323 0.074 28.277);
  --chart-1: oklch(0.323 0.074 28.277);
  --chart-2: oklch(0.257 0.004 25.119);
  --chart-3: oklch(0.257 0.004 25.119);
  --chart-4: oklch(0.288 0.005 25.127);
  --chart-5: oklch(0.323 0.078 28.534);
}