Roster for shadcn/ui

Roster is a shadcn/ui theme built around a vivid red primary color (#9d130c) with muted light red accents (#d1c2c1). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid red primary (#9d130c) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040101black
Foreground
#000000black
#ffffffwhite
Card
#fdf8f7snow
#080202black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf8f7snow
#080202black
Popover foreground
#000000black
#ffffffwhite
Primary
#9d130cdarkred
#9d130cdarkred
Primary foreground
#fddfdemistyrose
#fddfdemistyrose
Secondary
#e1dbdbgainsboro
#1e1a1ablack
Secondary foreground
#4b3f3fdarkslategray
#bab0b0darkgray
Muted
#e6d6d6gainsboro
#291a19black
Muted foreground
#6b5352dimgray
#ad9694rosybrown
Accent
#d1c2c1silver
#352827darkslategray
Accent foreground
#382a29darkslategray
#cfbfbesilver
Destructive
#d15005chocolate
#f96f1fchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9d130cdarkred
#9d130cdarkred

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card19.87:1AAA
Primary button6.65:1AA
Secondary button7.38:1AAA
Muted text5.02:1AA
Accent7.98:1AAA
Destructive4.32:1AA Large
Dark mode
Text on background20.77:1AAA
Text on card20.54:1AAA
Primary button6.65:1AA
Secondary button8.13:1AAA
Muted text6.02:1AA
Accent8.01:1AAA
Destructive7.33:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 20.924);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.89 0.017 21.145);
  --muted-foreground: oklch(0.467 0.031 21.841);
  --popover: oklch(0.981 0.005 20.959);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.005 20.959);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.444 0.171 29.294);
  --primary-foreground: oklch(0.928 0.032 21.356);
  --secondary: oklch(0.896 0.006 20.977);
  --secondary-foreground: oklch(0.381 0.016 21.476);
  --accent: oklch(0.827 0.017 21.161);
  --accent-foreground: oklch(0.3 0.021 21.872);
  --destructive: oklch(0.596 0.177 42.269);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.444 0.171 29.294);
  --chart-1: oklch(0.444 0.171 29.294);
  --chart-2: oklch(0.896 0.006 20.977);
  --chart-3: oklch(0.827 0.017 21.161);
  --chart-4: oklch(0.92 0.005 20.955);
  --chart-5: oklch(0.448 0.174 29.387);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.013 25.237);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.237 0.025 22.526);
  --muted-foreground: oklch(0.692 0.028 21.435);
  --popover: oklch(0.105 0.017 25.237);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.105 0.017 25.237);
  --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.444 0.171 29.294);
  --primary-foreground: oklch(0.928 0.032 21.356);
  --secondary: oklch(0.223 0.006 21.236);
  --secondary-foreground: oklch(0.766 0.011 21.079);
  --accent: oklch(0.291 0.02 21.858);
  --accent-foreground: oklch(0.819 0.018 21.179);
  --destructive: oklch(0.7 0.188 45.092);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.444 0.171 29.294);
  --chart-1: oklch(0.444 0.171 29.294);
  --chart-2: oklch(0.223 0.006 21.236);
  --chart-3: oklch(0.291 0.02 21.858);
  --chart-4: oklch(0.255 0.007 21.265);
  --chart-5: oklch(0.448 0.174 29.387);
}