Secondary is a shadcn/ui theme built around a purple primary color (#d643a7) with red accents (#d6435e). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the purple primary (#d643a7) on a purple-tinted background (#0a0509).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fbsnow | #0a0509black |
| Foreground | #040103black | #fbf8fasnow |
| Card | #fdf7fbsnow | #0a0509black |
| Card foreground | #040103black | #fbf8fasnow |
| Popover | #fdf7fbsnow | #0a0509black |
| Popover foreground | #040103black | #fbf8fasnow |
| Primary | #d643a7palevioletred | #d643a7palevioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #bb43d6mediumorchid | #bb43d6mediumorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ece2eelavender | #1b111dblack |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #d6435eindianred | #d6435eindianred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d31103red | #f11404red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d643a7palevioletred | #d643a7palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 4.03:1 | AA Large |
| Secondary button | 4.30:1 | AA Large |
| Muted text | 7.36:1 | AAA |
| Accent | 4.36:1 | AA Large |
| Destructive | 5.45:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 4.03:1 | AA Large |
| Secondary button | 4.30:1 | AA Large |
| Muted text | 9.26:1 | AAA |
| Accent | 4.36:1 | AA Large |
| Destructive | 4.33:1 | AA Large |
Paste this into your globals.css to use Secondary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 336.722);
--foreground: oklch(0.084 0.02 337.087);
--muted: oklch(0.924 0.021 320.011);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(0.982 0.008 336.722);
--popover-foreground: oklch(0.084 0.02 337.087);
--card: oklch(0.982 0.008 336.722);
--card-foreground: oklch(0.084 0.02 337.087);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.622 0.209 343.023);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.608 0.229 319.678);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.598 0.183 14.024);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.549 0.219 29.833);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.622 0.209 343.023);
--chart-1: oklch(0.622 0.209 343.023);
--chart-2: oklch(0.608 0.229 319.678);
--chart-3: oklch(0.598 0.183 14.024);
--chart-4: oklch(0.629 0.218 319.831);
--chart-5: oklch(0.625 0.216 343.309);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.016 336.876);
--foreground: oklch(0.983 0.004 336.647);
--muted: oklch(0.196 0.03 320.096);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.126 0.016 336.876);
--popover-foreground: oklch(0.983 0.004 336.647);
--card: oklch(0.126 0.016 336.876);
--card-foreground: oklch(0.983 0.004 336.647);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.622 0.209 343.023);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.608 0.229 319.678);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.598 0.183 14.024);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.606 0.243 29.775);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.622 0.209 343.023);
--chart-1: oklch(0.622 0.209 343.023);
--chart-2: oklch(0.608 0.229 319.678);
--chart-3: oklch(0.598 0.183 14.024);
--chart-4: oklch(0.629 0.218 319.831);
--chart-5: oklch(0.625 0.216 343.309);
}