Perfect for shadcn/ui

Perfect is a shadcn/ui theme built around a deep teal primary color (#1a7059) with deep yellow accents (#70591a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#1a7059) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#03110dblack
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#03110dblack
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#03110dblack
#ffffffwhite
Primary
#1a7059seagreen
#1a7059seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#591a70indigo
#591a70indigo
Secondary foreground
#e7c9f2lavender
#e7c9f2lavender
Muted
#e9e7e9lavender
#171618black
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#70591asaddlebrown
#70591asaddlebrown
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b52708firebrick
#e6320aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a7059seagreen
#1a7059seagreen

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card19.26:1AAA
Primary button6.02:1AA
Secondary button7.78:1AAA
Muted text6.14:1AA
Accent6.73:1AA
Destructive6.42:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.02:1AA
Secondary button7.78:1AAA
Muted text7.85:1AAA
Accent6.73:1AA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.163 0.023 175.883);
  --muted: oklch(0.93 0.004 317.181);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.163 0.023 175.883);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.163 0.023 175.883);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.488 0.087 170.555);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.361 0.145 315.285);
  --secondary-foreground: oklch(0.875 0.064 317.021);
  --accent: oklch(0.474 0.084 88.172);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.505 0.182 32.931);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.488 0.087 170.555);
  --chart-1: oklch(0.488 0.087 170.555);
  --chart-2: oklch(0.361 0.145 315.285);
  --chart-3: oklch(0.474 0.084 88.172);
  --chart-4: oklch(0.388 0.157 315.224);
  --chart-5: oklch(0.494 0.09 170.181);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.202 0.005 317.131);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.488 0.087 170.555);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.361 0.145 315.285);
  --secondary-foreground: oklch(0.875 0.064 317.021);
  --accent: oklch(0.474 0.084 88.172);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.602 0.219 32.707);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.488 0.087 170.555);
  --chart-1: oklch(0.488 0.087 170.555);
  --chart-2: oklch(0.361 0.145 315.285);
  --chart-3: oklch(0.474 0.084 88.172);
  --chart-4: oklch(0.388 0.157 315.224);
  --chart-5: oklch(0.494 0.09 170.181);
}