DrawIt for shadcn/ui

DrawIt is a shadcn/ui theme built around a deep cyan primary color (#1b2e35) with near-white accents (#f4f4f5). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid green primary (#aaff01) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#09090bblack
#fafafasnow
Card
#ffffffwhite
#09090bblack
Card foreground
#09090bblack
#fafafasnow
Popover
#ffffffwhite
#09090bblack
Popover foreground
#09090bblack
#fafafasnow
Primary
#1b2e35darkslategray
#aaff01chartreuse
Primary foreground
#ffffffwhite
#000000black
Secondary
#f4f4f5whitesmoke
#27272adarkslategray
Secondary foreground
#18181bblack
#fafafasnow
Muted
#f4f4f5whitesmoke
#27272adarkslategray
Muted foreground
#71717adimgray
#a1a1aadarkgray
Accent
#f4f4f5whitesmoke
#27272adarkslategray
Accent foreground
#18181bblack
#fafafasnow
Destructive
#d61111firebrick
#d61111firebrick
Destructive foreground
#fafafasnow
#fafafasnow
Border
#e4e4e7gainsboro
#27272adarkslategray
Input
#e4e4e7gainsboro
#27272adarkslategray
Ring
#18181bblack
#d4d4d8lightgrey

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button14.10:1AAA
Secondary button16.12:1AAA
Muted text4.39:1AA Large
Accent16.12:1AAA
Destructive5.09:1AA
Dark mode
Text on background20.11:1AAA
Text on card19.06:1AAA
Primary button17.01:1AAA
Secondary button14.26:1AAA
Muted text5.80:1AA
Accent14.26:1AAA
Destructive5.08:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.004 285.824);
  --muted: oklch(0.968 0.001 286.375);
  --muted-foreground: oklch(0.552 0.014 285.942);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.004 285.824);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.141 0.004 285.824);
  --border: oklch(0.92 0.004 286.32);
  --input: oklch(0.92 0.004 286.32);
  --primary: oklch(0.288 0.028 223.223);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.968 0.001 286.375);
  --secondary-foreground: oklch(0.21 0.006 285.883);
  --accent: oklch(0.968 0.001 286.375);
  --accent-foreground: oklch(0.21 0.006 285.883);
  --destructive: oklch(0.555 0.221 28.581);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.21 0.006 285.883);
  --chart-1: oklch(0.677 0.157 35.19);
  --chart-2: oklch(0.631 0.101 183.491);
  --chart-3: oklch(0.379 0.044 225.539);
  --chart-4: oklch(0.834 0.119 88.146);
  --chart-5: oklch(0.783 0.126 58.749);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0 180);
  --muted: oklch(0.274 0.005 286.033);
  --muted-foreground: oklch(0.712 0.013 286.068);
  --popover: oklch(0.141 0.004 285.824);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.141 0.004 285.824);
  --card-foreground: oklch(0.985 0 180);
  --border: oklch(0.274 0.005 286.033);
  --input: oklch(0.274 0.005 286.033);
  --primary: oklch(0.91 0.244 129.867);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.274 0.005 286.033);
  --secondary-foreground: oklch(0.985 0 180);
  --accent: oklch(0.274 0.005 286.033);
  --accent-foreground: oklch(0.985 0 180);
  --destructive: oklch(0.555 0.221 28.579);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.871 0.005 286.285);
  --chart-1: oklch(0.529 0.193 262.129);
  --chart-2: oklch(0.698 0.134 165.463);
  --chart-3: oklch(0.723 0.15 60.631);
  --chart-4: oklch(0.619 0.204 312.728);
  --chart-5: oklch(0.612 0.209 6.386);
}