Shortwave for shadcn/ui

Shortwave is a shadcn/ui theme built around a vivid deep teal primary color (#055c3c) with vivid deep pink accents (#5c0525). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep teal primary (#055c3c) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#ffffffwhite
#030706black
Foreground
#030d09black
#f4faf8mintcream
Card
#ffffffwhite
#030706black
Card foreground
#030d09black
#f4faf8mintcream
Popover
#ffffffwhite
#030706black
Popover foreground
#030d09black
#f4faf8mintcream
Primary
#055c3cdarkslategray
#055c3cdarkslategray
Primary foreground
#99fad6aquamarine
#99fad6aquamarine
Secondary
#5c0525maroon
#5c0525maroon
Secondary foreground
#fa99bdlightpink
#fa99bdlightpink
Muted
#eeecedwhitesmoke
#131112black
Muted foreground
#554a4edarkslategray
#b5aaaedarkgray
Accent
#5c0525maroon
#5c0525maroon
Accent foreground
#fa99bdlightpink
#fa99bdlightpink
Destructive
#cf1002firebrick
#e31102red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#055c3cdarkslategray
#055c3cdarkslategray

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button6.52:1AA
Secondary button6.88:1AA
Muted text7.22:1AAA
Accent6.88:1AA
Destructive5.63:1AA
Dark mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button6.52:1AA
Secondary button6.88:1AA
Muted text8.35:1AAA
Accent6.88:1AA
Destructive4.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.021 172.094);
  --muted: oklch(0.945 0.002 352.639);
  --muted-foreground: oklch(0.42 0.016 353.652);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.021 172.094);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.144 0.021 172.094);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.42 0.092 160.801);
  --primary-foreground: oklch(0.914 0.105 168.603);
  --secondary: oklch(0.308 0.118 7.589);
  --secondary-foreground: oklch(0.792 0.122 356.747);
  --accent: oklch(0.308 0.118 7.589);
  --accent-foreground: oklch(0.792 0.122 356.747);
  --destructive: oklch(0.541 0.216 29.868);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.42 0.092 160.801);
  --chart-1: oklch(0.42 0.092 160.801);
  --chart-2: oklch(0.308 0.118 7.589);
  --chart-3: oklch(0.308 0.118 7.589);
  --chart-4: oklch(0.341 0.131 8.247);
  --chart-5: oklch(0.424 0.094 160.493);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.011 172.775);
  --foreground: oklch(0.981 0.007 172.37);
  --muted: oklch(0.18 0.003 353.081);
  --muted-foreground: oklch(0.75 0.014 353.101);
  --popover: oklch(0.122 0.011 172.775);
  --popover-foreground: oklch(0.981 0.007 172.37);
  --card: oklch(0.122 0.011 172.775);
  --card-foreground: oklch(0.981 0.007 172.37);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.42 0.092 160.801);
  --primary-foreground: oklch(0.914 0.105 168.603);
  --secondary: oklch(0.308 0.118 7.589);
  --secondary-foreground: oklch(0.792 0.122 356.747);
  --accent: oklch(0.308 0.118 7.589);
  --accent-foreground: oklch(0.792 0.122 356.747);
  --destructive: oklch(0.579 0.232 29.818);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.42 0.092 160.801);
  --chart-1: oklch(0.42 0.092 160.801);
  --chart-2: oklch(0.308 0.118 7.589);
  --chart-3: oklch(0.308 0.118 7.589);
  --chart-4: oklch(0.341 0.131 8.247);
  --chart-5: oklch(0.424 0.094 160.493);
}