Perky is a shadcn/ui theme built around a vivid deep indigo primary color (#040725) with near-white accents (#eaeaeb). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the vivid deep indigo primary (#040725) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #020203black |
| Foreground | #010104black | #f7f7f8whitesmoke |
| Card | #f8f8fcghostwhite | #030407black |
| Card foreground | #000000black | #f9f9faghostwhite |
| Popover | #f8f8fcghostwhite | #030407black |
| Popover foreground | #000000black | #f9f9faghostwhite |
| Primary | #040725black | #040725black |
| Primary foreground | #c8ccf9lightblue | #c8ccf9lightblue |
| Secondary | #eaeaeblavender | #313135darkslategray |
| Secondary foreground | #515152darkslategray | #cacacelightgrey |
| Muted | #f0f1f4whitesmoke | #0b0b0fblack |
| Muted foreground | #5d5e6fdimgray | #9091a2lightslategray |
| Accent | #eaeaeblavender | #313135darkslategray |
| Accent foreground | #515152darkslategray | #cacacelightgrey |
| Destructive | #6b190bmaroon | #d13115firebrick |
| Destructive foreground | #f7bbb0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #040725black | #040725black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 12.67:1 | AAA |
| Secondary button | 6.61:1 | AA |
| Muted text | 5.63:1 | AA |
| Accent | 6.61:1 | AA |
| Destructive | 7.18:1 | AAA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 12.67:1 | AAA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 5.05:1 | AA |
Paste this into your globals.css to use Perky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 282.17);
--foreground: oklch(0.072 0.02 273.122);
--muted: oklch(0.958 0.005 282.131);
--muted-foreground: oklch(0.488 0.027 281.246);
--popover: oklch(0.98 0.005 282.126);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.005 282.126);
--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.15 0.062 271.2);
--primary-foreground: oklch(0.857 0.062 280.929);
--secondary: oklch(0.938 0.001 282.203);
--secondary-foreground: oklch(0.435 0.002 282.119);
--accent: oklch(0.938 0.001 282.203);
--accent-foreground: oklch(0.435 0.002 282.119);
--destructive: oklch(0.351 0.117 32.349);
--destructive-foreground: oklch(0.844 0.072 30.016);
--ring: oklch(0.15 0.062 271.2);
--chart-1: oklch(0.15 0.062 271.2);
--chart-2: oklch(0.938 0.001 282.203);
--chart-3: oklch(0.938 0.001 282.203);
--chart-4: oklch(0.962 0 282.207);
--chart-5: oklch(0.149 0.064 270.348);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.01 278.962);
--foreground: oklch(0.975 0.002 282.177);
--muted: oklch(0.152 0.007 281.35);
--muted-foreground: oklch(0.662 0.025 281.566);
--popover: oklch(0.105 0.012 278.962);
--popover-foreground: oklch(0.984 0.001 282.189);
--card: oklch(0.105 0.012 278.962);
--card-foreground: oklch(0.984 0.001 282.189);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.15 0.062 271.2);
--primary-foreground: oklch(0.857 0.062 280.929);
--secondary: oklch(0.315 0.007 281.857);
--secondary-foreground: oklch(0.841 0.005 282.11);
--accent: oklch(0.315 0.007 281.857);
--accent-foreground: oklch(0.841 0.005 282.11);
--destructive: oklch(0.564 0.2 32.15);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.15 0.062 271.2);
--chart-1: oklch(0.15 0.062 271.2);
--chart-2: oklch(0.315 0.007 281.857);
--chart-3: oklch(0.315 0.007 281.857);
--chart-4: oklch(0.345 0.007 281.847);
--chart-5: oklch(0.149 0.064 270.348);
}