Testy for shadcn/ui

Testy is a shadcn/ui theme built around a violet primary color (#be70e6) with green accents (#97e670). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the violet primary (#be70e6) on a violet-tinted background (#09040b).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#09040bblack
Foreground
#060109black
#fdfcfdwhite
Card
#fdfcfdwhite
#09040bblack
Card foreground
#060109black
#fdfcfdwhite
Popover
#fdfcfdwhite
#09040bblack
Popover foreground
#060109black
#fdfcfdwhite
Primary
#be70e6orchid
#be70e6orchid
Primary foreground
#16051eblack
#16051eblack
Secondary
#97e670lightgreen
#97e670lightgreen
Secondary foreground
#0e1e05black
#0e1e05black
Muted
#e9eee7linen
#131811black
Muted foreground
#4b5049darkslategray
#b1b6afdarkgray
Accent
#97e670lightgreen
#97e670lightgreen
Accent foreground
#0e1e05black
#0e1e05black
Destructive
#61260amaroon
#eb7742coral
Destructive foreground
#f6c0a7lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#be70e6orchid
#be70e6orchid

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button6.19:1AA
Secondary button11.47:1AAA
Muted text7.03:1AAA
Accent11.47:1AAA
Destructive7.29:1AAA
Dark mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button6.19:1AA
Secondary button11.47:1AAA
Muted text8.72:1AAA
Accent11.47:1AAA
Destructive7.27:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 314.815);
  --foreground: oklch(0.099 0.034 317.75);
  --muted: oklch(0.944 0.011 134.885);
  --muted-foreground: oklch(0.424 0.011 134.96);
  --popover: oklch(0.991 0.002 314.815);
  --popover-foreground: oklch(0.099 0.034 317.75);
  --card: oklch(0.991 0.002 314.815);
  --card-foreground: oklch(0.099 0.034 317.75);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.678 0.183 313.286);
  --primary-foreground: oklch(0.163 0.055 313.176);
  --secondary: oklch(0.847 0.171 136.22);
  --secondary-foreground: oklch(0.214 0.051 136.143);
  --accent: oklch(0.847 0.171 136.22);
  --accent-foreground: oklch(0.214 0.051 136.143);
  --destructive: oklch(0.349 0.094 42.299);
  --destructive-foreground: oklch(0.85 0.071 46.083);
  --ring: oklch(0.678 0.183 313.286);
  --chart-1: oklch(0.678 0.183 313.286);
  --chart-2: oklch(0.847 0.171 136.22);
  --chart-3: oklch(0.847 0.171 136.22);
  --chart-4: oklch(0.86 0.157 136.015);
  --chart-5: oklch(0.676 0.19 313.196);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.023 316.313);
  --foreground: oklch(0.992 0.002 314.82);
  --muted: oklch(0.201 0.016 135.25);
  --muted-foreground: oklch(0.77 0.01 134.89);
  --popover: oklch(0.121 0.023 316.313);
  --popover-foreground: oklch(0.992 0.002 314.82);
  --card: oklch(0.121 0.023 316.313);
  --card-foreground: oklch(0.992 0.002 314.82);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.678 0.183 313.286);
  --primary-foreground: oklch(0.163 0.055 313.176);
  --secondary: oklch(0.847 0.171 136.22);
  --secondary-foreground: oklch(0.214 0.051 136.143);
  --accent: oklch(0.847 0.171 136.22);
  --accent-foreground: oklch(0.214 0.051 136.143);
  --destructive: oklch(0.695 0.158 43.938);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.678 0.183 313.286);
  --chart-1: oklch(0.678 0.183 313.286);
  --chart-2: oklch(0.847 0.171 136.22);
  --chart-3: oklch(0.847 0.171 136.22);
  --chart-4: oklch(0.86 0.157 136.015);
  --chart-5: oklch(0.676 0.19 313.196);
}