Corporatism for shadcn/ui

Corporatism is a shadcn/ui theme built around a muted deep blue primary color (#171d21) with muted blue accents (#adc1d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep blue primary (#171d21) on a blue-tinted background (#060b0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#060b0eblack
Foreground
#040b10black
#fcfcfdwhite
Card
#fcfcfcsnow
#080d12black
Card foreground
#03080cblack
#ffffffwhite
Popover
#fcfcfcsnow
#080d12black
Popover foreground
#03080cblack
#ffffffwhite
Primary
#171d21black
#171d21black
Primary foreground
#a7b6c3silver
#a7b6c3silver
Secondary
#c2cdd6lightgrey
#181c20black
Secondary foreground
#29343ddarkslategray
#abb6bfsilver
Muted
#dde4e9gainsboro
#161d22black
Muted foreground
#384147darkslategray
#b8c0c7silver
Accent
#adc1d1lightsteelblue
#212c35darkslategray
Accent foreground
#1c2731darkslategray
#b7c6d2lightsteelblue
Destructive
#6c1204maroon
#ec2709orangered
Destructive foreground
#fcb2a6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#171d21black
#171d21black

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.68:1AAA
Primary button8.23:1AAA
Secondary button7.86:1AAA
Muted text8.08:1AAA
Accent8.19:1AAA
Destructive6.97:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.49:1AAA
Primary button8.23:1AAA
Secondary button8.27:1AAA
Muted text9.27:1AAA
Accent8.10:1AAA
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.017 238.971);
  --muted: oklch(0.914 0.01 242.332);
  --muted-foreground: oklch(0.368 0.016 242.789);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.13 0.014 235.221);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.13 0.014 235.221);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.225 0.013 242.971);
  --primary-foreground: oklch(0.77 0.025 242.626);
  --secondary: oklch(0.843 0.017 242.458);
  --secondary-foreground: oklch(0.319 0.021 243.121);
  --accent: oklch(0.801 0.031 242.718);
  --accent-foreground: oklch(0.268 0.024 243.521);
  --destructive: oklch(0.346 0.126 31.89);
  --destructive-foreground: oklch(0.83 0.089 28.852);
  --ring: oklch(0.225 0.013 242.971);
  --chart-1: oklch(0.225 0.013 242.971);
  --chart-2: oklch(0.843 0.017 242.458);
  --chart-3: oklch(0.801 0.031 242.718);
  --chart-4: oklch(0.867 0.014 242.411);
  --chart-5: oklch(0.225 0.015 243.105);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.011 240.135);
  --foreground: oklch(0.992 0.001 242.203);
  --muted: oklch(0.225 0.013 243.015);
  --muted-foreground: oklch(0.803 0.013 242.415);
  --popover: oklch(0.156 0.013 242.567);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.013 242.567);
  --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.225 0.013 242.971);
  --primary-foreground: oklch(0.77 0.025 242.626);
  --secondary: oklch(0.225 0.009 242.758);
  --secondary-foreground: oklch(0.771 0.018 242.51);
  --accent: oklch(0.288 0.022 243.293);
  --accent-foreground: oklch(0.818 0.024 242.577);
  --destructive: oklch(0.606 0.231 31.119);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.225 0.013 242.971);
  --chart-1: oklch(0.225 0.013 242.971);
  --chart-2: oklch(0.225 0.009 242.758);
  --chart-3: oklch(0.288 0.022 243.293);
  --chart-4: oklch(0.258 0.012 242.803);
  --chart-5: oklch(0.225 0.015 243.105);
}