Dragon for shadcn/ui

Dragon is a shadcn/ui theme built around a muted orange primary color (#675442) with muted yellow accents (#676642). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted orange primary (#675442) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#150c04black
#fdfcfcsnow
Card
#ffffffwhite
#000000black
Card foreground
#150c04black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#150c04black
#fdfcfcsnow
Primary
#675442darkolivegreen
#675442darkolivegreen
Primary foreground
#f1ede9linen
#f1ede9linen
Secondary
#674242darkolivegreen
#674242darkolivegreen
Secondary foreground
#f1e9e9linen
#f1e9e9linen
Muted
#f3e7e8linen
#180c0cblack
Muted foreground
#5b4d4edimgray
#b2a4a4darkgray
Accent
#676642darkolivegreen
#676642darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ce440dchocolate
#f05214orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#675442darkolivegreen
#675442darkolivegreen

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button6.20:1AA
Secondary button7.25:1AAA
Muted text6.66:1AA
Accent5.91:1AA
Destructive4.71:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button6.20:1AA
Secondary button7.25:1AAA
Muted text7.97:1AAA
Accent5.91:1AA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.166 0.023 67.594);
  --muted: oklch(0.938 0.012 16.209);
  --muted-foreground: oklch(0.435 0.018 16.727);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.166 0.023 67.594);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.166 0.023 67.594);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.459 0.038 64.762);
  --primary-foreground: oklch(0.948 0.007 65.882);
  --secondary: oklch(0.421 0.052 18.389);
  --secondary-foreground: oklch(0.941 0.009 16.134);
  --accent: oklch(0.501 0.054 107.357);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.577 0.183 37.893);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.459 0.038 64.762);
  --chart-1: oklch(0.459 0.038 64.762);
  --chart-2: oklch(0.421 0.052 18.389);
  --chart-3: oklch(0.501 0.054 107.357);
  --chart-4: oklch(0.446 0.056 18.425);
  --chart-5: oklch(0.461 0.043 64.548);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 65.948);
  --muted: oklch(0.171 0.02 18.243);
  --muted-foreground: oklch(0.731 0.016 16.357);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 65.948);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.002 65.948);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.459 0.038 64.762);
  --primary-foreground: oklch(0.948 0.007 65.882);
  --secondary: oklch(0.421 0.052 18.389);
  --secondary-foreground: oklch(0.941 0.009 16.134);
  --accent: oklch(0.501 0.054 107.357);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.649 0.204 38.163);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.459 0.038 64.762);
  --chart-1: oklch(0.459 0.038 64.762);
  --chart-2: oklch(0.421 0.052 18.389);
  --chart-3: oklch(0.501 0.054 107.357);
  --chart-4: oklch(0.446 0.056 18.425);
  --chart-5: oklch(0.461 0.043 64.548);
}