Overclocking for shadcn/ui

Overclocking is a shadcn/ui theme built around a muted pink primary color (#cea6bf) with muted blue accents (#a6bfce). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted pink primary (#cea6bf) on a pink-tinted background (#0b0408).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0408black
Foreground
#12020cblack
#fbf8fasnow
Card
#fcfcfcsnow
#0f050bblack
Card foreground
#0e0209black
#fdfcfdwhite
Popover
#fcfcfcsnow
#0f050bblack
Popover foreground
#0e0209black
#fdfcfdwhite
Primary
#cea6bfsilver
#cea6bfsilver
Primary foreground
#2b1823black
#2b1823black
Secondary
#bfcea6silver
#bfcea6silver
Secondary foreground
#232b18black
#232b18black
Muted
#e7eddebeige
#1b2112black
Muted foreground
#5a5d56dimgray
#a7a9a2darkgray
Accent
#a6bfcelightsteelblue
#a6bfcelightsteelblue
Accent foreground
#18232bblack
#18232bblack
Destructive
#731e02maroon
#fa4e14orangered
Destructive foreground
#fdbfaalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cea6bfsilver
#cea6bfsilver

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card19.92:1AAA
Primary button7.82:1AAA
Secondary button8.81:1AAA
Muted text5.62:1AA
Accent8.33:1AAA
Destructive6.87:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.56:1AAA
Primary button7.82:1AAA
Secondary button8.81:1AAA
Muted text6.91:1AA
Accent8.33:1AAA
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.041 342.38);
  --muted: oklch(0.938 0.022 123.988);
  --muted-foreground: oklch(0.473 0.012 124.01);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.118 0.036 340.543);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.118 0.036 340.543);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.769 0.057 341.034);
  --primary-foreground: oklch(0.238 0.037 342.632);
  --secondary: oklch(0.83 0.057 124.677);
  --secondary-foreground: oklch(0.275 0.035 125.68);
  --accent: oklch(0.79 0.035 235.189);
  --accent-foreground: oklch(0.25 0.022 236.067);
  --destructive: oklch(0.372 0.123 36.649);
  --destructive-foreground: oklch(0.856 0.078 39.222);
  --ring: oklch(0.769 0.057 341.034);
  --chart-1: oklch(0.769 0.057 341.034);
  --chart-2: oklch(0.83 0.057 124.677);
  --chart-3: oklch(0.79 0.035 235.189);
  --chart-4: oklch(0.849 0.05 124.533);
  --chart-5: oklch(0.767 0.063 341.194);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.02 339.789);
  --foreground: oklch(0.983 0.004 339.564);
  --muted: oklch(0.238 0.03 125.644);
  --muted-foreground: oklch(0.732 0.011 123.854);
  --popover: oklch(0.138 0.023 341.355);
  --popover-foreground: oklch(0.992 0.002 339.516);
  --card: oklch(0.138 0.023 341.355);
  --card-foreground: oklch(0.992 0.002 339.516);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.769 0.057 341.034);
  --primary-foreground: oklch(0.238 0.037 342.632);
  --secondary: oklch(0.83 0.057 124.677);
  --secondary-foreground: oklch(0.275 0.035 125.68);
  --accent: oklch(0.79 0.035 235.189);
  --accent-foreground: oklch(0.25 0.022 236.067);
  --destructive: oklch(0.661 0.217 36.188);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.057 341.034);
  --chart-1: oklch(0.769 0.057 341.034);
  --chart-2: oklch(0.83 0.057 124.677);
  --chart-3: oklch(0.79 0.035 235.189);
  --chart-4: oklch(0.849 0.05 124.533);
  --chart-5: oklch(0.767 0.063 341.194);
}