Perfect is a shadcn/ui theme built around a muted light teal primary color (#e0e6e4) with muted light cyan accents (#e0e4e6). The light mode uses a neutral background (#f7fcfb). Dark mode keeps the muted light teal primary (#e0e6e4) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfbmintcream | #030706black |
| Foreground | #010403black | #ffffffwhite |
| Card | #f4fbf9mintcream | #040b09black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7fcfbmintcream | #030706black |
| Popover foreground | #010403black | #ffffffwhite |
| Primary | #e0e6e4gainsboro | #e0e6e4gainsboro |
| Primary foreground | #42524edarkslategray | #42524edarkslategray |
| Secondary | #e0e6e1gainsboro | #e0e6e1gainsboro |
| Secondary foreground | #425246darkslategray | #425246darkslategray |
| Muted | #f0f4f1whitesmoke | #0b0f0cblack |
| Muted foreground | #424d45darkslategray | #b2bdb5silver |
| Accent | #e0e4e6gainsboro | #e0e4e6gainsboro |
| Accent foreground | #424e52darkslategray | #424e52darkslategray |
| Destructive | #6d0503maroon | #e00906red |
| Destructive foreground | #fda7a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0e6e4gainsboro | #e0e6e4gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 6.56:1 | AA |
| Muted text | 7.96:1 | AAA |
| Accent | 6.73:1 | AA |
| Destructive | 6.70:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 6.56:1 | AA |
| Muted text | 9.98:1 | AAA |
| Accent | 6.73:1 | AA |
| Destructive | 4.99:1 | AA |
Paste this into your globals.css to use Perfect in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 179.703);
--foreground: oklch(0.1 0.013 179.92);
--muted: oklch(0.964 0.006 153.78);
--muted-foreground: oklch(0.408 0.02 152.997);
--popover: oklch(0.988 0.006 179.703);
--popover-foreground: oklch(0.1 0.013 179.92);
--card: oklch(0.982 0.008 179.62);
--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.92 0.007 179.65);
--primary-foreground: oklch(0.424 0.021 178.339);
--secondary: oklch(0.919 0.009 153.71);
--secondary-foreground: oklch(0.421 0.029 152.659);
--accent: oklch(0.917 0.005 219.551);
--accent-foreground: oklch(0.415 0.017 219.905);
--destructive: oklch(0.34 0.135 29.148);
--destructive-foreground: oklch(0.812 0.102 20.598);
--ring: oklch(0.92 0.007 179.65);
--chart-1: oklch(0.92 0.007 179.65);
--chart-2: oklch(0.919 0.009 153.71);
--chart-3: oklch(0.917 0.005 219.551);
--chart-4: oklch(0.941 0.007 153.759);
--chart-5: oklch(0.921 0.009 179.592);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.012 179.906);
--foreground: oklch(1 0 180);
--muted: oklch(0.161 0.009 152.937);
--muted-foreground: oklch(0.788 0.017 153.498);
--popover: oklch(0.123 0.012 179.906);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.014 179.668);
--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.92 0.007 179.65);
--primary-foreground: oklch(0.424 0.021 178.339);
--secondary: oklch(0.919 0.009 153.71);
--secondary-foreground: oklch(0.421 0.029 152.659);
--accent: oklch(0.917 0.005 219.551);
--accent-foreground: oklch(0.415 0.017 219.905);
--destructive: oklch(0.571 0.231 29.193);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.92 0.007 179.65);
--chart-1: oklch(0.92 0.007 179.65);
--chart-2: oklch(0.919 0.009 153.71);
--chart-3: oklch(0.917 0.005 219.551);
--chart-4: oklch(0.941 0.007 153.759);
--chart-5: oklch(0.921 0.009 179.592);
}