Bad for shadcn/ui

Bad is a shadcn/ui theme built around a vivid teal primary color (#128783) with vivid red accents (#871216). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#128783) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#ffffffwhite
#030707black
Foreground
#000000black
#f9fbfbghostwhite
Card
#ffffffwhite
#030707black
Card foreground
#000000black
#f9fbfbghostwhite
Popover
#ffffffwhite
#030707black
Popover foreground
#000000black
#f9fbfbghostwhite
Primary
#128783teal
#128783teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#871216darkred
#871216darkred
Secondary foreground
#f9d2d3pink
#f9d2d3pink
Muted
#f2ededlinen
#120d0dblack
Muted foreground
#6a5c5ddimgray
#a39595rosybrown
Accent
#871216darkred
#871216darkred
Accent foreground
#f9d2d3pink
#f9d2d3pink
Destructive
#6f1a0bmaroon
#ed5e45tomato
Destructive foreground
#f8bfb5lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#128783teal
#128783teal

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.33:1AA Large
Secondary button7.12:1AAA
Muted text5.49:1AA
Accent7.12:1AAA
Destructive7.14:1AAA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button4.33:1AA Large
Secondary button7.12:1AAA
Muted text6.70:1AA
Accent7.12:1AAA
Destructive6.29:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.95 0.006 14.901);
  --muted-foreground: oklch(0.49 0.018 15.495);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.566 0.094 191.139);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.402 0.151 26.239);
  --secondary-foreground: oklch(0.897 0.044 15.738);
  --accent: oklch(0.402 0.151 26.239);
  --accent-foreground: oklch(0.897 0.044 15.738);
  --destructive: oklch(0.361 0.122 32.34);
  --destructive-foreground: oklch(0.852 0.067 29.96);
  --ring: oklch(0.566 0.094 191.139);
  --chart-1: oklch(0.566 0.094 191.139);
  --chart-2: oklch(0.402 0.151 26.239);
  --chart-3: oklch(0.402 0.151 26.239);
  --chart-4: oklch(0.43 0.163 26.386);
  --chart-5: oklch(0.572 0.096 191.063);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.009 193.914);
  --foreground: oklch(0.986 0.002 194.755);
  --muted: oklch(0.165 0.009 15.844);
  --muted-foreground: oklch(0.681 0.017 15.25);
  --popover: oklch(0.122 0.009 193.914);
  --popover-foreground: oklch(0.986 0.002 194.755);
  --card: oklch(0.122 0.009 193.914);
  --card-foreground: oklch(0.986 0.002 194.755);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.566 0.094 191.139);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.402 0.151 26.239);
  --secondary-foreground: oklch(0.897 0.044 15.738);
  --accent: oklch(0.402 0.151 26.239);
  --accent-foreground: oklch(0.897 0.044 15.738);
  --destructive: oklch(0.662 0.181 32.127);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.566 0.094 191.139);
  --chart-1: oklch(0.566 0.094 191.139);
  --chart-2: oklch(0.402 0.151 26.239);
  --chart-3: oklch(0.402 0.151 26.239);
  --chart-4: oklch(0.43 0.163 26.386);
  --chart-5: oklch(0.572 0.096 191.063);
}