Fake for shadcn/ui

Fake is a shadcn/ui theme built around a cyan primary color (#63aab0) with green accents (#aab063). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#63aab0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010404black
#fcfdfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#63aab0cadetblue
#63aab0cadetblue
Primary foreground
#000000black
#000000black
Secondary
#b063aamediumorchid
#b063aamediumorchid
Secondary foreground
#000000black
#000000black
Muted
#e8dee7gainsboro
#211720black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#aab063darkkhaki
#aab063darkkhaki
Accent foreground
#000000black
#000000black
Destructive
#ce3d09firebrick
#dc4109orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#63aab0cadetblue
#63aab0cadetblue

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.54:1AAA
Primary button7.90:1AAA
Secondary button5.22:1AA
Muted text6.25:1AA
Accent9.13:1AAA
Destructive4.89:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.67:1AAA
Primary button7.90:1AAA
Secondary button5.22:1AA
Muted text8.01:1AAA
Accent9.13:1AAA
Destructive4.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.01 201.075);
  --muted: oklch(0.911 0.016 328.252);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.992 0 161.565);
  --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.694 0.072 203.164);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.612 0.135 330.168);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.736 0.101 112.774);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.569 0.189 36.454);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.694 0.072 203.164);
  --chart-1: oklch(0.694 0.072 203.164);
  --chart-2: oklch(0.612 0.135 330.168);
  --chart-3: oklch(0.736 0.101 112.774);
  --chart-4: oklch(0.637 0.126 329.962);
  --chart-5: oklch(0.7 0.077 203.2);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 203.566);
  --muted: oklch(0.221 0.023 329.112);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.694 0.072 203.164);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.612 0.135 330.168);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.736 0.101 112.774);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.598 0.199 36.352);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.694 0.072 203.164);
  --chart-1: oklch(0.694 0.072 203.164);
  --chart-2: oklch(0.612 0.135 330.168);
  --chart-3: oklch(0.736 0.101 112.774);
  --chart-4: oklch(0.637 0.126 329.962);
  --chart-5: oklch(0.7 0.077 203.2);
}