Prejudice for shadcn/ui

Prejudice is a shadcn/ui theme built around a red primary color (#c95e54) with orange accents (#c99954). The light mode uses a neutral background (#fdf8f7). Dark mode keeps the red primary (#c95e54) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fdf8f7snow
#040101black
Foreground
#110403black
#f9f6f6whitesmoke
Card
#fbf4f3lavenderblush
#080302black
Card foreground
#0d0302black
#fbf9f9snow
Popover
#fdf8f7snow
#040101black
Popover foreground
#110403black
#f9f6f6whitesmoke
Primary
#c95e54indianred
#c95e54indianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c95485palevioletred
#c95485palevioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3d9ddgainsboro
#261c20black
Muted foreground
#605258dimgray
#ad9fa5darkgray
Accent
#c99954peru
#c99954peru
Accent foreground
#000000black
#000000black
Destructive
#621d04maroon
#f64c0eorangered
Destructive foreground
#fbb69dlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c95e54indianred
#c95e54indianred

Contrast

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

Light mode
Text on background19.07:1AAA
Text on card18.76:1AAA
Primary button4.01:1AA Large
Secondary button4.11:1AA Large
Muted text5.33:1AA
Accent8.14:1AAA
Destructive7.22:1AAA
Dark mode
Text on background19.31:1AAA
Text on card19.55:1AAA
Primary button4.01:1AA Large
Secondary button4.11:1AA Large
Muted text6.51:1AA
Accent8.14:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 23.635);
  --foreground: oklch(0.134 0.027 29.592);
  --muted: oklch(0.894 0.013 350.076);
  --muted-foreground: oklch(0.455 0.021 350.92);
  --popover: oklch(0.982 0.005 23.635);
  --popover-foreground: oklch(0.134 0.027 29.592);
  --card: oklch(0.973 0.008 23.664);
  --card-foreground: oklch(0.12 0.023 29.974);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.612 0.138 27.144);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.61 0.156 356.716);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.713 0.104 74.073);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.339 0.106 38.167);
  --destructive-foreground: oklch(0.835 0.089 40.833);
  --ring: oklch(0.612 0.138 27.144);
  --chart-1: oklch(0.612 0.138 27.144);
  --chart-2: oklch(0.61 0.156 356.716);
  --chart-3: oklch(0.713 0.104 74.073);
  --chart-4: oklch(0.634 0.146 355.87);
  --chart-5: oklch(0.612 0.146 27.406);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.011 27.758);
  --foreground: oklch(0.976 0.003 23.61);
  --muted: oklch(0.24 0.018 351.71);
  --muted-foreground: oklch(0.715 0.019 350.387);
  --popover: oklch(0.085 0.011 27.758);
  --popover-foreground: oklch(0.976 0.003 23.61);
  --card: oklch(0.108 0.014 27.758);
  --card-foreground: oklch(0.984 0.002 23.6);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.612 0.138 27.144);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.61 0.156 356.716);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.713 0.104 74.073);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.652 0.215 36.555);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.612 0.138 27.144);
  --chart-1: oklch(0.612 0.138 27.144);
  --chart-2: oklch(0.61 0.156 356.716);
  --chart-3: oklch(0.713 0.104 74.073);
  --chart-4: oklch(0.634 0.146 355.87);
  --chart-5: oklch(0.612 0.146 27.406);
}