Perfection is a shadcn/ui theme built around a neutral gray primary color (#dddada) with neutral gray accents (#dadadd). The light mode uses a neutral background (#fefbfc). Dark mode keeps the neutral gray primary (#dddada) on a neutral background (#070304).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #070304black |
| Foreground | #110406black | #faf5f6whitesmoke |
| Card | #fdf7f8snow | #0a0506black |
| Card foreground | #0d0305black | #fcf8f9snow |
| Popover | #fefbfcsnow | #070304black |
| Popover foreground | #110406black | #faf5f6whitesmoke |
| Primary | #dddadagainsboro | #dddadagainsboro |
| Primary foreground | #454041darkslategray | #454041darkslategray |
| Secondary | #dadddagainsboro | #dadddagainsboro |
| Secondary foreground | #414540darkslategray | #414540darkslategray |
| Muted | #d5dfd2lightgrey | #222d20darkslategray |
| Muted foreground | #494b49darkslategray | #b5b6b4silver |
| Accent | #dadaddgainsboro | #dadaddgainsboro |
| Accent foreground | #404145darkslategray | #404145darkslategray |
| Destructive | #992005darkred | #f73408orangered |
| Destructive foreground | #fedad2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dddadagainsboro | #dddadagainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.42:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 18.97:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 7.06:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Perfection in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 4.394);
--foreground: oklch(0.131 0.029 6.274);
--muted: oklch(0.893 0.021 139.97);
--muted-foreground: oklch(0.41 0.003 139.985);
--popover: oklch(0.991 0.003 4.394);
--popover-foreground: oklch(0.131 0.029 6.274);
--card: oklch(0.981 0.006 4.477);
--card-foreground: oklch(0.118 0.025 5.114);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.89 0.003 4.407);
--primary-foreground: oklch(0.376 0.007 4.832);
--secondary: oklch(0.894 0.005 139.987);
--secondary-foreground: oklch(0.384 0.011 139.967);
--accent: oklch(0.89 0.003 276.118);
--accent-foreground: oklch(0.375 0.007 275.899);
--destructive: oklch(0.447 0.161 33.066);
--destructive-foreground: oklch(0.917 0.041 32.739);
--ring: oklch(0.89 0.003 4.407);
--chart-1: oklch(0.89 0.003 4.407);
--chart-2: oklch(0.894 0.005 139.987);
--chart-3: oklch(0.89 0.003 276.118);
--chart-4: oklch(0.917 0.004 139.988);
--chart-5: oklch(0.889 0.006 4.479);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.01 4.514);
--foreground: oklch(0.973 0.006 4.481);
--muted: oklch(0.282 0.028 139.917);
--muted-foreground: oklch(0.774 0.002 139.988);
--popover: oklch(0.11 0.01 4.514);
--popover-foreground: oklch(0.973 0.006 4.481);
--card: oklch(0.126 0.011 4.514);
--card-foreground: oklch(0.982 0.004 4.423);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.89 0.003 4.407);
--primary-foreground: oklch(0.376 0.007 4.832);
--secondary: oklch(0.894 0.005 139.987);
--secondary-foreground: oklch(0.384 0.011 139.967);
--accent: oklch(0.89 0.003 276.118);
--accent-foreground: oklch(0.375 0.007 275.899);
--destructive: oklch(0.633 0.234 32.496);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.89 0.003 4.407);
--chart-1: oklch(0.89 0.003 4.407);
--chart-2: oklch(0.894 0.005 139.987);
--chart-3: oklch(0.89 0.003 276.118);
--chart-4: oklch(0.917 0.004 139.988);
--chart-5: oklch(0.889 0.006 4.479);
}