Perky is a shadcn/ui theme built around a light purple primary color (#e5cee9) with light green accents (#d2e9ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#e5cee9) on a purple-tinted background (#0e050f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e050fblack |
| Foreground | #0f0411black | #f9f5faghostwhite |
| Card | #fcfcfcsnow | #110713black |
| Card foreground | #0b030dblack | #fbf8fbsnow |
| Popover | #ffffffwhite | #0e050fblack |
| Popover foreground | #0f0411black | #f9f5faghostwhite |
| Primary | #e5cee9gainsboro | #e5cee9gainsboro |
| Primary foreground | #532a5bdarkslateblue | #532a5bdarkslateblue |
| Secondary | #d2e9cegainsboro | #d2e9cegainsboro |
| Secondary foreground | #315b2adarkslategray | #315b2adarkslategray |
| Muted | #d4e6d0gainsboro | #1c2f19black |
| Muted foreground | #40463fdarkslategray | #bac0b9silver |
| Accent | #d2e9cegainsboro | #d2e9cegainsboro |
| Accent foreground | #315b2adarkslategray | #315b2adarkslategray |
| Destructive | #661e0bmaroon | #e9582fchocolate |
| Destructive foreground | #f6bcaclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5cee9gainsboro | #e5cee9gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.08:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 6.10:1 | AA |
| Muted text | 7.41:1 | AAA |
| Accent | 6.10:1 | AA |
| Destructive | 7.24:1 | AAA |
| Text on background | 18.57:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 6.10:1 | AA |
| Muted text | 7.72:1 | AAA |
| Accent | 6.10:1 | AA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Perky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.134 0.037 322.226);
--muted: oklch(0.906 0.036 140.979);
--muted-foreground: oklch(0.385 0.013 140.99);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.134 0.037 322.226);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.121 0.032 322.794);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.878 0.043 321.17);
--primary-foreground: oklch(0.361 0.095 321.444);
--secondary: oklch(0.909 0.043 140.963);
--secondary-foreground: oklch(0.427 0.09 140.73);
--accent: oklch(0.909 0.043 140.963);
--accent-foreground: oklch(0.427 0.09 140.73);
--destructive: oklch(0.347 0.107 35.676);
--destructive-foreground: oklch(0.844 0.071 36.008);
--ring: oklch(0.878 0.043 321.17);
--chart-1: oklch(0.878 0.043 321.17);
--chart-2: oklch(0.909 0.043 140.963);
--chart-3: oklch(0.909 0.043 140.963);
--chart-4: oklch(0.928 0.033 140.987);
--chart-5: oklch(0.877 0.047 321.178);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.027 321.871);
--foreground: oklch(0.975 0.008 321.082);
--muted: oklch(0.281 0.046 140.753);
--muted-foreground: oklch(0.801 0.011 141.035);
--popover: oklch(0.137 0.027 321.871);
--popover-foreground: oklch(0.975 0.008 321.082);
--card: oklch(0.15 0.031 321.595);
--card-foreground: oklch(0.983 0.005 321.076);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.878 0.043 321.17);
--primary-foreground: oklch(0.361 0.095 321.444);
--secondary: oklch(0.909 0.043 140.963);
--secondary-foreground: oklch(0.427 0.09 140.73);
--accent: oklch(0.909 0.043 140.963);
--accent-foreground: oklch(0.427 0.09 140.73);
--destructive: oklch(0.646 0.188 35.959);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.878 0.043 321.17);
--chart-1: oklch(0.878 0.043 321.17);
--chart-2: oklch(0.909 0.043 140.963);
--chart-3: oklch(0.909 0.043 140.963);
--chart-4: oklch(0.928 0.033 140.987);
--chart-5: oklch(0.877 0.047 321.178);
}