Odd for shadcn/ui

Odd is a shadcn/ui theme built around a light teal primary color (#d5ebe5) with light cyan accents (#d5e7eb). The light mode uses a neutral background (#fbfefd). Dark mode keeps the light teal primary (#d5ebe5) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fbfefdwhite
#020303black
Foreground
#061310black
#f9fbfamintcream
Card
#f7fdfbmintcream
#040706black
Card foreground
#05100cblack
#fcfdfdwhite
Popover
#f7fdfbmintcream
#040706black
Popover foreground
#05100cblack
#fcfdfdwhite
Primary
#d5ebe5gainsboro
#d5ebe5gainsboro
Primary foreground
#0d1c18black
#0d1c18black
Secondary
#d5ebdagainsboro
#d5ebdagainsboro
Secondary foreground
#0d1c10black
#0d1c10black
Muted
#e3ede5gainsboro
#121c14black
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#d5e7ebgainsboro
#d5e7ebgainsboro
Accent foreground
#2e5661darkslategray
#2e5661darkslategray
Destructive
#6b2400maroon
#f05000orangered
Destructive foreground
#ffbe9enavajowhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d5ebe5gainsboro
#d5ebe5gainsboro

Contrast

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

Light mode
Text on background18.66:1AAA
Text on card18.75:1AAA
Primary button14.12:1AAA
Secondary button14.09:1AAA
Muted text6.32:1AA
Accent6.27:1AA
Destructive6.99:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.88:1AAA
Primary button14.12:1AAA
Secondary button14.09:1AAA
Muted text7.59:1AAA
Accent6.27:1AA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 177.621);
  --foreground: oklch(0.174 0.021 174.147);
  --muted: oklch(0.937 0.016 152.352);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.989 0.006 177.526);
  --popover-foreground: oklch(0.158 0.018 175.392);
  --card: oklch(0.989 0.006 177.526);
  --card-foreground: oklch(0.158 0.018 175.392);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.923 0.025 176.919);
  --primary-foreground: oklch(0.21 0.022 174.128);
  --secondary: oklch(0.92 0.033 152.046);
  --secondary-foreground: oklch(0.208 0.031 149.986);
  --accent: oklch(0.915 0.02 216.121);
  --accent-foreground: oklch(0.428 0.049 217.759);
  --destructive: oklch(0.364 0.11 41.822);
  --destructive-foreground: oklch(0.854 0.087 47.682);
  --ring: oklch(0.923 0.025 176.919);
  --chart-1: oklch(0.923 0.025 176.919);
  --chart-2: oklch(0.92 0.033 152.046);
  --chart-3: oklch(0.915 0.02 216.121);
  --chart-4: oklch(0.94 0.025 152.202);
  --chart-5: oklch(0.925 0.027 176.853);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.007 177.801);
  --foreground: oklch(0.986 0.003 177.63);
  --muted: oklch(0.214 0.022 150.848);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.121 0.008 177.801);
  --popover-foreground: oklch(0.993 0.001 177.673);
  --card: oklch(0.121 0.008 177.801);
  --card-foreground: oklch(0.993 0.001 177.673);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.923 0.025 176.919);
  --primary-foreground: oklch(0.21 0.022 174.128);
  --secondary: oklch(0.92 0.033 152.046);
  --secondary-foreground: oklch(0.208 0.031 149.986);
  --accent: oklch(0.915 0.02 216.121);
  --accent-foreground: oklch(0.428 0.049 217.759);
  --destructive: oklch(0.646 0.207 38.939);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.923 0.025 176.919);
  --chart-1: oklch(0.923 0.025 176.919);
  --chart-2: oklch(0.92 0.033 152.046);
  --chart-3: oklch(0.915 0.02 216.121);
  --chart-4: oklch(0.94 0.025 152.202);
  --chart-5: oklch(0.925 0.027 176.853);
}