Waveform for shadcn/ui

Waveform is a shadcn/ui theme built around a green primary color (#4ab561) with teal accents (#4ab597). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#4ab561) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#041007black
#f5faf6whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#030c05black
#f8fbf9mintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#041007black
#f5faf6whitesmoke
Primary
#4ab561mediumseagreen
#4ab561mediumseagreen
Primary foreground
#0f2413black
#0f2413black
Secondary
#68b54aolivedrab
#68b54aolivedrab
Secondary foreground
#15240fblack
#15240fblack
Muted
#eef4ecwhitesmoke
#0e130bblack
Muted foreground
#56694fdarkolivegreen
#9eb096darkseagreen
Accent
#4ab597cadetblue
#4ab597cadetblue
Accent foreground
#0f241eblack
#0f241eblack
Destructive
#5d1709maroon
#e33916orangered
Destructive foreground
#f6b0a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4ab561mediumseagreen
#4ab561mediumseagreen

Contrast

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

Light mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button6.30:1AA
Secondary button6.43:1AA
Muted text5.31:1AA
Accent6.46:1AA
Destructive7.32:1AAA
Dark mode
Text on background19.88:1AAA
Text on card19.85:1AAA
Primary button6.30:1AA
Secondary button6.43:1AA
Muted text8.13:1AAA
Accent6.46:1AA
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.158 0.029 150.947);
  --muted: oklch(0.96 0.013 136.648);
  --muted-foreground: oklch(0.497 0.046 136.915);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0.029 150.947);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.141 0.025 151.625);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.691 0.156 148.09);
  --primary-foreground: oklch(0.238 0.042 149.301);
  --secondary: oklch(0.7 0.162 137.818);
  --secondary-foreground: oklch(0.241 0.044 137.385);
  --accent: oklch(0.703 0.109 171.455);
  --accent-foreground: oklch(0.241 0.03 173.186);
  --destructive: oklch(0.321 0.104 33.143);
  --destructive-foreground: oklch(0.82 0.085 31.603);
  --ring: oklch(0.691 0.156 148.09);
  --chart-1: oklch(0.691 0.156 148.09);
  --chart-2: oklch(0.7 0.162 137.818);
  --chart-3: oklch(0.703 0.109 171.455);
  --chart-4: oklch(0.717 0.154 137.643);
  --chart-5: oklch(0.699 0.165 147.801);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.007 152.512);
  --muted: oklch(0.179 0.019 136.968);
  --muted-foreground: oklch(0.736 0.042 136.787);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.007 152.512);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.004 152.548);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.691 0.156 148.09);
  --primary-foreground: oklch(0.238 0.042 149.301);
  --secondary: oklch(0.7 0.162 137.818);
  --secondary-foreground: oklch(0.241 0.044 137.385);
  --accent: oklch(0.703 0.109 171.455);
  --accent-foreground: oklch(0.241 0.03 173.186);
  --destructive: oklch(0.603 0.211 32.747);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.691 0.156 148.09);
  --chart-1: oklch(0.691 0.156 148.09);
  --chart-2: oklch(0.7 0.162 137.818);
  --chart-3: oklch(0.703 0.109 171.455);
  --chart-4: oklch(0.717 0.154 137.643);
  --chart-5: oklch(0.699 0.165 147.801);
}