Astonishing for shadcn/ui

Astonishing is a shadcn/ui theme built around a near-white primary color (#fdfaf7) with near-white accents (#fcfdf7). The light mode uses a neutral background (#fefdfb). Dark mode keeps the near-white primary (#fdfaf7) on a neutral background (#080503).

Color palette

TokenLightDark
Background
#fefdfbsnow
#080503black
Foreground
#110b03black
#faf8f4whitesmoke
Card
#fdfaf7snow
#0b0804black
Card foreground
#0d0802black
#fcfaf8snow
Popover
#fefdfbsnow
#080503black
Popover foreground
#110b03black
#faf8f4whitesmoke
Primary
#fdfaf7snow
#fdfaf7snow
Primary foreground
#483114darkolivegreen
#483114darkolivegreen
Secondary
#fdf7f7snow
#fdf7f7snow
Secondary foreground
#97322bbrown
#97322bbrown
Muted
#e5cecdlightgrey
#321c1ablack
Muted foreground
#443c3cdarkslategray
#c3bcbbsilver
Accent
#fcfdf7snow
#fcfdf7snow
Accent foreground
#444814darkolivegreen
#444814darkolivegreen
Destructive
#a40704darkred
#ea0a06red
Destructive foreground
#fedddcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdfaf7snow
#fdfaf7snow

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button11.72:1AAA
Secondary button7.07:1AAA
Muted text7.17:1AAA
Accent9.39:1AAA
Destructive6.35:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.17:1AAA
Primary button11.72:1AAA
Secondary button7.07:1AAA
Muted text8.53:1AAA
Accent9.39:1AAA
Destructive4.63:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 74.939);
  --foreground: oklch(0.155 0.022 79.134);
  --muted: oklch(0.87 0.026 22.566);
  --muted-foreground: oklch(0.365 0.01 22.538);
  --popover: oklch(0.993 0.003 74.939);
  --popover-foreground: oklch(0.155 0.022 79.134);
  --card: oklch(0.987 0.005 74.923);
  --card-foreground: oklch(0.14 0.019 82.76);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.987 0.005 74.923);
  --primary-foreground: oklch(0.334 0.054 71.38);
  --secondary: oklch(0.981 0.006 22.28);
  --secondary-foreground: oklch(0.465 0.137 27.726);
  --accent: oklch(0.991 0.008 109.619);
  --accent-foreground: oklch(0.385 0.072 112.955);
  --destructive: oklch(0.454 0.183 29.176);
  --destructive-foreground: oklch(0.924 0.037 19.002);
  --ring: oklch(0.987 0.005 74.923);
  --chart-1: oklch(0.987 0.005 74.923);
  --chart-2: oklch(0.981 0.006 22.28);
  --chart-3: oklch(0.991 0.008 109.619);
  --chart-4: oklch(1.009 0.003 202.184);
  --chart-5: oklch(0.987 0.005 74.922);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.012 81.474);
  --foreground: oklch(0.979 0.005 74.921);
  --muted: oklch(0.255 0.037 24.362);
  --muted-foreground: oklch(0.801 0.008 22.329);
  --popover: oklch(0.12 0.012 81.474);
  --popover-foreground: oklch(0.979 0.005 74.921);
  --card: oklch(0.138 0.014 81.09);
  --card-foreground: oklch(0.986 0.004 74.933);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.987 0.005 74.923);
  --primary-foreground: oklch(0.334 0.054 71.38);
  --secondary: oklch(0.981 0.006 22.28);
  --secondary-foreground: oklch(0.465 0.137 27.726);
  --accent: oklch(0.991 0.008 109.619);
  --accent-foreground: oklch(0.385 0.072 112.955);
  --destructive: oklch(0.59 0.239 29.195);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.987 0.005 74.923);
  --chart-1: oklch(0.987 0.005 74.923);
  --chart-2: oklch(0.981 0.006 22.28);
  --chart-3: oklch(0.991 0.008 109.619);
  --chart-4: oklch(1.009 0.003 202.184);
  --chart-5: oklch(0.987 0.005 74.922);
}