Edition for shadcn/ui

Edition is a shadcn/ui theme built around a muted light red primary color (#d6c7c9) with muted light blue accents (#c7c9d6). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted light red primary (#d6c7c9) on a red-tinted background (#0f0507).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0f0507black
Foreground
#040101black
#ffffffwhite
Card
#fefbfbsnow
#0f0507black
Card foreground
#040101black
#ffffffwhite
Popover
#fefbfbsnow
#0f0507black
Popover foreground
#040101black
#ffffffwhite
Primary
#d6c7c9lightgrey
#d6c7c9lightgrey
Primary foreground
#3e2e30darkslategray
#3e2e30darkslategray
Secondary
#c9d6c7lightgrey
#c9d6c7lightgrey
Secondary foreground
#303e2edarkslategray
#303e2edarkslategray
Muted
#daded9gainsboro
#222621black
Muted foreground
#576954dimgray
#99ab96darkseagreen
Accent
#c7c9d6lightgrey
#c7c9d6lightgrey
Accent foreground
#2e303edarkslategray
#2e303edarkslategray
Destructive
#be1a0efirebrick
#ee291borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d6c7c9lightgrey
#d6c7c9lightgrey

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button7.87:1AAA
Secondary button7.50:1AAA
Muted text4.33:1AA Large
Accent7.95:1AAA
Destructive6.29:1AA
Dark mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button7.87:1AAA
Secondary button7.50:1AAA
Muted text6.29:1AA
Accent7.95:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 6.692);
  --foreground: oklch(0.082 0.016 7.507);
  --muted: oklch(0.895 0.008 141.045);
  --muted-foreground: oklch(0.499 0.039 140.898);
  --popover: oklch(0.99 0.004 6.692);
  --popover-foreground: oklch(0.082 0.016 7.507);
  --card: oklch(0.99 0.004 6.692);
  --card-foreground: oklch(0.082 0.016 7.507);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.843 0.017 7.087);
  --primary-foreground: oklch(0.318 0.024 8.467);
  --secondary: oklch(0.862 0.024 141.005);
  --secondary-foreground: oklch(0.345 0.033 140.863);
  --accent: oklch(0.839 0.017 278.013);
  --accent-foreground: oklch(0.312 0.025 277.043);
  --destructive: oklch(0.512 0.197 29.707);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.017 7.087);
  --chart-1: oklch(0.843 0.017 7.087);
  --chart-2: oklch(0.862 0.024 141.005);
  --chart-3: oklch(0.839 0.017 278.013);
  --chart-4: oklch(0.884 0.02 141.016);
  --chart-5: oklch(0.841 0.02 7.187);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.021 8.192);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.263 0.011 140.974);
  --muted-foreground: oklch(0.722 0.036 140.958);
  --popover: oklch(0.135 0.021 8.192);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.021 8.192);
  --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.843 0.017 7.087);
  --primary-foreground: oklch(0.318 0.024 8.467);
  --secondary: oklch(0.862 0.024 141.005);
  --secondary-foreground: oklch(0.345 0.033 140.863);
  --accent: oklch(0.839 0.017 278.013);
  --accent-foreground: oklch(0.312 0.025 277.043);
  --destructive: oklch(0.611 0.23 29.604);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.017 7.087);
  --chart-1: oklch(0.843 0.017 7.087);
  --chart-2: oklch(0.862 0.024 141.005);
  --chart-3: oklch(0.839 0.017 278.013);
  --chart-4: oklch(0.884 0.02 141.016);
  --chart-5: oklch(0.841 0.02 7.187);
}