Fake for shadcn/ui

Fake is a shadcn/ui theme built around a green primary color (#74be79) with purple accents (#be74b9). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#74be79) on a neutral background (#020402).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#020402black
Foreground
#020d03black
#ffffffwhite
Card
#f8fcf8mintcream
#020402black
Card foreground
#020d03black
#ffffffwhite
Popover
#f8fcf8mintcream
#020402black
Popover foreground
#020d03black
#ffffffwhite
Primary
#74be79darkseagreen
#74be79darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#be74b9orchid
#be74b9orchid
Secondary foreground
#000000black
#000000black
Muted
#efebefwhitesmoke
#141013black
Muted foreground
#555355dimgray
#acaaacdarkgray
Accent
#be74b9orchid
#be74b9orchid
Accent foreground
#000000black
#000000black
Destructive
#771b08maroon
#e03210orangered
Destructive foreground
#fac3b7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#74be79darkseagreen
#74be79darkseagreen

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button9.36:1AAA
Secondary button6.39:1AA
Muted text6.47:1AA
Accent6.39:1AA
Destructive6.96:1AA
Dark mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button9.36:1AAA
Secondary button6.39:1AA
Muted text8.17:1AAA
Accent6.39:1AA
Destructive4.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.007 147.476);
  --foreground: oklch(0.142 0.033 145.724);
  --muted: oklch(0.945 0.006 327.607);
  --muted-foreground: oklch(0.445 0.003 327.619);
  --popover: oklch(0.987 0.007 147.476);
  --popover-foreground: oklch(0.142 0.033 145.724);
  --card: oklch(0.987 0.007 147.476);
  --card-foreground: oklch(0.142 0.033 145.724);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.735 0.122 145.705);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.662 0.128 329.296);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.662 0.128 329.296);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.377 0.13 32.9);
  --destructive-foreground: oklch(0.862 0.066 31.392);
  --ring: oklch(0.735 0.122 145.705);
  --chart-1: oklch(0.735 0.122 145.705);
  --chart-2: oklch(0.662 0.128 329.296);
  --chart-3: oklch(0.662 0.128 329.296);
  --chart-4: oklch(0.687 0.118 329.113);
  --chart-5: oklch(0.74 0.131 145.563);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.013 146.558);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.179 0.009 328.02);
  --muted-foreground: oklch(0.74 0.003 327.585);
  --popover: oklch(0.096 0.013 146.558);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.096 0.013 146.558);
  --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.735 0.122 145.705);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.662 0.128 329.296);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.662 0.128 329.296);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.592 0.213 32.483);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.735 0.122 145.705);
  --chart-1: oklch(0.735 0.122 145.705);
  --chart-2: oklch(0.662 0.128 329.296);
  --chart-3: oklch(0.662 0.128 329.296);
  --chart-4: oklch(0.687 0.118 329.113);
  --chart-5: oklch(0.74 0.131 145.563);
}