Sage for shadcn/ui

Sage is a shadcn/ui theme built around a deep orange primary color (#503011) with deep violet accents (#301150). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#503011) on a neutral background (#080503).

Color palette

TokenLightDark
Background
#ffffffwhite
#080503black
Foreground
#080502black
#ffffffwhite
Card
#fcfcfcsnow
#0b0804black
Card foreground
#040301black
#ffffffwhite
Popover
#ffffffwhite
#080503black
Popover foreground
#080502black
#ffffffwhite
Primary
#503011saddlebrown
#503011saddlebrown
Primary foreground
#ecc9a7wheat
#ecc9a7wheat
Secondary
#115030darkslategray
#115030darkslategray
Secondary foreground
#a7ecc9powderblue
#a7ecc9powderblue
Muted
#d8eee3gainsboro
#11271cblack
Muted foreground
#4d514fdarkslategray
#aeb2b0darkgray
Accent
#301150midnightblue
#301150midnightblue
Accent foreground
#c9a7ecplum
#c9a7ecplum
Destructive
#662000maroon
#ff5b0forangered
Destructive foreground
#ffb999burlywood
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#503011saddlebrown
#503011saddlebrown

Contrast

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

Light mode
Text on background20.33:1AAA
Text on card20.17:1AAA
Primary button7.57:1AAA
Secondary button6.99:1AA
Muted text6.60:1AA
Accent7.72:1AAA
Destructive7.12:1AAA
Dark mode
Text on background20.32:1AAA
Text on card20.00:1AAA
Primary button7.57:1AAA
Secondary button6.99:1AA
Muted text7.37:1AAA
Accent7.72:1AAA
Destructive6.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.119 0.012 75.336);
  --muted: oklch(0.929 0.027 164.37);
  --muted-foreground: oklch(0.431 0.007 164.698);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.119 0.012 75.336);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.094 0.01 75.336);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.343 0.064 62.517);
  --primary-foreground: oklch(0.858 0.061 66.867);
  --secondary: oklch(0.383 0.082 156.517);
  --secondary-foreground: oklch(0.888 0.085 162.313);
  --accent: oklch(0.266 0.109 302.273);
  --accent-foreground: oklch(0.782 0.104 306.973);
  --destructive: oklch(0.35 0.108 40.97);
  --destructive-foreground: oklch(0.844 0.092 45.858);
  --ring: oklch(0.343 0.064 62.517);
  --chart-1: oklch(0.343 0.064 62.517);
  --chart-2: oklch(0.383 0.082 156.517);
  --chart-3: oklch(0.266 0.109 302.273);
  --chart-4: oklch(0.423 0.093 156.266);
  --chart-5: oklch(0.345 0.066 62.064);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.011 74.761);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.25 0.034 160.711);
  --muted-foreground: oklch(0.76 0.006 164.926);
  --popover: oklch(0.119 0.011 74.761);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.013 74.42);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.343 0.064 62.517);
  --primary-foreground: oklch(0.858 0.061 66.867);
  --secondary: oklch(0.383 0.082 156.517);
  --secondary-foreground: oklch(0.888 0.085 162.313);
  --accent: oklch(0.266 0.109 302.273);
  --accent-foreground: oklch(0.782 0.104 306.973);
  --destructive: oklch(0.683 0.212 39.528);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.343 0.064 62.517);
  --chart-1: oklch(0.343 0.064 62.517);
  --chart-2: oklch(0.383 0.082 156.517);
  --chart-3: oklch(0.266 0.109 302.273);
  --chart-4: oklch(0.423 0.093 156.266);
  --chart-5: oklch(0.345 0.066 62.064);
}