Odd for shadcn/ui

Odd is a shadcn/ui theme built around a red primary color (#e06257) with muted light red accents (#ede9e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#e06257) on a red-tinted background (#0b0504).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0504black
Foreground
#080202black
#fdfcfbsnow
Card
#ffffffwhite
#0b0504black
Card foreground
#080202black
#fdfcfbsnow
Popover
#ffffffwhite
#0b0504black
Popover foreground
#080202black
#fdfcfbsnow
Primary
#e06257indianred
#e06257indianred
Primary foreground
#000000black
#000000black
Secondary
#ede9e8linen
#2f2423darkslategray
Secondary foreground
#5b4948darkolivegreen
#cbbab9silver
Muted
#e1dbdbgainsboro
#241e1eblack
Muted foreground
#504544darkslategray
#bbb0afdarkgray
Accent
#ede9e8linen
#2f2423darkslategray
Accent foreground
#5b4948darkolivegreen
#cbbab9silver
Destructive
#863303saddlebrown
#fa792etomato
Destructive foreground
#fdd5bepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e06257indianred
#e06257indianred

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button6.07:1AA
Secondary button6.97:1AA
Muted text6.75:1AA
Accent6.97:1AA
Destructive6.17:1AA
Dark mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button6.07:1AA
Secondary button8.08:1AAA
Muted text7.73:1AAA
Accent8.08:1AAA
Destructive7.81:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.105 0.018 29.322);
  --muted: oklch(0.896 0.007 23.654);
  --muted-foreground: oklch(0.401 0.015 23.981);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.105 0.018 29.322);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.105 0.018 29.322);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.651 0.16 27.542);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.936 0.005 23.632);
  --secondary-foreground: oklch(0.425 0.025 24.241);
  --accent: oklch(0.936 0.005 23.632);
  --accent-foreground: oklch(0.425 0.025 24.241);
  --destructive: oklch(0.434 0.125 43.602);
  --destructive-foreground: oklch(0.902 0.055 51.81);
  --ring: oklch(0.651 0.16 27.542);
  --chart-1: oklch(0.651 0.16 27.542);
  --chart-2: oklch(0.936 0.005 23.632);
  --chart-3: oklch(0.936 0.005 23.632);
  --chart-4: oklch(0.96 0.003 23.612);
  --chart-5: oklch(0.652 0.166 27.753);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.013 26.766);
  --foreground: oklch(0.991 0.002 23.601);
  --muted: oklch(0.243 0.009 24.002);
  --muted-foreground: oklch(0.766 0.013 23.746);
  --popover: oklch(0.125 0.013 26.766);
  --popover-foreground: oklch(0.991 0.002 23.601);
  --card: oklch(0.125 0.013 26.766);
  --card-foreground: oklch(0.991 0.002 23.601);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.651 0.16 27.542);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.272 0.017 24.315);
  --secondary-foreground: oklch(0.803 0.019 23.829);
  --accent: oklch(0.272 0.017 24.315);
  --accent-foreground: oklch(0.803 0.019 23.829);
  --destructive: oklch(0.715 0.178 46.598);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.651 0.16 27.542);
  --chart-1: oklch(0.651 0.16 27.542);
  --chart-2: oklch(0.272 0.017 24.315);
  --chart-3: oklch(0.272 0.017 24.315);
  --chart-4: oklch(0.301 0.02 24.354);
  --chart-5: oklch(0.652 0.166 27.753);
}