Overclocking for shadcn/ui

Overclocking is a shadcn/ui theme built around a near-black primary color (#090906) with near-black accents (#080906). The light mode uses a neutral background (#fdfdf6). Dark mode keeps the near-black primary (#090906) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfdf6snow
#000000black
Foreground
#0d0d02black
#ffffffwhite
Card
#fdfdf6snow
#000000black
Card foreground
#0d0d02black
#ffffffwhite
Popover
#fdfdf6snow
#000000black
Popover foreground
#0d0d02black
#ffffffwhite
Primary
#090906black
#090906black
Primary foreground
#b1b191darkgray
#b1b191darkgray
Secondary
#090806black
#090806black
Secondary foreground
#b1a191rosybrown
#b1a191rosybrown
Muted
#eeedeclinen
#131211black
Muted foreground
#5f574fdimgray
#b0a8a0darkgray
Accent
#080906black
#080906black
Accent foreground
#a1b191darkseagreen
#a1b191darkseagreen
Destructive
#800f05maroon
#f11c09red
Destructive foreground
#fdc0balightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#090906black
#090906black

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button9.08:1AAA
Secondary button7.99:1AAA
Muted text6.07:1AA
Accent8.76:1AAA
Destructive6.75:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button9.08:1AAA
Secondary button7.99:1AAA
Muted text7.98:1AAA
Accent8.76:1AAA
Destructive4.27:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.009 106.564);
  --foreground: oklch(0.156 0.027 109.151);
  --muted: oklch(0.947 0.002 67.796);
  --muted-foreground: oklch(0.461 0.016 67.412);
  --popover: oklch(0.993 0.009 106.564);
  --popover-foreground: oklch(0.156 0.027 109.151);
  --card: oklch(0.993 0.009 106.564);
  --card-foreground: oklch(0.156 0.027 109.151);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.138 0.006 107.218);
  --primary-foreground: oklch(0.751 0.044 107.419);
  --secondary: oklch(0.134 0.004 70.216);
  --secondary-foreground: oklch(0.717 0.03 67.328);
  --accent: oklch(0.136 0.007 128.084);
  --accent-foreground: oklch(0.738 0.048 129.217);
  --destructive: oklch(0.384 0.147 30.295);
  --destructive-foreground: oklch(0.86 0.071 24.577);
  --ring: oklch(0.138 0.006 107.218);
  --chart-1: oklch(0.138 0.006 107.218);
  --chart-2: oklch(0.134 0.004 70.216);
  --chart-3: oklch(0.136 0.007 128.084);
  --chart-4: oklch(0.172 0.007 67.347);
  --chart-5: oklch(0.139 0.008 107.346);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.003 67.622);
  --muted-foreground: oklch(0.737 0.014 67.603);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.138 0.006 107.218);
  --primary-foreground: oklch(0.751 0.044 107.419);
  --secondary: oklch(0.134 0.004 70.216);
  --secondary-foreground: oklch(0.717 0.03 67.328);
  --accent: oklch(0.136 0.007 128.084);
  --accent-foreground: oklch(0.738 0.048 129.217);
  --destructive: oklch(0.609 0.24 30.028);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.138 0.006 107.218);
  --chart-1: oklch(0.138 0.006 107.218);
  --chart-2: oklch(0.134 0.004 70.216);
  --chart-3: oklch(0.136 0.007 128.084);
  --chart-4: oklch(0.172 0.007 67.347);
  --chart-5: oklch(0.139 0.008 107.346);
}