Juggernaut for shadcn/ui

Juggernaut is a shadcn/ui theme built around a near-black primary color (#080901) with near-black accents (#040901). The light mode uses a neutral background (#fefefb). Dark mode keeps the near-black primary (#080901) on a neutral background (#060703).

Color palette

TokenLightDark
Background
#fefefbwhite
#060703black
Foreground
#070902black
#f8f8f6whitesmoke
Card
#fcfdf6snow
#090a05black
Card foreground
#040401black
#fafbf9snow
Popover
#fcfdf6snow
#090a05black
Popover foreground
#040401black
#fafbf9snow
Primary
#080901black
#080901black
Primary foreground
#a4c016yellowgreen
#a4c016yellowgreen
Secondary
#090601black
#090601black
Secondary foreground
#c08716darkgoldenrod
#c08716darkgoldenrod
Muted
#dedcd8gainsboro
#272521darkslategray
Muted foreground
#585756dimgray
#a9a9a7darkgray
Accent
#040901black
#040901black
Accent foreground
#4fc016limegreen
#4fc016limegreen
Destructive
#c52c02firebrick
#fd4d1corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#080901black
#080901black

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card20.13:1AAA
Primary button9.64:1AAA
Secondary button6.45:1AA
Muted text5.27:1AA
Accent8.50:1AAA
Destructive5.62:1AA
Dark mode
Text on background19.00:1AAA
Text on card19.10:1AAA
Primary button9.64:1AAA
Secondary button6.45:1AA
Muted text6.52:1AA
Accent8.50:1AAA
Destructive3.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.005 114.154);
  --foreground: oklch(0.132 0.022 115.006);
  --muted: oklch(0.896 0.006 84.567);
  --muted-foreground: oklch(0.457 0.002 84.563);
  --popover: oklch(0.993 0.009 114.243);
  --popover-foreground: oklch(0.105 0.017 115.006);
  --card: oklch(0.993 0.009 114.243);
  --card-foreground: oklch(0.105 0.017 115.006);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.135 0.025 115.119);
  --primary-foreground: oklch(0.759 0.175 119.929);
  --secondary: oklch(0.126 0.02 92.688);
  --secondary-foreground: oklch(0.664 0.133 77.768);
  --accent: oklch(0.129 0.029 132.646);
  --accent-foreground: oklch(0.713 0.216 138.528);
  --destructive: oklch(0.538 0.194 33.727);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.135 0.025 115.119);
  --chart-1: oklch(0.135 0.025 115.119);
  --chart-2: oklch(0.126 0.02 92.688);
  --chart-3: oklch(0.129 0.029 132.646);
  --chart-4: oklch(0.178 0.029 86.304);
  --chart-5: oklch(0.135 0.026 115.149);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.011 114.6);
  --foreground: oklch(0.98 0.003 114.124);
  --muted: oklch(0.264 0.007 84.593);
  --muted-foreground: oklch(0.734 0.002 84.558);
  --popover: oklch(0.143 0.013 114.6);
  --popover-foreground: oklch(0.986 0.002 114.104);
  --card: oklch(0.143 0.013 114.6);
  --card-foreground: oklch(0.986 0.002 114.104);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.135 0.025 115.119);
  --primary-foreground: oklch(0.759 0.175 119.929);
  --secondary: oklch(0.126 0.02 92.688);
  --secondary-foreground: oklch(0.664 0.133 77.768);
  --accent: oklch(0.129 0.029 132.646);
  --accent-foreground: oklch(0.713 0.216 138.528);
  --destructive: oklch(0.664 0.22 35);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.135 0.025 115.119);
  --chart-1: oklch(0.135 0.025 115.119);
  --chart-2: oklch(0.126 0.02 92.688);
  --chart-3: oklch(0.129 0.029 132.646);
  --chart-4: oklch(0.178 0.029 86.304);
  --chart-5: oklch(0.135 0.026 115.149);
}