Testy for shadcn/ui

Testy is a shadcn/ui theme built around a light teal primary color (#b7ebd5) with light cyan accents (#b7e7eb). The light mode uses a neutral background (#f7fcfa). Dark mode keeps the light teal primary (#b7ebd5) on a teal-tinted background (#040c08).

Color palette

TokenLightDark
Background
#f7fcfamintcream
#040c08black
Foreground
#04100bblack
#fcfdfdwhite
Card
#f7fcfamintcream
#040c08black
Card foreground
#04100bblack
#fcfdfdwhite
Popover
#f7fcfamintcream
#040c08black
Popover foreground
#04100bblack
#fcfdfdwhite
Primary
#b7ebd5powderblue
#b7ebd5powderblue
Primary foreground
#18583ddarkslategray
#18583ddarkslategray
Secondary
#b7ebbblightgrey
#b7ebbblightgrey
Secondary foreground
#18581ddarkgreen
#18581ddarkgreen
Muted
#d5e7d6gainsboro
#182a1ablack
Muted foreground
#5a5e5adimgray
#a1a5a2darkgray
Accent
#b7e7ebpaleturquoise
#b7e7ebpaleturquoise
Accent foreground
#185358darkslategray
#185358darkslategray
Destructive
#74110bmaroon
#eb4037tomato
Destructive foreground
#f8bdb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b7ebd5powderblue
#b7ebd5powderblue

Contrast

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

Light mode
Text on background18.75:1AAA
Text on card18.75:1AAA
Primary button6.35:1AA
Secondary button6.37:1AA
Muted text5.09:1AA
Accent6.46:1AA
Destructive7.10:1AAA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button6.35:1AA
Secondary button6.37:1AA
Muted text6.07:1AA
Accent6.46:1AA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 169.497);
  --foreground: oklch(0.159 0.021 167.348);
  --muted: oklch(0.909 0.029 147.722);
  --muted-foreground: oklch(0.476 0.007 147.908);
  --popover: oklch(0.988 0.006 169.497);
  --popover-foreground: oklch(0.159 0.021 167.348);
  --card: oklch(0.988 0.006 169.497);
  --card-foreground: oklch(0.159 0.021 167.348);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.899 0.061 167.566);
  --primary-foreground: oklch(0.413 0.079 161.621);
  --secondary: oklch(0.892 0.084 147.009);
  --secondary-foreground: oklch(0.406 0.111 144.426);
  --accent: oklch(0.896 0.05 203.187);
  --accent-foreground: oklch(0.407 0.059 203.778);
  --destructive: oklch(0.362 0.134 28.936);
  --destructive-foreground: oklch(0.85 0.069 22.077);
  --ring: oklch(0.899 0.061 167.566);
  --chart-1: oklch(0.899 0.061 167.566);
  --chart-2: oklch(0.892 0.084 147.009);
  --chart-3: oklch(0.896 0.05 203.187);
  --chart-4: oklch(0.909 0.07 147.213);
  --chart-5: oklch(0.901 0.064 167.455);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.017 169.567);
  --foreground: oklch(0.993 0.002 169.614);
  --muted: oklch(0.264 0.038 146.376);
  --muted-foreground: oklch(0.718 0.006 147.971);
  --popover: oklch(0.142 0.017 169.567);
  --popover-foreground: oklch(0.993 0.002 169.614);
  --card: oklch(0.142 0.017 169.567);
  --card-foreground: oklch(0.993 0.002 169.614);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.899 0.061 167.566);
  --primary-foreground: oklch(0.413 0.079 161.621);
  --secondary: oklch(0.892 0.084 147.009);
  --secondary-foreground: oklch(0.406 0.111 144.426);
  --accent: oklch(0.896 0.05 203.187);
  --accent-foreground: oklch(0.407 0.059 203.778);
  --destructive: oklch(0.626 0.209 27.931);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.899 0.061 167.566);
  --chart-1: oklch(0.899 0.061 167.566);
  --chart-2: oklch(0.892 0.084 147.009);
  --chart-3: oklch(0.896 0.05 203.187);
  --chart-4: oklch(0.909 0.07 147.213);
  --chart-5: oklch(0.901 0.064 167.455);
}