Genuine is a shadcn/ui theme built around a deep purple primary color (#390f2b) with muted purple accents (#d0a9c4). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#390f2b) on a purple-tinted background (#0b0409).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0409black |
| Foreground | #150510black | #ffffffwhite |
| Card | #ffffffwhite | #0b0409black |
| Card foreground | #150510black | #ffffffwhite |
| Popover | #ffffffwhite | #0b0409black |
| Popover foreground | #150510black | #ffffffwhite |
| Primary | #390f2bblack | #390f2bblack |
| Primary foreground | #e496cbplum | #e496cbplum |
| Secondary | #d6c2d0thistle | #322930darkslategray |
| Secondary foreground | #3d2937darkslategray | #cdc1c9silver |
| Muted | #e5d7e0gainsboro | #281a24black |
| Muted foreground | #484146darkslategray | #beb7bbsilver |
| Accent | #d0a9c4silver | #533c4cdarkslategray |
| Accent foreground | #2e1927black | #e5dce2gainsboro |
| Destructive | #bb150cfirebrick | #f3483ftomato |
| Destructive foreground | #fffafasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #390f2bblack | #390f2bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 7.12:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.47:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 8.44:1 | AAA |
| Accent | 7.40:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Genuine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.149 0.037 340.017);
--muted: oklch(0.893 0.02 336.987);
--muted-foreground: oklch(0.385 0.012 337.161);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.149 0.037 340.017);
--card: oklch(1 0 180);
--card-foreground: oklch(0.149 0.037 340.017);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.25 0.077 342.347);
--primary-foreground: oklch(0.766 0.116 339.292);
--secondary: oklch(0.835 0.03 337.237);
--secondary-foreground: oklch(0.31 0.038 338.794);
--accent: oklch(0.779 0.057 337.923);
--accent-foreground: oklch(0.249 0.04 339.5);
--destructive: oklch(0.504 0.197 29.408);
--destructive-foreground: oklch(0.99 0.005 20.948);
--ring: oklch(0.25 0.077 342.347);
--chart-1: oklch(0.25 0.077 342.347);
--chart-2: oklch(0.835 0.03 337.237);
--chart-3: oklch(0.779 0.057 337.923);
--chart-4: oklch(0.86 0.025 337.116);
--chart-5: oklch(0.25 0.08 342.625);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.021 337.123);
--foreground: oklch(1 0 180);
--muted: oklch(0.24 0.028 338.664);
--muted-foreground: oklch(0.786 0.01 336.809);
--popover: oklch(0.124 0.021 337.123);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.021 337.123);
--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.25 0.077 342.347);
--primary-foreground: oklch(0.766 0.116 339.292);
--secondary: oklch(0.295 0.017 337.664);
--secondary-foreground: oklch(0.823 0.016 336.942);
--accent: oklch(0.387 0.04 338.471);
--accent-foreground: oklch(0.903 0.014 336.858);
--destructive: oklch(0.646 0.209 27.61);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.25 0.077 342.347);
--chart-1: oklch(0.25 0.077 342.347);
--chart-2: oklch(0.295 0.017 337.664);
--chart-3: oklch(0.387 0.04 338.471);
--chart-4: oklch(0.324 0.02 337.701);
--chart-5: oklch(0.25 0.08 342.625);
}