Drawing for shadcn/ui

Drawing is a shadcn/ui theme built around a blue primary color (#86aeea) with orange accents (#eac286). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#86aeea) on a blue-tinted background (#06090f).

Color palette

TokenLightDark
Background
#fbfcfewhite
#06090fblack
Foreground
#060b14black
#f5f7fawhitesmoke
Card
#f7f9fdghostwhite
#070c12black
Card foreground
#050910black
#f8fafcghostwhite
Popover
#fbfcfewhite
#06090fblack
Popover foreground
#060b14black
#f5f7fawhitesmoke
Primary
#86aeeaskyblue
#86aeeaskyblue
Primary foreground
#091a34black
#091a34black
Secondary
#eac286burlywood
#eac286burlywood
Secondary foreground
#342309black
#342309black
Muted
#e8e4degainsboro
#211d17black
Muted foreground
#4f4b45darkslategray
#bab6b0silver
Accent
#eac286burlywood
#eac286burlywood
Accent foreground
#342309black
#342309black
Destructive
#95390fsaddlebrown
#e35716chocolate
Destructive foreground
#fbe4daantiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#86aeeaskyblue
#86aeeaskyblue

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card18.95:1AAA
Primary button7.62:1AAA
Secondary button8.99:1AAA
Muted text6.83:1AA
Accent8.99:1AAA
Destructive6.01:1AA
Dark mode
Text on background18.55:1AAA
Text on card18.77:1AAA
Primary button7.62:1AAA
Secondary button8.99:1AAA
Muted text8.30:1AAA
Accent8.99:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 258.32);
  --foreground: oklch(0.15 0.021 255.974);
  --muted: oklch(0.92 0.009 78.281);
  --muted-foreground: oklch(0.415 0.012 78.196);
  --popover: oklch(0.991 0.003 258.32);
  --popover-foreground: oklch(0.15 0.021 255.974);
  --card: oklch(0.982 0.005 258.327);
  --card-foreground: oklch(0.138 0.017 253.293);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.744 0.098 258.302);
  --primary-foreground: oklch(0.221 0.055 258.389);
  --secondary: oklch(0.834 0.089 77.171);
  --secondary-foreground: oklch(0.271 0.047 74.315);
  --accent: oklch(0.834 0.089 77.171);
  --accent-foreground: oklch(0.271 0.047 74.315);
  --destructive: oklch(0.467 0.133 41.381);
  --destructive-foreground: oklch(0.936 0.029 46.532);
  --ring: oklch(0.744 0.098 258.302);
  --chart-1: oklch(0.744 0.098 258.302);
  --chart-2: oklch(0.834 0.089 77.171);
  --chart-3: oklch(0.834 0.089 77.171);
  --chart-4: oklch(0.852 0.08 77.446);
  --chart-5: oklch(0.742 0.102 258.296);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.014 254.554);
  --foreground: oklch(0.975 0.005 258.325);
  --muted: oklch(0.233 0.012 78.018);
  --muted-foreground: oklch(0.778 0.01 78.269);
  --popover: oklch(0.14 0.014 254.554);
  --popover-foreground: oklch(0.975 0.005 258.325);
  --card: oklch(0.151 0.016 257.111);
  --card-foreground: oklch(0.983 0.003 258.321);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.744 0.098 258.302);
  --primary-foreground: oklch(0.221 0.055 258.389);
  --secondary: oklch(0.834 0.089 77.171);
  --secondary-foreground: oklch(0.271 0.047 74.315);
  --accent: oklch(0.834 0.089 77.171);
  --accent-foreground: oklch(0.271 0.047 74.315);
  --destructive: oklch(0.635 0.187 40.736);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.744 0.098 258.302);
  --chart-1: oklch(0.744 0.098 258.302);
  --chart-2: oklch(0.834 0.089 77.171);
  --chart-3: oklch(0.834 0.089 77.171);
  --chart-4: oklch(0.852 0.08 77.446);
  --chart-5: oklch(0.742 0.102 258.296);
}