Center for shadcn/ui

Center is a shadcn/ui theme built around a vivid light red primary color (#fcbfbf) with muted light red accents (#d7c1c1). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid light red primary (#fcbfbf) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fcf8f8snow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfbsnow
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#fcbfbflightpink
#fcbfbflightpink
Primary foreground
#840606maroon
#840606maroon
Secondary
#e5dcdcgainsboro
#181616black
Secondary foreground
#513d3ddarkslategray
#b5ababdarkgray
Muted
#ebe0e0gainsboro
#1f1414black
Muted foreground
#5f4f4fdimgray
#b0a0a0darkgray
Accent
#d7c1c1silver
#2c2121black
Accent foreground
#3e2828darkslategray
#c8b6b6silver
Destructive
#ae1d0afirebrick
#f2351corangered
Destructive foreground
#feeeecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcbfbflightpink
#fcbfbflightpink

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card19.88:1AAA
Primary button6.66:1AA
Secondary button7.48:1AAA
Muted text5.97:1AA
Accent7.99:1AAA
Destructive6.28:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.66:1AA
Secondary button8.06:1AAA
Muted text7.18:1AAA
Accent8.05:1AAA
Destructive3.96: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.991 0.002 17.198);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.915 0.013 17.391);
  --muted-foreground: oklch(0.443 0.021 17.97);
  --popover: oklch(0.991 0.002 17.198);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.005 17.239);
  --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.861 0.07 18.618);
  --primary-foreground: oklch(0.388 0.155 28.664);
  --secondary: oklch(0.902 0.009 17.331);
  --secondary-foreground: oklch(0.383 0.028 18.457);
  --accent: oklch(0.83 0.024 17.652);
  --accent-foreground: oklch(0.304 0.032 19.11);
  --destructive: oklch(0.483 0.181 30.936);
  --destructive-foreground: oklch(0.961 0.018 26.571);
  --ring: oklch(0.861 0.07 18.618);
  --chart-1: oklch(0.861 0.07 18.618);
  --chart-2: oklch(0.902 0.009 17.331);
  --chart-3: oklch(0.83 0.024 17.652);
  --chart-4: oklch(0.926 0.007 17.283);
  --chart-5: oklch(0.86 0.073 18.674);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.205 0.019 18.878);
  --muted-foreground: oklch(0.721 0.018 17.584);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.861 0.07 18.618);
  --primary-foreground: oklch(0.388 0.155 28.664);
  --secondary: oklch(0.202 0.004 17.526);
  --secondary-foreground: oklch(0.75 0.011 17.4);
  --accent: oklch(0.26 0.017 18.271);
  --accent-foreground: oklch(0.792 0.02 17.592);
  --destructive: oklch(0.626 0.226 31.035);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.861 0.07 18.618);
  --chart-1: oklch(0.861 0.07 18.618);
  --chart-2: oklch(0.202 0.004 17.526);
  --chart-3: oklch(0.26 0.017 18.271);
  --chart-4: oklch(0.234 0.006 17.567);
  --chart-5: oklch(0.86 0.073 18.674);
}