Drawing is a shadcn/ui theme built around a vivid pink primary color (#e93580) with vivid blue accents (#3580e9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid pink primary (#e93580) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #120309black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #0d0207black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #0d0207black | #ffffffwhite |
| Primary | #e93580deeppink | #e93580deeppink |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #80e935yellowgreen | #80e935yellowgreen |
| Secondary foreground | #234908darkgreen | #234908darkgreen |
| Muted | #e7ede3beige | #161c12black |
| Muted foreground | #4b5346darkslategray | #b1b9acdarkgray |
| Accent | #3580e9royalblue | #3580e9royalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a24411saddlebrown | #e96d2bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e93580deeppink | #e93580deeppink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 3.98:1 | AA Large |
| Secondary button | 6.69:1 | AA |
| Muted text | 6.71:1 | AA |
| Accent | 3.88:1 | AA Large |
| Destructive | 6.26:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 3.98:1 | AA Large |
| Secondary button | 6.69:1 | AA |
| Muted text | 8.60:1 | AAA |
| Accent | 3.88:1 | AA Large |
| Destructive | 6.68:1 | AA |
Paste this into your globals.css to use Drawing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.035 351.636);
--muted: oklch(0.939 0.015 131.854);
--muted-foreground: oklch(0.432 0.024 132.199);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.118 0.031 349.765);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.118 0.031 349.765);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.627 0.22 1.143);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.837 0.228 135.641);
--secondary-foreground: oklch(0.365 0.101 135.806);
--accent: oklch(0.608 0.175 257.667);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.504 0.138 43.881);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.627 0.22 1.143);
--chart-1: oklch(0.627 0.22 1.143);
--chart-2: oklch(0.837 0.228 135.641);
--chart-3: oklch(0.608 0.175 257.667);
--chart-4: oklch(0.846 0.218 135.15);
--chart-5: oklch(0.63 0.225 1.651);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.217 0.021 132.575);
--muted-foreground: oklch(0.777 0.021 131.949);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.627 0.22 1.143);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.837 0.228 135.641);
--secondary-foreground: oklch(0.365 0.101 135.806);
--accent: oklch(0.608 0.175 257.667);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.674 0.171 45.211);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.627 0.22 1.143);
--chart-1: oklch(0.627 0.22 1.143);
--chart-2: oklch(0.837 0.228 135.641);
--chart-3: oklch(0.608 0.175 257.667);
--chart-4: oklch(0.846 0.218 135.15);
--chart-5: oklch(0.63 0.225 1.651);
}