Oregano for shadcn/ui

Oregano is a shadcn/ui theme built around a near-black primary color (#04070c) with near-black accents (#070c04). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#04070c) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#ffffffwhite
#030507black
Foreground
#010204black
#f9fafbghostwhite
Card
#ffffffwhite
#030507black
Card foreground
#010204black
#f9fafbghostwhite
Popover
#ffffffwhite
#030507black
Popover foreground
#010204black
#f9fafbghostwhite
Primary
#04070cblack
#04070cblack
Primary foreground
#6e98d4cornflowerblue
#6e98d4cornflowerblue
Secondary
#0c0407black
#0c0407black
Secondary foreground
#d46e98palevioletred
#d46e98palevioletred
Muted
#e8dee2gainsboro
#21171bblack
Muted foreground
#60575bdimgray
#a89fa2darkgray
Accent
#070c04black
#070c04black
Accent foreground
#64a932olivedrab
#64a932olivedrab
Destructive
#a70702darkred
#fd1a12red
Destructive foreground
#ffdddcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#04070cblack
#04070cblack

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button6.83:1AA
Secondary button6.27:1AA
Muted text5.30:1AA
Accent6.83:1AA
Destructive6.23:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button6.83:1AA
Secondary button6.27:1AA
Muted text6.76:1AA
Accent6.83:1AA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.086 0.012 247.339);
  --muted: oklch(0.909 0.012 350.048);
  --muted-foreground: oklch(0.468 0.013 350.453);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.086 0.012 247.339);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.086 0.012 247.339);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.126 0.014 249.194);
  --primary-foreground: oklch(0.674 0.1 256.897);
  --secondary: oklch(0.122 0.022 349.571);
  --secondary-foreground: oklch(0.666 0.136 355.096);
  --accent: oklch(0.144 0.022 130.521);
  --accent-foreground: oklch(0.665 0.166 134.924);
  --destructive: oklch(0.459 0.185 29.562);
  --destructive-foreground: oklch(0.925 0.038 20.207);
  --ring: oklch(0.126 0.014 249.194);
  --chart-1: oklch(0.126 0.014 249.194);
  --chart-2: oklch(0.122 0.022 349.571);
  --chart-3: oklch(0.144 0.022 130.521);
  --chart-4: oklch(0.159 0.032 354.403);
  --chart-5: oklch(0.125 0.015 248.8);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.01 250.198);
  --foreground: oklch(0.984 0.001 256.658);
  --muted: oklch(0.219 0.018 351.848);
  --muted-foreground: oklch(0.71 0.012 350.137);
  --popover: oklch(0.111 0.01 250.198);
  --popover-foreground: oklch(0.984 0.001 256.658);
  --card: oklch(0.111 0.01 250.198);
  --card-foreground: oklch(0.984 0.001 256.658);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.126 0.014 249.194);
  --primary-foreground: oklch(0.674 0.1 256.897);
  --secondary: oklch(0.122 0.022 349.571);
  --secondary-foreground: oklch(0.666 0.136 355.096);
  --accent: oklch(0.144 0.022 130.521);
  --accent-foreground: oklch(0.665 0.166 134.924);
  --destructive: oklch(0.63 0.25 29.181);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.126 0.014 249.194);
  --chart-1: oklch(0.126 0.014 249.194);
  --chart-2: oklch(0.122 0.022 349.571);
  --chart-3: oklch(0.144 0.022 130.521);
  --chart-4: oklch(0.159 0.032 354.403);
  --chart-5: oklch(0.125 0.015 248.8);
}