Perky is a shadcn/ui theme built around a purple primary color (#d896de) with muted light purple accents (#e3dde4). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the purple primary (#d896de) on a neutral background (#030204).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fcsnow | #030204black |
| Foreground | #080209black | #fdfcfdwhite |
| Card | #fcf8fcsnow | #030204black |
| Card foreground | #080209black | #fdfcfdwhite |
| Popover | #fcf8fcsnow | #030204black |
| Popover foreground | #080209black | #fdfcfdwhite |
| Primary | #d896deplum | #d896deplum |
| Primary foreground | #301032midnightblue | #301032midnightblue |
| Secondary | #e3dde4gainsboro | #2b272bdarkslategray |
| Secondary foreground | #4f3f50darkslategray | #c4bfc5silver |
| Muted | #e9e6ealavender | #181519black |
| Muted foreground | #4d464edarkslategray | #b8b1b9silver |
| Accent | #e3dde4gainsboro | #2b272bdarkslategray |
| Accent foreground | #4f3f50darkslategray | #c4bfc5silver |
| Destructive | #792002maroon | #fc5822tomato |
| Destructive foreground | #fec2aflightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d896deplum | #d896deplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 7.27:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.51:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 8.62:1 | AAA |
| Accent | 8.15:1 | AAA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Perky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.007 323.167);
--foreground: oklch(0.106 0.031 325.267);
--muted: oklch(0.929 0.005 323.161);
--muted-foreground: oklch(0.404 0.015 323.304);
--popover: oklch(0.983 0.007 323.167);
--popover-foreground: oklch(0.106 0.031 325.267);
--card: oklch(0.983 0.007 323.167);
--card-foreground: oklch(0.106 0.031 325.267);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.762 0.123 323.813);
--primary-foreground: oklch(0.239 0.074 324.249);
--secondary: oklch(0.904 0.012 323.197);
--secondary-foreground: oklch(0.39 0.035 323.533);
--accent: oklch(0.904 0.012 323.197);
--accent-foreground: oklch(0.39 0.035 323.533);
--destructive: oklch(0.384 0.128 36.467);
--destructive-foreground: oklch(0.864 0.074 39.227);
--ring: oklch(0.762 0.123 323.813);
--chart-1: oklch(0.762 0.123 323.813);
--chart-2: oklch(0.904 0.012 323.197);
--chart-3: oklch(0.904 0.012 323.197);
--chart-4: oklch(0.928 0.009 323.18);
--chart-5: oklch(0.761 0.129 323.846);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.013 324.295);
--foreground: oklch(0.992 0.002 323.142);
--muted: oklch(0.202 0.008 323.31);
--muted-foreground: oklch(0.769 0.013 323.211);
--popover: oklch(0.088 0.013 324.295);
--popover-foreground: oklch(0.992 0.002 323.142);
--card: oklch(0.088 0.013 324.295);
--card-foreground: oklch(0.992 0.002 323.142);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.762 0.123 323.813);
--primary-foreground: oklch(0.239 0.074 324.249);
--secondary: oklch(0.277 0.009 323.285);
--secondary-foreground: oklch(0.81 0.01 323.194);
--accent: oklch(0.277 0.009 323.285);
--accent-foreground: oklch(0.81 0.01 323.194);
--destructive: oklch(0.675 0.208 37.146);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.762 0.123 323.813);
--chart-1: oklch(0.762 0.123 323.813);
--chart-2: oklch(0.277 0.009 323.285);
--chart-3: oklch(0.277 0.009 323.285);
--chart-4: oklch(0.308 0.011 323.291);
--chart-5: oklch(0.761 0.129 323.846);
}