Powder for shadcn/ui

Powder is a shadcn/ui theme built around a vivid red primary color (#a70626) with vivid teal accents (#06a787). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#a70626) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#faf5f6whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fbf8f9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#faf5f6whitesmoke
Primary
#a70626firebrick
#a70626firebrick
Primary foreground
#fee1e7mistyrose
#fee1e7mistyrose
Secondary
#06a787darkcyan
#06a787darkcyan
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d5dcdbgainsboro
#232a28darkslategray
Muted foreground
#5a6865dimgray
#97a5a2darkgray
Accent
#06a787darkcyan
#06a787darkcyan
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ce3309firebrick
#f6582ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a70626firebrick
#a70626firebrick

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.33:1AA
Secondary button3.03:1AA Large
Muted text4.19:1AA Large
Accent3.03:1AA Large
Destructive5.12:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.59:1AAA
Primary button6.33:1AA
Secondary button3.03:1AA Large
Muted text5.75:1AA
Accent3.03:1AA Large
Destructive6.36:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.889 0.008 182.948);
  --muted-foreground: oklch(0.504 0.017 182.233);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.463 0.183 21.398);
  --primary-foreground: oklch(0.936 0.032 4.098);
  --secondary: oklch(0.65 0.125 172.397);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.65 0.125 172.397);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.559 0.196 34.1);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.463 0.183 21.398);
  --chart-1: oklch(0.463 0.183 21.398);
  --chart-2: oklch(0.65 0.125 172.397);
  --chart-3: oklch(0.65 0.125 172.397);
  --chart-4: oklch(0.692 0.133 172.287);
  --chart-5: oklch(0.467 0.187 21.955);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.005 3.324);
  --muted: oklch(0.277 0.01 182.162);
  --muted-foreground: oklch(0.71 0.016 182.566);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.005 3.324);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.003 3.277);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.463 0.183 21.398);
  --primary-foreground: oklch(0.936 0.032 4.098);
  --secondary: oklch(0.65 0.125 172.397);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.65 0.125 172.397);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.667 0.202 35.778);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.463 0.183 21.398);
  --chart-1: oklch(0.463 0.183 21.398);
  --chart-2: oklch(0.65 0.125 172.397);
  --chart-3: oklch(0.65 0.125 172.397);
  --chart-4: oklch(0.692 0.133 172.287);
  --chart-5: oklch(0.467 0.187 21.955);
}