Overclocking for shadcn/ui

Overclocking is a shadcn/ui theme built around a vivid indigo primary color (#3628fb) with vivid green accents (#28fb36). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid indigo primary (#3628fb) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#010104black
Foreground
#010104black
#fcfcfdwhite
Card
#f8f7fdghostwhite
#030208black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfbfeghostwhite
#010104black
Popover foreground
#010104black
#fcfcfdwhite
Primary
#3628fbblue
#3628fbblue
Primary foreground
#f1f0ffaliceblue
#f1f0ffaliceblue
Secondary
#fb3628orangered
#fb3628orangered
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eddfdegainsboro
#211312black
Muted foreground
#514948darkslategray
#b7afaedarkgray
Accent
#28fb36limegreen
#28fb36limegreen
Accent foreground
#025507darkgreen
#025507darkgreen
Destructive
#a52d09firebrick
#f4592atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3628fbblue
#3628fbblue

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card19.72:1AAA
Primary button6.54:1AA
Secondary button3.71:1AA Large
Muted text6.77:1AA
Accent6.46:1AA
Destructive7.05:1AAA
Dark mode
Text on background20.29:1AAA
Text on card20.63:1AAA
Primary button6.54:1AA
Secondary button3.71:1AA Large
Muted text8.35:1AAA
Accent6.46:1AA
Destructive6.29:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 289.412);
  --foreground: oklch(0.072 0.021 284.884);
  --muted: oklch(0.915 0.015 22.399);
  --muted-foreground: oklch(0.412 0.012 22.549);
  --popover: oklch(0.989 0.004 289.412);
  --popover-foreground: oklch(0.072 0.021 284.884);
  --card: oklch(0.979 0.007 289.344);
  --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.483 0.285 271.077);
  --primary-foreground: oklch(0.96 0.02 289.093);
  --secondary: oklch(0.642 0.232 29.333);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.859 0.275 143.251);
  --accent-foreground: oklch(0.39 0.128 143.218);
  --destructive: oklch(0.48 0.161 35.316);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.483 0.285 271.077);
  --chart-1: oklch(0.483 0.285 271.077);
  --chart-2: oklch(0.642 0.232 29.333);
  --chart-3: oklch(0.859 0.275 143.251);
  --chart-4: oklch(0.655 0.221 28.772);
  --chart-5: oklch(0.483 0.291 270.384);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.078 0.015 286.572);
  --foreground: oklch(0.991 0.001 289.45);
  --muted: oklch(0.206 0.022 23.742);
  --muted-foreground: oklch(0.759 0.01 22.363);
  --popover: oklch(0.078 0.015 286.572);
  --popover-foreground: oklch(0.991 0.001 289.45);
  --card: oklch(0.098 0.019 286.572);
  --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.483 0.285 271.077);
  --primary-foreground: oklch(0.96 0.02 289.093);
  --secondary: oklch(0.642 0.232 29.333);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.859 0.275 143.251);
  --accent-foreground: oklch(0.39 0.128 143.218);
  --destructive: oklch(0.664 0.199 36.663);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.483 0.285 271.077);
  --chart-1: oklch(0.483 0.285 271.077);
  --chart-2: oklch(0.642 0.232 29.333);
  --chart-3: oklch(0.859 0.275 143.251);
  --chart-4: oklch(0.655 0.221 28.772);
  --chart-5: oklch(0.483 0.291 270.384);
}