Downright for shadcn/ui

Downright is a shadcn/ui theme built around a vivid orange primary color (#fa9e47) with neutral gray accents (#dedede). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid orange primary (#fa9e47) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#ffffffwhite
#030302black
Foreground
#0d0702black
#fbfaf9snow
Card
#fcfcfcsnow
#070503black
Card foreground
#090502black
#fdfcfcsnow
Popover
#fcfcfcsnow
#070503black
Popover foreground
#090502black
#fdfcfcsnow
Primary
#fa9e47sandybrown
#fa9e47sandybrown
Primary foreground
#0f0700black
#0f0700black
Secondary
#dededegainsboro
#332e29darkslategray
Secondary foreground
#464544darkslategray
#cdc7c1silver
Muted
#f1e8dfantiquewhite
#20170eblack
Muted foreground
#6d665fdimgray
#a09992darkgray
Accent
#dededegainsboro
#332e29darkslategray
Accent foreground
#464544darkslategray
#cdc7c1silver
Destructive
#af4008saddlebrown
#ea550borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fa9e47sandybrown
#fa9e47sandybrown

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card19.86:1AAA
Primary button9.54:1AAA
Secondary button7.10:1AAA
Muted text4.66:1AA
Accent7.10:1AAA
Destructive5.88:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.86:1AAA
Primary button9.54:1AAA
Secondary button8.04:1AAA
Muted text6.29:1AA
Accent8.04:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.137 0.018 74.834);
  --muted: oklch(0.935 0.015 65.774);
  --muted-foreground: oklch(0.514 0.014 65.626);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.119 0.016 75.845);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.119 0.016 75.845);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.777 0.149 60.491);
  --primary-foreground: oklch(0.139 0.027 78.024);
  --secondary: oklch(0.9 0.001 65.959);
  --secondary-foreground: oklch(0.39 0.001 65.922);
  --accent: oklch(0.9 0.001 65.959);
  --accent-foreground: oklch(0.39 0.001 65.922);
  --destructive: oklch(0.521 0.156 40.918);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.777 0.149 60.491);
  --chart-1: oklch(0.777 0.149 60.491);
  --chart-2: oklch(0.9 0.001 65.959);
  --chart-3: oklch(0.9 0.001 65.959);
  --chart-4: oklch(0.924 0 65.961);
  --chart-5: oklch(0.78 0.152 60.177);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.006 71.107);
  --foreground: oklch(0.985 0.002 65.943);
  --muted: oklch(0.212 0.021 64.354);
  --muted-foreground: oklch(0.686 0.013 65.733);
  --popover: oklch(0.118 0.008 71.107);
  --popover-foreground: oklch(0.993 0.001 65.954);
  --card: oklch(0.118 0.008 71.107);
  --card-foreground: oklch(0.993 0.001 65.954);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.777 0.149 60.491);
  --primary-foreground: oklch(0.139 0.027 78.024);
  --secondary: oklch(0.304 0.011 65.49);
  --secondary-foreground: oklch(0.832 0.011 65.81);
  --accent: oklch(0.304 0.011 65.49);
  --accent-foreground: oklch(0.832 0.011 65.81);
  --destructive: oklch(0.642 0.196 40.369);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.777 0.149 60.491);
  --chart-1: oklch(0.777 0.149 60.491);
  --chart-2: oklch(0.304 0.011 65.49);
  --chart-3: oklch(0.304 0.011 65.49);
  --chart-4: oklch(0.335 0.013 65.473);
  --chart-5: oklch(0.78 0.152 60.177);
}