Drawing for shadcn/ui

Drawing is a shadcn/ui theme built around a vivid pink primary color (#f47bc4) with vivid blue accents (#7bc4f4). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid pink primary (#f47bc4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfdsnow
#000000black
Foreground
#000000black
#fdfbfdsnow
Card
#fefbfdsnow
#000000black
Card foreground
#000000black
#fdfbfdsnow
Popover
#fefbfdsnow
#000000black
Popover foreground
#000000black
#fdfbfdsnow
Primary
#f47bc4hotpink
#f47bc4hotpink
Primary foreground
#390524black
#390524black
Secondary
#c4f47bkhaki
#c4f47bkhaki
Secondary foreground
#243905darkgreen
#243905darkgreen
Muted
#ecf0e5beige
#151a0fblack
Muted foreground
#5e6751dimgray
#a5ae98darkgray
Accent
#7bc4f4lightskyblue
#7bc4f4lightskyblue
Accent foreground
#052439midnightblue
#052439midnightblue
Destructive
#cb2d01firebrick
#fe3c06orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f47bc4hotpink
#f47bc4hotpink

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button6.94:1AA
Secondary button9.98:1AAA
Muted text5.13:1AA
Accent8.36:1AAA
Destructive5.36:1AA
Dark mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button6.94:1AA
Secondary button9.98:1AAA
Muted text7.68:1AAA
Accent8.36:1AAA
Destructive3.58: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.004 340.326);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.015 124.569);
  --muted-foreground: oklch(0.499 0.036 125.398);
  --popover: oklch(0.991 0.004 340.326);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.004 340.326);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.743 0.17 345.065);
  --primary-foreground: oklch(0.233 0.087 349.201);
  --secondary: oklch(0.909 0.159 127.287);
  --secondary-foreground: oklch(0.314 0.079 129.652);
  --accent: oklch(0.79 0.101 239.017);
  --accent-foreground: oklch(0.249 0.053 242.42);
  --destructive: oklch(0.549 0.199 33.615);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.743 0.17 345.065);
  --chart-1: oklch(0.743 0.17 345.065);
  --chart-2: oklch(0.909 0.159 127.287);
  --chart-3: oklch(0.79 0.101 239.017);
  --chart-4: oklch(0.917 0.144 126.894);
  --chart-5: oklch(0.743 0.175 345.233);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.003 340.292);
  --muted: oklch(0.208 0.021 125.876);
  --muted-foreground: oklch(0.738 0.032 124.985);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.003 340.292);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.003 340.292);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.743 0.17 345.065);
  --primary-foreground: oklch(0.233 0.087 349.201);
  --secondary: oklch(0.909 0.159 127.287);
  --secondary-foreground: oklch(0.314 0.079 129.652);
  --accent: oklch(0.79 0.101 239.017);
  --accent-foreground: oklch(0.249 0.053 242.42);
  --destructive: oklch(0.651 0.234 33.577);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.743 0.17 345.065);
  --chart-1: oklch(0.743 0.17 345.065);
  --chart-2: oklch(0.909 0.159 127.287);
  --chart-3: oklch(0.79 0.101 239.017);
  --chart-4: oklch(0.917 0.144 126.894);
  --chart-5: oklch(0.743 0.175 345.233);
}