Oriental Herbs for shadcn/ui

Oriental Herbs is a shadcn/ui theme built around a green primary color (#168823) with teal accents (#16885c). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#168823) on a green-tinted background (#060f07).

Color palette

TokenLightDark
Background
#ffffffwhite
#060f07black
Foreground
#050f06black
#f5faf5whitesmoke
Card
#fcfcfcsnow
#071209black
Card foreground
#040c05black
#f8fcf9mintcream
Popover
#ffffffwhite
#060f07black
Popover foreground
#050f06black
#f5faf5whitesmoke
Primary
#168823forestgreen
#168823forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#428816forestgreen
#428816forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ecf0ealinen
#11150fblack
Muted foreground
#444842darkslategray
#babdb7silver
Accent
#16885cseagreen
#16885cseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#780d08maroon
#d8180efirebrick
Destructive foreground
#fabab7lightpink
#ffffffwhite
Border
#eff1efwhitesmoke
#1a1e1bblack
Input
#eff1efwhitesmoke
#1a1e1bblack
Ring
#168823forestgreen
#168823forestgreen

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.38:1AAA
Primary button4.58:1AA
Secondary button4.41:1AA Large
Muted text8.10:1AAA
Accent4.45:1AA Large
Destructive6.87:1AA
Dark mode
Text on background18.46:1AAA
Text on card18.41:1AAA
Primary button4.58:1AA
Secondary button4.41:1AA Large
Muted text9.72:1AAA
Accent4.45:1AA Large
Destructive5.18:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.156 0.026 147.678);
  --muted: oklch(0.951 0.008 133.046);
  --muted-foreground: oklch(0.395 0.01 133.164);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.156 0.026 147.678);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.14 0.023 148.005);
  --border: oklch(0.955 0.003 149.097);
  --input: oklch(0.955 0.003 149.097);
  --primary: oklch(0.547 0.167 144.096);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.559 0.158 136.798);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.556 0.118 161.032);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.367 0.14 29.268);
  --destructive-foreground: oklch(0.848 0.075 22.185);
  --ring: oklch(0.547 0.167 144.096);
  --chart-1: oklch(0.547 0.167 144.096);
  --chart-2: oklch(0.559 0.158 136.798);
  --chart-3: oklch(0.556 0.118 161.032);
  --chart-4: oklch(0.598 0.17 136.858);
  --chart-5: oklch(0.553 0.172 143.964);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.022 147.907);
  --foreground: oklch(0.98 0.008 149.041);
  --muted: oklch(0.188 0.013 133.465);
  --muted-foreground: oklch(0.794 0.009 133.059);
  --popover: oklch(0.154 0.022 147.907);
  --popover-foreground: oklch(0.98 0.008 149.041);
  --card: oklch(0.169 0.026 147.472);
  --card-foreground: oklch(0.986 0.005 149.072);
  --border: oklch(0.229 0.008 148.738);
  --input: oklch(0.229 0.008 148.738);
  --primary: oklch(0.547 0.167 144.096);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.559 0.158 136.798);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.556 0.118 161.032);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.561 0.22 29.44);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.547 0.167 144.096);
  --chart-1: oklch(0.547 0.167 144.096);
  --chart-2: oklch(0.559 0.158 136.798);
  --chart-3: oklch(0.556 0.118 161.032);
  --chart-4: oklch(0.598 0.17 136.858);
  --chart-5: oklch(0.553 0.172 143.964);
}