Perfection for shadcn/ui

Perfection is a shadcn/ui theme built around a green primary color (#23a947) with teal accents (#23a98a). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#23a947) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#ffffffwhite
#020302black
Foreground
#020804black
#fcfdfcwhite
Card
#fcfcfcsnow
#030704black
Card foreground
#010402black
#ffffffwhite
Popover
#fcfcfcsnow
#030704black
Popover foreground
#010402black
#ffffffwhite
Primary
#23a947seagreen
#23a947seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#42a923limegreen
#42a923limegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dce2dagainsboro
#1f251dblack
Muted foreground
#4d6148darkolivegreen
#a4b79edarkgray
Accent
#23a98alightseagreen
#23a98alightseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#920401darkred
#fd2926crimson
Destructive foreground
#fec8c7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#23a947seagreen
#23a947seagreen

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.15:1AAA
Primary button3.06:1AA Large
Secondary button3.01:1AA Large
Muted text5.10:1AA
Accent2.94:1Fail
Destructive6.36:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.26:1AAA
Primary button3.06:1AA Large
Secondary button3.01:1AA Large
Muted text7.31:1AAA
Accent2.94:1Fail
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.02 153.899);
  --muted: oklch(0.906 0.014 138.346);
  --muted-foreground: oklch(0.468 0.046 138.459);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.098 0.016 153.899);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.098 0.016 153.899);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.646 0.178 147.276);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.65 0.192 139.767);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.659 0.12 172.255);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.417 0.169 29.362);
  --destructive-foreground: oklch(0.881 0.062 19.524);
  --ring: oklch(0.646 0.178 147.276);
  --chart-1: oklch(0.646 0.178 147.276);
  --chart-2: oklch(0.65 0.192 139.767);
  --chart-3: oklch(0.659 0.12 172.255);
  --chart-4: oklch(0.686 0.203 139.788);
  --chart-5: oklch(0.653 0.184 147.014);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.01 154.148);
  --foreground: oklch(0.993 0.002 154.486);
  --muted: oklch(0.257 0.018 138.415);
  --muted-foreground: oklch(0.759 0.041 138.391);
  --popover: oklch(0.12 0.012 154.148);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.012 154.148);
  --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.646 0.178 147.276);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.65 0.192 139.767);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.659 0.12 172.255);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.638 0.242 28.142);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.646 0.178 147.276);
  --chart-1: oklch(0.646 0.178 147.276);
  --chart-2: oklch(0.65 0.192 139.767);
  --chart-3: oklch(0.659 0.12 172.255);
  --chart-4: oklch(0.686 0.203 139.788);
  --chart-5: oklch(0.653 0.184 147.014);
}