Earthquake for shadcn/ui

Earthquake is a shadcn/ui theme built around a light green primary color (#bfe1bc) with light purple accents (#debce1). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the light green primary (#bfe1bc) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#020302black
Foreground
#030d02black
#f5faf4whitesmoke
Card
#f4fcf3honeydew
#040703black
Card foreground
#020901black
#f8fcf8mintcream
Popover
#f8fdf7mintcream
#020302black
Popover foreground
#030d02black
#f5faf4whitesmoke
Primary
#bfe1bcsilver
#bfe1bcsilver
Primary foreground
#244a21darkslategray
#244a21darkslategray
Secondary
#debce1thistle
#debce1thistle
Secondary foreground
#47214adarkslategray
#47214adarkslategray
Muted
#e0d6e1gainsboro
#281e29darkslategray
Muted foreground
#6b606cdimgray
#9e939fdarkgray
Accent
#debce1thistle
#debce1thistle
Accent foreground
#47214adarkslategray
#47214adarkslategray
Destructive
#d93c0dorangered
#f4693etomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bfe1bcsilver
#bfe1bcsilver

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.19:1AAA
Primary button7.10:1AAA
Secondary button7.80:1AAA
Muted text4.22:1AA Large
Accent7.80:1AAA
Destructive4.56:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.56:1AAA
Primary button7.10:1AAA
Secondary button7.80:1AAA
Muted text5.44:1AA
Accent7.80:1AAA
Destructive6.91:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 143.091);
  --foreground: oklch(0.144 0.034 140.966);
  --muted: oklch(0.887 0.019 323.233);
  --muted-foreground: oklch(0.503 0.024 323.347);
  --popover: oklch(0.988 0.009 143.091);
  --popover-foreground: oklch(0.144 0.034 140.966);
  --card: oklch(0.982 0.014 143.069);
  --card-foreground: oklch(0.125 0.03 140.917);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.876 0.063 142.793);
  --primary-foreground: oklch(0.371 0.081 142.116);
  --secondary: oklch(0.836 0.064 323.476);
  --secondary-foreground: oklch(0.318 0.086 324.157);
  --accent: oklch(0.836 0.064 323.476);
  --accent-foreground: oklch(0.318 0.086 324.157);
  --destructive: oklch(0.587 0.2 35.082);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.876 0.063 142.793);
  --chart-1: oklch(0.876 0.063 142.793);
  --chart-2: oklch(0.836 0.064 323.476);
  --chart-3: oklch(0.836 0.064 323.476);
  --chart-4: oklch(0.862 0.054 323.414);
  --chart-5: oklch(0.878 0.068 142.768);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.012 142.038);
  --foreground: oklch(0.98 0.009 143.089);
  --muted: oklch(0.252 0.026 323.588);
  --muted-foreground: oklch(0.676 0.022 323.282);
  --popover: oklch(0.095 0.012 142.038);
  --popover-foreground: oklch(0.98 0.009 143.089);
  --card: oklch(0.12 0.015 142.038);
  --card-foreground: oklch(0.987 0.006 143.105);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.876 0.063 142.793);
  --primary-foreground: oklch(0.371 0.081 142.116);
  --secondary: oklch(0.836 0.064 323.476);
  --secondary-foreground: oklch(0.318 0.086 324.157);
  --accent: oklch(0.836 0.064 323.476);
  --accent-foreground: oklch(0.318 0.086 324.157);
  --destructive: oklch(0.686 0.181 37.322);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.876 0.063 142.793);
  --chart-1: oklch(0.876 0.063 142.793);
  --chart-2: oklch(0.836 0.064 323.476);
  --chart-3: oklch(0.836 0.064 323.476);
  --chart-4: oklch(0.862 0.054 323.414);
  --chart-5: oklch(0.878 0.068 142.768);
}