Communist for shadcn/ui

Communist is a shadcn/ui theme built around a vivid light red primary color (#f3a7a0) with vivid light indigo accents (#a7a0f3). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid light red primary (#f3a7a0) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fefbfbsnow
#030202black
Foreground
#150604black
#fdfcfcsnow
Card
#fefbfbsnow
#030202black
Card foreground
#150604black
#fdfcfcsnow
Popover
#fefbfbsnow
#030202black
Popover foreground
#150604black
#fdfcfcsnow
Primary
#f3a7a0burlywood
#f3a7a0burlywood
Primary foreground
#56110bmaroon
#56110bmaroon
Secondary
#a0f3a7palegreen
#a0f3a7palegreen
Secondary foreground
#0b5611darkgreen
#0b5611darkgreen
Muted
#e4f1e5beige
#0e1b0fblack
Muted foreground
#434644darkslategray
#b9bcb9silver
Accent
#a7a0f3lightsteelblue
#a7a0f3lightsteelblue
Accent foreground
#110b56midnightblue
#110b56midnightblue
Destructive
#da4607orangered
#e94b07orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3a7a0burlywood
#f3a7a0burlywood

Contrast

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

Light mode
Text on background19.25:1AAA
Text on card19.25:1AAA
Primary button7.31:1AAA
Secondary button6.75:1AA
Muted text8.20:1AAA
Accent7.41:1AAA
Destructive4.32:1AA Large
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button7.31:1AAA
Secondary button6.75:1AA
Muted text9.27:1AAA
Accent7.41:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 23.615);
  --foreground: oklch(0.147 0.031 29.034);
  --muted: oklch(0.945 0.021 147.828);
  --muted-foreground: oklch(0.392 0.006 147.915);
  --popover: oklch(0.99 0.003 23.615);
  --popover-foreground: oklch(0.147 0.031 29.034);
  --card: oklch(0.99 0.003 23.615);
  --card-foreground: oklch(0.147 0.031 29.034);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.799 0.092 25.072);
  --primary-foreground: oklch(0.301 0.102 29.541);
  --secondary: oklch(0.892 0.132 146.341);
  --secondary-foreground: oklch(0.396 0.123 143.663);
  --accent: oklch(0.743 0.119 286.932);
  --accent-foreground: oklch(0.231 0.126 273.896);
  --destructive: oklch(0.599 0.193 37.941);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.799 0.092 25.072);
  --chart-1: oklch(0.799 0.092 25.072);
  --chart-2: oklch(0.892 0.132 146.341);
  --chart-3: oklch(0.743 0.119 286.932);
  --chart-4: oklch(0.906 0.114 146.629);
  --chart-5: oklch(0.799 0.096 25.149);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.007 26.022);
  --foreground: oklch(0.992 0.002 23.596);
  --muted: oklch(0.205 0.03 146.377);
  --muted-foreground: oklch(0.791 0.005 148.002);
  --popover: oklch(0.088 0.007 26.022);
  --popover-foreground: oklch(0.992 0.002 23.596);
  --card: oklch(0.088 0.007 26.022);
  --card-foreground: oklch(0.992 0.002 23.596);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.799 0.092 25.072);
  --primary-foreground: oklch(0.301 0.102 29.541);
  --secondary: oklch(0.892 0.132 146.341);
  --secondary-foreground: oklch(0.396 0.123 143.663);
  --accent: oklch(0.743 0.119 286.932);
  --accent-foreground: oklch(0.231 0.126 273.896);
  --destructive: oklch(0.628 0.204 37.825);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.799 0.092 25.072);
  --chart-1: oklch(0.799 0.092 25.072);
  --chart-2: oklch(0.892 0.132 146.341);
  --chart-3: oklch(0.743 0.119 286.932);
  --chart-4: oklch(0.906 0.114 146.629);
  --chart-5: oklch(0.799 0.096 25.149);
}