Odd for shadcn/ui

Odd is a shadcn/ui theme built around a muted light blue primary color (#c8d7df) with muted light green accents (#d7dfc8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light blue primary (#c8d7df) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#010304black
#f6f8f8whitesmoke
Card
#ffffffwhite
#010304black
Card foreground
#010304black
#f6f8f8whitesmoke
Popover
#ffffffwhite
#010304black
Popover foreground
#010304black
#f6f8f8whitesmoke
Primary
#c8d7dflightgrey
#c8d7dflightgrey
Primary foreground
#2b3f4adarkslategray
#2b3f4adarkslategray
Secondary
#dfc8d7thistle
#dfc8d7thistle
Secondary foreground
#4a2b3fdarkslategray
#4a2b3fdarkslategray
Muted
#e4d8dfgainsboro
#271b23black
Muted foreground
#676566dimgray
#9a9899darkgray
Accent
#d7dfc8lightgrey
#d7dfc8lightgrey
Accent foreground
#3f4a2bdarkslategray
#3f4a2bdarkslategray
Destructive
#6f0c06maroon
#f3352bcrimson
Destructive foreground
#fab1adlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c8d7dflightgrey
#c8d7dflightgrey

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button7.43:1AAA
Secondary button7.84:1AAA
Muted text4.17:1AA Large
Accent6.85:1AA
Destructive6.92:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button7.43:1AAA
Secondary button7.84:1AAA
Muted text5.77:1AA
Accent6.85:1AA
Destructive3.93:1AA Large

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.092 0.013 224.07);
  --muted: oklch(0.894 0.016 339.111);
  --muted-foreground: oklch(0.509 0.003 338.856);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.092 0.013 224.07);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.092 0.013 224.07);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.87 0.019 232.903);
  --primary-foreground: oklch(0.355 0.031 234.215);
  --secondary: oklch(0.857 0.032 339.491);
  --secondary-foreground: oklch(0.336 0.054 341.905);
  --accent: oklch(0.891 0.032 123.474);
  --accent-foreground: oklch(0.39 0.051 125.068);
  --destructive: oklch(0.347 0.132 29.328);
  --destructive-foreground: oklch(0.828 0.086 22.471);
  --ring: oklch(0.87 0.019 232.903);
  --chart-1: oklch(0.87 0.019 232.903);
  --chart-2: oklch(0.857 0.032 339.491);
  --chart-3: oklch(0.891 0.032 123.474);
  --chart-4: oklch(0.882 0.026 339.335);
  --chart-5: oklch(0.87 0.021 232.942);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.01 225.805);
  --foreground: oklch(0.977 0.002 232.604);
  --muted: oklch(0.241 0.023 340.658);
  --muted-foreground: oklch(0.682 0.003 338.814);
  --popover: oklch(0.092 0.01 225.805);
  --popover-foreground: oklch(0.977 0.002 232.604);
  --card: oklch(0.092 0.01 225.805);
  --card-foreground: oklch(0.977 0.002 232.604);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.87 0.019 232.903);
  --primary-foreground: oklch(0.355 0.031 234.215);
  --secondary: oklch(0.857 0.032 339.491);
  --secondary-foreground: oklch(0.336 0.054 341.905);
  --accent: oklch(0.891 0.032 123.474);
  --accent-foreground: oklch(0.39 0.051 125.068);
  --destructive: oklch(0.628 0.226 28.662);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.87 0.019 232.903);
  --chart-1: oklch(0.87 0.019 232.903);
  --chart-2: oklch(0.857 0.032 339.491);
  --chart-3: oklch(0.891 0.032 123.474);
  --chart-4: oklch(0.882 0.026 339.335);
  --chart-5: oklch(0.87 0.021 232.942);
}