Clone for shadcn/ui

Clone is a shadcn/ui theme built around a vivid deep green primary color (#053a04) with vivid deep red accents (#3a0405). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#053a04) on a neutral background (#030803).

Color palette

TokenLightDark
Background
#ffffffwhite
#030803black
Foreground
#000000black
#fcfdfcwhite
Card
#fcfcfcsnow
#040b04black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#030803black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#053a04darkgreen
#053a04darkgreen
Primary foreground
#20f019lime
#20f019lime
Secondary
#04053ablack
#04053ablack
Secondary foreground
#d9dafdlavender
#d9dafdlavender
Muted
#e2e2e9gainsboro
#16161dblack
Muted foreground
#40404fdarkslategray
#b0b0bfsilver
Accent
#3a0405black
#3a0405black
Accent foreground
#f6797dlightcoral
#f6797dlightcoral
Destructive
#8e1601darkred
#fe5234tomato
Destructive foreground
#ffcbc2pink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#053a04darkgreen
#053a04darkgreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button8.43:1AAA
Secondary button14.14:1AAA
Muted text7.88:1AAA
Accent6.65:1AA
Destructive6.43:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.87:1AAA
Primary button8.43:1AAA
Secondary button14.14:1AAA
Muted text8.41:1AAA
Accent6.65:1AA
Destructive6.47:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.915 0.01 284.614);
  --muted-foreground: oklch(0.377 0.026 283.531);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.302 0.097 142.277);
  --primary-foreground: oklch(0.831 0.276 142.406);
  --secondary: oklch(0.174 0.097 268.601);
  --secondary-foreground: oklch(0.898 0.047 283.835);
  --accent: oklch(0.224 0.083 25.251);
  --accent-foreground: oklch(0.722 0.154 19.647);
  --destructive: oklch(0.417 0.157 32.092);
  --destructive-foreground: oklch(0.885 0.06 29.865);
  --ring: oklch(0.302 0.097 142.277);
  --chart-1: oklch(0.302 0.097 142.277);
  --chart-2: oklch(0.174 0.097 268.601);
  --chart-3: oklch(0.224 0.083 25.251);
  --chart-4: oklch(0.198 0.115 267.955);
  --chart-5: oklch(0.305 0.099 142.232);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.021 143.156);
  --foreground: oklch(0.993 0.003 144.601);
  --muted: oklch(0.203 0.015 283.454);
  --muted-foreground: oklch(0.762 0.022 284.299);
  --popover: oklch(0.121 0.021 143.156);
  --popover-foreground: oklch(0.993 0.003 144.601);
  --card: oklch(0.139 0.024 143.157);
  --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.302 0.097 142.277);
  --primary-foreground: oklch(0.831 0.276 142.406);
  --secondary: oklch(0.174 0.097 268.601);
  --secondary-foreground: oklch(0.898 0.047 283.835);
  --accent: oklch(0.224 0.083 25.251);
  --accent-foreground: oklch(0.722 0.154 19.647);
  --destructive: oklch(0.674 0.213 32.379);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.302 0.097 142.277);
  --chart-1: oklch(0.302 0.097 142.277);
  --chart-2: oklch(0.174 0.097 268.601);
  --chart-3: oklch(0.224 0.083 25.251);
  --chart-4: oklch(0.198 0.115 267.955);
  --chart-5: oklch(0.305 0.099 142.232);
}