Takeover for shadcn/ui

Takeover is a shadcn/ui theme built around a muted yellow primary color (#767265) with muted green accents (#727665). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the muted yellow primary (#767265) on a neutral background (#080603).

Color palette

TokenLightDark
Background
#fcfbf8snow
#080603black
Foreground
#040301black
#fbfaf9snow
Card
#fcfbf8snow
#080603black
Card foreground
#040301black
#fbfaf9snow
Popover
#fcfbf8snow
#080603black
Popover foreground
#040301black
#fbfaf9snow
Primary
#767265dimgray
#767265dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#766965dimgray
#766965dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4eae7linen
#180e0bblack
Muted foreground
#615d5cdimgray
#a39f9edarkgray
Accent
#727665dimgray
#727665dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#661600maroon
#fa3600orangered
Destructive foreground
#ffaf99lightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#767265dimgray
#767265dimgray

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button4.81:1AA
Secondary button5.27:1AA
Muted text5.48:1AA
Accent4.64:1AA
Destructive7.04:1AAA
Dark mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button4.81:1AA
Secondary button5.27:1AA
Muted text7.21:1AAA
Accent4.64:1AA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 90.154);
  --foreground: oklch(0.101 0.015 96.528);
  --muted: oklch(0.943 0.012 37.685);
  --muted-foreground: oklch(0.481 0.006 37.685);
  --popover: oklch(0.988 0.004 90.154);
  --popover-foreground: oklch(0.101 0.015 96.528);
  --card: oklch(0.988 0.004 90.154);
  --card-foreground: oklch(0.101 0.015 96.528);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.552 0.02 90.352);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.532 0.018 37.62);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.559 0.027 117.943);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.337 0.117 35.539);
  --destructive-foreground: oklch(0.826 0.099 36.122);
  --ring: oklch(0.552 0.02 90.352);
  --chart-1: oklch(0.552 0.02 90.352);
  --chart-2: oklch(0.532 0.018 37.62);
  --chart-3: oklch(0.559 0.027 117.943);
  --chart-4: oklch(0.558 0.019 37.62);
  --chart-5: oklch(0.557 0.028 90.4);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 94.757);
  --foreground: oklch(0.987 0.002 90.14);
  --muted: oklch(0.178 0.019 37.623);
  --muted-foreground: oklch(0.706 0.005 37.705);
  --popover: oklch(0.124 0.013 94.757);
  --popover-foreground: oklch(0.987 0.002 90.14);
  --card: oklch(0.124 0.013 94.757);
  --card-foreground: oklch(0.987 0.002 90.14);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.552 0.02 90.352);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.532 0.018 37.62);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.559 0.027 117.943);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.64 0.235 33.212);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.552 0.02 90.352);
  --chart-1: oklch(0.552 0.02 90.352);
  --chart-2: oklch(0.532 0.018 37.62);
  --chart-3: oklch(0.559 0.027 117.943);
  --chart-4: oklch(0.558 0.019 37.62);
  --chart-5: oklch(0.557 0.028 90.4);
}