Practical is a shadcn/ui theme built around a muted deep pink primary color (#211c1f) with muted deep red accents (#211c1c). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the muted deep pink primary (#211c1f) on a pink-tinted background (#0d070b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fasnow | #0d070bblack |
| Foreground | #000000black | #ffffffwhite |
| Card | #faf5f8whitesmoke | #11090dblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf8fasnow | #0d070bblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #211c1fblack | #211c1fblack |
| Primary foreground | #bdb2b8silver | #bdb2b8silver |
| Secondary | #211c21black | #211c21black |
| Secondary foreground | #bdb2bdsilver | #bdb2bdsilver |
| Muted | #f0e5f1lavender | #1a0e1ablack |
| Muted foreground | #463e46darkslategray | #c0b9c1silver |
| Accent | #211c1cblack | #211c1cblack |
| Accent foreground | #bdb2b2silver | #bdb2b2silver |
| Destructive | #a32f05firebrick | #f8612atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #211c1fblack | #211c1fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 8.41:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 19.95:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 8.16:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 9.74:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Practical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 342.723);
--foreground: oklch(0 0 0);
--muted: oklch(0.933 0.02 324.252);
--muted-foreground: oklch(0.376 0.017 324.384);
--popover: oklch(0.983 0.004 342.723);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.974 0.006 342.776);
--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.234 0.009 343.542);
--primary-foreground: oklch(0.775 0.016 343.106);
--secondary: oklch(0.234 0.012 324.411);
--secondary-foreground: oklch(0.776 0.02 324.279);
--accent: oklch(0.233 0.008 14.266);
--accent-foreground: oklch(0.773 0.013 13.944);
--destructive: oklch(0.48 0.158 36.668);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.234 0.009 343.542);
--chart-1: oklch(0.234 0.009 343.542);
--chart-2: oklch(0.234 0.012 324.411);
--chart-3: oklch(0.233 0.008 14.266);
--chart-4: oklch(0.266 0.014 324.429);
--chart-5: oklch(0.233 0.012 343.887);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.015 343.906);
--foreground: oklch(1 0 180);
--muted: oklch(0.187 0.029 324.966);
--muted-foreground: oklch(0.793 0.014 324.231);
--popover: oklch(0.14 0.015 343.906);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.152 0.017 345.037);
--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.234 0.009 343.542);
--primary-foreground: oklch(0.775 0.016 343.106);
--secondary: oklch(0.234 0.012 324.411);
--secondary-foreground: oklch(0.776 0.02 324.279);
--accent: oklch(0.233 0.008 14.266);
--accent-foreground: oklch(0.773 0.013 13.944);
--destructive: oklch(0.681 0.196 38.708);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.234 0.009 343.542);
--chart-1: oklch(0.234 0.009 343.542);
--chart-2: oklch(0.234 0.012 324.411);
--chart-3: oklch(0.233 0.008 14.266);
--chart-4: oklch(0.266 0.014 324.429);
--chart-5: oklch(0.233 0.012 343.887);
}