Center for shadcn/ui

Center is a shadcn/ui theme built around a muted deep red primary color (#433235) with muted deep orange accents (#433832). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted deep red primary (#433235) on a red-tinted background (#100507).

Color palette

TokenLightDark
Background
#fcf8f9snow
#100507black
Foreground
#100406black
#fcf8f9snow
Card
#faf5f6whitesmoke
#130608black
Card foreground
#0c0305black
#fdfbfcsnow
Popover
#faf5f6whitesmoke
#130608black
Popover foreground
#0c0305black
#fdfbfcsnow
Primary
#433235darkslategray
#433235darkslategray
Primary foreground
#dacdcflightgrey
#dacdcflightgrey
Secondary
#43323edarkslategray
#43323edarkslategray
Secondary foreground
#dacdd6lightgrey
#dacdd6lightgrey
Muted
#e8dee5gainsboro
#21171eblack
Muted foreground
#564e53darkslategray
#b1a9afdarkgray
Accent
#433832darkslategray
#433832darkslategray
Accent foreground
#dad1cdlightgrey
#dad1cdlightgrey
Destructive
#801505maroon
#f12809orangered
Destructive foreground
#fdc3balightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#433235darkslategray
#433235darkslategray

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card18.82:1AAA
Primary button7.79:1AAA
Secondary button7.75:1AAA
Muted text6.13:1AA
Accent7.56:1AAA
Destructive6.75:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.25:1AAA
Primary button7.79:1AAA
Secondary button7.75:1AAA
Muted text7.59:1AAA
Accent7.56:1AAA
Destructive4.15:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 5.554);
  --foreground: oklch(0.133 0.024 7.179);
  --muted: oklch(0.911 0.013 337.559);
  --muted-foreground: oklch(0.432 0.014 337.897);
  --popover: oklch(0.973 0.006 5.609);
  --popover-foreground: oklch(0.12 0.021 6.194);
  --card: oklch(0.973 0.006 5.609);
  --card-foreground: oklch(0.12 0.021 6.194);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.337 0.026 7.404);
  --primary-foreground: oklch(0.86 0.015 5.891);
  --secondary: oklch(0.341 0.032 339.041);
  --secondary-foreground: oklch(0.862 0.019 337.693);
  --accent: oklch(0.35 0.019 48.142);
  --accent-foreground: oklch(0.868 0.011 48.593);
  --destructive: oklch(0.389 0.143 31.641);
  --destructive-foreground: oklch(0.866 0.068 28.534);
  --ring: oklch(0.337 0.026 7.404);
  --chart-1: oklch(0.337 0.026 7.404);
  --chart-2: oklch(0.341 0.032 339.041);
  --chart-3: oklch(0.35 0.019 48.142);
  --chart-4: oklch(0.369 0.035 339.081);
  --chart-5: oklch(0.335 0.031 7.83);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.022 7.032);
  --foreground: oklch(0.982 0.004 5.566);
  --muted: oklch(0.22 0.019 338.93);
  --muted-foreground: oklch(0.744 0.012 337.588);
  --popover: oklch(0.146 0.026 8.294);
  --popover-foreground: oklch(0.991 0.002 5.507);
  --card: oklch(0.146 0.026 8.294);
  --card-foreground: oklch(0.991 0.002 5.507);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.337 0.026 7.404);
  --primary-foreground: oklch(0.86 0.015 5.891);
  --secondary: oklch(0.341 0.032 339.041);
  --secondary-foreground: oklch(0.862 0.019 337.693);
  --accent: oklch(0.35 0.019 48.142);
  --accent-foreground: oklch(0.868 0.011 48.593);
  --destructive: oklch(0.615 0.235 31.108);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.337 0.026 7.404);
  --chart-1: oklch(0.337 0.026 7.404);
  --chart-2: oklch(0.341 0.032 339.041);
  --chart-3: oklch(0.35 0.019 48.142);
  --chart-4: oklch(0.369 0.035 339.081);
  --chart-5: oklch(0.335 0.031 7.83);
}