Stunning for shadcn/ui

Stunning is a shadcn/ui theme built around a deep blue primary color (#22506d) with muted light blue accents (#ced8de). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the deep blue primary (#22506d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#000000black
Foreground
#050f14black
#f9fafbghostwhite
Card
#f3f8fbaliceblue
#030303black
Card foreground
#040c10black
#fcfdfdwhite
Popover
#f7fbfdghostwhite
#000000black
Popover foreground
#050f14black
#f9fafbghostwhite
Primary
#22506ddarkslategray
#22506ddarkslategray
Primary foreground
#d0e4f1lavender
#d0e4f1lavender
Secondary
#ced8delightgrey
#26292cdarkslategray
Secondary foreground
#324049darkslategray
#bec3c6silver
Muted
#dde7eelavender
#111b22black
Muted foreground
#4e4f50darkslategray
#afb0b1darkgray
Accent
#ced8delightgrey
#26292cdarkslategray
Accent foreground
#324049darkslategray
#bec3c6silver
Destructive
#8e2510saddlebrown
#e84b2cchocolate
Destructive foreground
#fadcd6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#22506ddarkslategray
#22506ddarkslategray

Contrast

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

Light mode
Text on background18.54:1AAA
Text on card18.47:1AAA
Primary button6.57:1AA
Secondary button7.38:1AAA
Muted text6.56:1AA
Accent7.38:1AAA
Destructive6.70:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.29:1AAA
Primary button6.57:1AA
Secondary button8.19:1AAA
Muted text8.00:1AAA
Accent8.19:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 234.569);
  --foreground: oklch(0.159 0.019 234.631);
  --muted: oklch(0.923 0.014 234.729);
  --muted-foreground: oklch(0.428 0.002 234.56);
  --popover: oklch(0.985 0.004 234.569);
  --popover-foreground: oklch(0.159 0.019 234.631);
  --card: oklch(0.977 0.007 234.601);
  --card-foreground: oklch(0.146 0.017 232.102);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.414 0.07 238.983);
  --primary-foreground: oklch(0.908 0.027 234.958);
  --secondary: oklch(0.877 0.013 234.726);
  --secondary-foreground: oklch(0.362 0.024 235.626);
  --accent: oklch(0.877 0.013 234.726);
  --accent-foreground: oklch(0.362 0.024 235.626);
  --destructive: oklch(0.431 0.144 33.022);
  --destructive-foreground: oklch(0.918 0.035 31.163);
  --ring: oklch(0.414 0.07 238.983);
  --chart-1: oklch(0.414 0.07 238.983);
  --chart-2: oklch(0.877 0.013 234.726);
  --chart-3: oklch(0.877 0.013 234.726);
  --chart-4: oklch(0.9 0.011 234.678);
  --chart-5: oklch(0.415 0.073 239.364);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.002 234.535);
  --muted: oklch(0.217 0.02 236.155);
  --muted-foreground: oklch(0.757 0.001 234.533);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.985 0.002 234.535);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 234.52);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.414 0.07 238.983);
  --primary-foreground: oklch(0.908 0.027 234.958);
  --secondary: oklch(0.28 0.006 234.847);
  --secondary-foreground: oklch(0.813 0.007 234.638);
  --accent: oklch(0.28 0.006 234.847);
  --accent-foreground: oklch(0.813 0.007 234.638);
  --destructive: oklch(0.629 0.198 33.182);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.414 0.07 238.983);
  --chart-1: oklch(0.414 0.07 238.983);
  --chart-2: oklch(0.28 0.006 234.847);
  --chart-3: oklch(0.28 0.006 234.847);
  --chart-4: oklch(0.311 0.007 234.862);
  --chart-5: oklch(0.415 0.073 239.364);
}