Corporatism for shadcn/ui

Corporatism is a shadcn/ui theme built around a deep purple primary color (#260d24) with deep pink accents (#260d18). The light mode uses a neutral background (#fefbfe). Dark mode keeps the deep purple primary (#260d24) on a purple-tinted background (#0e070d).

Color palette

TokenLightDark
Background
#fefbfewhite
#0e070dblack
Foreground
#0d020dblack
#fdfcfdwhite
Card
#fdf7fcsnow
#110811black
Card foreground
#090108black
#ffffffwhite
Popover
#fdf7fcsnow
#110811black
Popover foreground
#090108black
#ffffffwhite
Primary
#260d24black
#260d24black
Primary foreground
#d88dd3plum
#d88dd3plum
Secondary
#1b0d26black
#1b0d26black
Secondary foreground
#b78dd8plum
#b78dd8plum
Muted
#ebe8edlavender
#151217black
Muted foreground
#555058dimgray
#aba7afdarkgray
Accent
#260d18black
#260d18black
Accent foreground
#d88daepalevioletred
#d88daepalevioletred
Destructive
#a60a07darkred
#e10d09red
Destructive foreground
#fee2e2mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#260d24black
#260d24black

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.51:1AAA
Primary button7.43:1AAA
Secondary button6.89:1AA
Muted text6.45:1AA
Accent7.23:1AAA
Destructive6.42:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.65:1AAA
Primary button7.43:1AAA
Secondary button6.89:1AA
Muted text7.87:1AAA
Accent7.23:1AAA
Destructive4.91:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 327.59);
  --foreground: oklch(0.121 0.04 329.686);
  --muted: oklch(0.934 0.008 311.006);
  --muted-foreground: oklch(0.439 0.015 310.79);
  --popover: oklch(0.982 0.009 327.635);
  --popover-foreground: oklch(0.105 0.034 329.408);
  --card: oklch(0.982 0.009 327.635);
  --card-foreground: oklch(0.105 0.034 329.408);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.21 0.057 329.929);
  --primary-foreground: oklch(0.742 0.128 329.115);
  --secondary: oklch(0.194 0.052 308.5);
  --secondary-foreground: oklch(0.711 0.116 309.636);
  --accent: oklch(0.203 0.045 354.586);
  --accent-foreground: oklch(0.729 0.099 352.273);
  --destructive: oklch(0.46 0.184 29.009);
  --destructive-foreground: oklch(0.936 0.031 18.878);
  --ring: oklch(0.21 0.057 329.929);
  --chart-1: oklch(0.21 0.057 329.929);
  --chart-2: oklch(0.194 0.052 308.5);
  --chart-3: oklch(0.203 0.045 354.586);
  --chart-4: oklch(0.222 0.064 308.199);
  --chart-5: oklch(0.21 0.06 330.045);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.019 328.675);
  --foreground: oklch(0.992 0.001 327.56);
  --muted: oklch(0.187 0.012 310.505);
  --muted-foreground: oklch(0.734 0.013 310.929);
  --popover: oklch(0.153 0.022 328.861);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.022 328.861);
  --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.21 0.057 329.929);
  --primary-foreground: oklch(0.742 0.128 329.115);
  --secondary: oklch(0.194 0.052 308.5);
  --secondary-foreground: oklch(0.711 0.116 309.636);
  --accent: oklch(0.203 0.045 354.586);
  --accent-foreground: oklch(0.729 0.099 352.273);
  --destructive: oklch(0.575 0.232 29.086);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.21 0.057 329.929);
  --chart-1: oklch(0.21 0.057 329.929);
  --chart-2: oklch(0.194 0.052 308.5);
  --chart-3: oklch(0.203 0.045 354.586);
  --chart-4: oklch(0.222 0.064 308.199);
  --chart-5: oklch(0.21 0.06 330.045);
}