Planter is a shadcn/ui theme built around a muted light purple primary color (#ded3de) with muted light pink accents (#ded3da). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the muted light purple primary (#ded3de) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6fdsnow | #000000black |
| Foreground | #140415black | #ffffffwhite |
| Card | #fdf6fdsnow | #000000black |
| Card foreground | #140415black | #ffffffwhite |
| Popover | #fdf6fdsnow | #000000black |
| Popover foreground | #140415black | #ffffffwhite |
| Primary | #ded3degainsboro | #ded3degainsboro |
| Primary foreground | #483649darkslategray | #483649darkslategray |
| Secondary | #d8d3degainsboro | #d8d3degainsboro |
| Secondary foreground | #3e3649darkslategray | #3e3649darkslategray |
| Muted | #d8d5ddgainsboro | #26222adarkslategray |
| Muted foreground | #53495fdarkslategray | #a9a0b6darkgray |
| Accent | #ded3dagainsboro | #ded3dagainsboro |
| Accent foreground | #493641darkslategray | #493641darkslategray |
| Destructive | #662505maroon | #ef570borangered |
| Destructive foreground | #fbc0a2navajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ded3degainsboro | #ded3degainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.74:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 5.80:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.62:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Planter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.011 323.696);
--foreground: oklch(0.149 0.045 325.135);
--muted: oklch(0.877 0.012 305.556);
--muted-foreground: oklch(0.424 0.038 304.556);
--popover: oklch(0.981 0.011 323.696);
--popover-foreground: oklch(0.149 0.045 325.135);
--card: oklch(0.981 0.011 323.696);
--card-foreground: oklch(0.149 0.045 325.135);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.879 0.019 323.75);
--primary-foreground: oklch(0.361 0.04 324.184);
--secondary: oklch(0.874 0.016 305.489);
--secondary-foreground: oklch(0.35 0.034 304.424);
--accent: oklch(0.878 0.015 342.221);
--accent-foreground: oklch(0.359 0.032 343.839);
--destructive: oklch(0.358 0.102 42.503);
--destructive-foreground: oklch(0.853 0.079 47.777);
--ring: oklch(0.879 0.019 323.75);
--chart-1: oklch(0.879 0.019 323.75);
--chart-2: oklch(0.874 0.016 305.489);
--chart-3: oklch(0.878 0.015 342.221);
--chart-4: oklch(0.9 0.013 305.546);
--chart-5: oklch(0.878 0.023 323.772);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.26 0.016 304.901);
--muted-foreground: oklch(0.721 0.033 305.131);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.879 0.019 323.75);
--primary-foreground: oklch(0.361 0.04 324.184);
--secondary: oklch(0.874 0.016 305.489);
--secondary-foreground: oklch(0.35 0.034 304.424);
--accent: oklch(0.878 0.015 342.221);
--accent-foreground: oklch(0.359 0.032 343.839);
--destructive: oklch(0.652 0.2 40.335);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.879 0.019 323.75);
--chart-1: oklch(0.879 0.019 323.75);
--chart-2: oklch(0.874 0.016 305.489);
--chart-3: oklch(0.878 0.015 342.221);
--chart-4: oklch(0.9 0.013 305.546);
--chart-5: oklch(0.878 0.023 323.772);
}