Impeccable for shadcn/ui

Impeccable is a shadcn/ui theme built around a green primary color (#667740) with green accents (#4a7740). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#667740) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#090c04black
#fbfcf8snow
Card
#fcfcfcsnow
#030303black
Card foreground
#060802black
#fdfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#090c04black
#fbfcf8snow
Primary
#667740darkolivegreen
#667740darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#776d40darkolivegreen
#776d40darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eae4cdantiquewhite
#322d15darkslategray
Muted foreground
#54524adarkolivegreen
#b5b3abdarkgray
Accent
#4a7740darkolivegreen
#4a7740darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6b220amaroon
#ec6032tomato
Destructive foreground
#f8c2b0lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#667740darkolivegreen
#667740darkolivegreen

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.69:1AAA
Primary button4.89:1AA
Secondary button5.17:1AA
Muted text6.15:1AA
Accent5.21:1AA
Destructive7.14:1AAA
Dark mode
Text on background20.38:1AAA
Text on card20.31:1AAA
Primary button4.89:1AA
Secondary button5.17:1AA
Muted text6.58:1AA
Accent5.21:1AA
Destructive6.29:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.02 120.797);
  --muted: oklch(0.918 0.031 96.565);
  --muted-foreground: oklch(0.438 0.013 96.507);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.146 0.02 120.797);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.128 0.018 120.543);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.542 0.081 123.491);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.534 0.065 97.051);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.523 0.097 139.939);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.363 0.109 37.41);
  --destructive-foreground: oklch(0.856 0.067 39.235);
  --ring: oklch(0.542 0.081 123.491);
  --chart-1: oklch(0.542 0.081 123.491);
  --chart-2: oklch(0.534 0.065 97.051);
  --chart-3: oklch(0.523 0.097 139.939);
  --chart-4: oklch(0.565 0.069 97.049);
  --chart-5: oklch(0.55 0.088 123.736);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.005 120.851);
  --muted: oklch(0.295 0.038 97.026);
  --muted-foreground: oklch(0.766 0.011 96.343);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.988 0.005 120.851);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 120.809);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.542 0.081 123.491);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.534 0.065 97.051);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.523 0.097 139.939);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.662 0.183 38.119);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.542 0.081 123.491);
  --chart-1: oklch(0.542 0.081 123.491);
  --chart-2: oklch(0.534 0.065 97.051);
  --chart-3: oklch(0.523 0.097 139.939);
  --chart-4: oklch(0.565 0.069 97.049);
  --chart-5: oklch(0.55 0.088 123.736);
}