Perfection for shadcn/ui

Perfection is a shadcn/ui theme built around a cyan primary color (#2eb7cc) with green accents (#b7cc2e). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the cyan primary (#2eb7cc) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#000000black
Foreground
#000000black
#f8fbfcghostwhite
Card
#f7fcfdghostwhite
#000000black
Card foreground
#000000black
#f8fbfcghostwhite
Popover
#f7fcfdghostwhite
#000000black
Popover foreground
#000000black
#f8fbfcghostwhite
Primary
#2eb7ccmediumturquoise
#2eb7ccmediumturquoise
Primary foreground
#082225black
#082225black
Secondary
#cc2eb7mediumorchid
#cc2eb7mediumorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f5eff4whitesmoke
#100a0fblack
Muted foreground
#575757dimgray
#a8a8a8darkgray
Accent
#b7cc2eyellowgreen
#b7cc2eyellowgreen
Accent foreground
#222508black
#222508black
Destructive
#a32e0afirebrick
#f3693ftomato
Destructive foreground
#fde9e2mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2eb7ccmediumturquoise
#2eb7ccmediumturquoise

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button6.89:1AA
Secondary button4.53:1AA
Muted text6.39:1AA
Accent8.71:1AAA
Destructive6.07:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button6.89:1AA
Secondary button4.53:1AA
Muted text8.24:1AAA
Accent8.71:1AAA
Destructive6.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 207.912);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.009 329.796);
  --muted-foreground: oklch(0.456 0 180);
  --popover: oklch(0.987 0.005 207.912);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 207.912);
  --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.717 0.114 210.506);
  --primary-foreground: oklch(0.233 0.031 208.986);
  --secondary: oklch(0.598 0.235 334.35);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.802 0.172 117.296);
  --accent-foreground: oklch(0.255 0.047 116.195);
  --destructive: oklch(0.478 0.159 35.514);
  --destructive-foreground: oklch(0.947 0.024 37.641);
  --ring: oklch(0.717 0.114 210.506);
  --chart-1: oklch(0.717 0.114 210.506);
  --chart-2: oklch(0.598 0.235 334.35);
  --chart-3: oklch(0.802 0.172 117.296);
  --chart-4: oklch(0.617 0.234 334.102);
  --chart-5: oklch(0.725 0.117 210.77);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 207.92);
  --muted: oklch(0.154 0.014 330.738);
  --muted-foreground: oklch(0.733 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.003 207.92);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.003 207.92);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.717 0.114 210.506);
  --primary-foreground: oklch(0.233 0.031 208.986);
  --secondary: oklch(0.598 0.235 334.35);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.802 0.172 117.296);
  --accent-foreground: oklch(0.255 0.047 116.195);
  --destructive: oklch(0.685 0.179 37.351);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.717 0.114 210.506);
  --chart-1: oklch(0.717 0.114 210.506);
  --chart-2: oklch(0.598 0.235 334.35);
  --chart-3: oklch(0.802 0.172 117.296);
  --chart-4: oklch(0.617 0.234 334.102);
  --chart-5: oklch(0.725 0.117 210.77);
}