Orange for shadcn/ui

Orange is a shadcn/ui theme built around a deep green primary color (#1d5934) with neutral gray accents (#d2d5d3). The light mode uses a neutral background (#f6fdf9). Dark mode keeps the deep green primary (#1d5934) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#f6fdf9mintcream
#030705black
Foreground
#030d07black
#f8fcf9mintcream
Card
#f2fcf6mintcream
#050b07black
Card foreground
#020804black
#fcfdfcwhite
Popover
#f6fdf9mintcream
#030705black
Popover foreground
#030d07black
#f8fcf9mintcream
Primary
#1d5934darkslategray
#1d5934darkslategray
Primary foreground
#beeacepowderblue
#beeacepowderblue
Secondary
#d2d5d3lightgrey
#141a16black
Secondary foreground
#393c3adarkslategray
#a6baaedarkgray
Muted
#dee7e2gainsboro
#18211bblack
Muted foreground
#424844darkslategray
#b7bdbasilver
Accent
#d2d5d3lightgrey
#141a16black
Accent foreground
#393c3adarkslategray
#a6baaedarkgray
Destructive
#d4160cfirebrick
#e7180dred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1d5934darkslategray
#1d5934darkslategray

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.34:1AAA
Primary button6.30:1AA
Secondary button7.55:1AAA
Muted text7.44:1AAA
Accent7.55:1AAA
Destructive5.35:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.51:1AAA
Primary button6.30:1AA
Secondary button8.62:1AAA
Muted text8.68:1AAA
Accent8.62:1AAA
Destructive4.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 159.264);
  --foreground: oklch(0.143 0.023 158.923);
  --muted: oklch(0.921 0.012 159.174);
  --muted-foreground: oklch(0.394 0.009 158.941);
  --popover: oklch(0.989 0.009 159.264);
  --popover-foreground: oklch(0.143 0.023 158.923);
  --card: oklch(0.983 0.014 159.158);
  --card-foreground: oklch(0.124 0.02 159.273);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.413 0.087 153.03);
  --primary-foreground: oklch(0.898 0.059 157.909);
  --secondary: oklch(0.87 0.004 159.378);
  --secondary-foreground: oklch(0.354 0.006 159.085);
  --accent: oklch(0.87 0.004 159.378);
  --accent-foreground: oklch(0.354 0.006 159.085);
  --destructive: oklch(0.553 0.218 29.454);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.413 0.087 153.03);
  --chart-1: oklch(0.413 0.087 153.03);
  --chart-2: oklch(0.87 0.004 159.378);
  --chart-3: oklch(0.87 0.004 159.378);
  --chart-4: oklch(0.894 0.003 159.396);
  --chart-5: oklch(0.418 0.091 152.677);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.013 159.343);
  --foreground: oklch(0.987 0.005 159.365);
  --muted: oklch(0.235 0.017 157.77);
  --muted-foreground: oklch(0.793 0.008 159.251);
  --popover: oklch(0.121 0.013 159.343);
  --popover-foreground: oklch(0.987 0.005 159.365);
  --card: oklch(0.139 0.015 159.309);
  --card-foreground: oklch(0.993 0.002 159.417);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.413 0.087 153.03);
  --primary-foreground: oklch(0.898 0.059 157.909);
  --secondary: oklch(0.21 0.012 158.185);
  --secondary-foreground: oklch(0.77 0.029 158.609);
  --accent: oklch(0.21 0.012 158.185);
  --accent-foreground: oklch(0.77 0.029 158.609);
  --destructive: oklch(0.59 0.233 29.467);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.413 0.087 153.03);
  --chart-1: oklch(0.413 0.087 153.03);
  --chart-2: oklch(0.21 0.012 158.185);
  --chart-3: oklch(0.21 0.012 158.185);
  --chart-4: oklch(0.245 0.015 158.05);
  --chart-5: oklch(0.418 0.091 152.677);
}