Diamond is a shadcn/ui theme built around a vivid green primary color (#c5fa6b) with vivid violet accents (#a06bfa). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#c5fa6b) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030401black |
| Foreground | #0c1202black | #f8f9f5whitesmoke |
| Card | #ffffffwhite | #030401black |
| Card foreground | #0c1202black | #f8f9f5whitesmoke |
| Popover | #ffffffwhite | #030401black |
| Popover foreground | #0c1202black | #f8f9f5whitesmoke |
| Primary | #c5fa6bkhaki | #c5fa6bkhaki |
| Primary foreground | #203102black | #203102black |
| Secondary | #a06bfamediumpurple | #a06bfamediumpurple |
| Secondary foreground | #000000black | #000000black |
| Muted | #dad6e0gainsboro | #221f29black |
| Muted foreground | #514e55darkslategray | #adaab1darkgray |
| Accent | #a06bfamediumpurple | #a06bfamediumpurple |
| Accent foreground | #000000black | #000000black |
| Destructive | #640f07maroon | #ef301forangered |
| Destructive foreground | #f9aba4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c5fa6bkhaki | #c5fa6bkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 11.47:1 | AAA |
| Secondary button | 5.97:1 | AA |
| Muted text | 5.72:1 | AA |
| Accent | 5.97:1 | AA |
| Destructive | 7.05:1 | AAA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 11.47:1 | AAA |
| Secondary button | 5.97:1 | AA |
| Muted text | 7.08:1 | AAA |
| Accent | 5.97:1 | AA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Diamond in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.172 0.036 124.443);
--muted: oklch(0.883 0.014 302.685);
--muted-foreground: oklch(0.43 0.011 302.537);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.172 0.036 124.443);
--card: oklch(1 0 180);
--card-foreground: oklch(0.172 0.036 124.443);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.92 0.179 126.554);
--primary-foreground: oklch(0.288 0.073 128.243);
--secondary: oklch(0.65 0.204 297.305);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.65 0.204 297.305);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.327 0.119 30.071);
--destructive-foreground: oklch(0.815 0.092 25.044);
--ring: oklch(0.92 0.179 126.554);
--chart-1: oklch(0.92 0.179 126.554);
--chart-2: oklch(0.65 0.204 297.305);
--chart-3: oklch(0.65 0.204 297.305);
--chart-4: oklch(0.683 0.185 298.288);
--chart-5: oklch(0.925 0.184 126.663);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.012 122.487);
--foreground: oklch(0.981 0.006 123.02);
--muted: oklch(0.247 0.019 301.722);
--muted-foreground: oklch(0.742 0.01 302.731);
--popover: oklch(0.1 0.012 122.487);
--popover-foreground: oklch(0.981 0.006 123.02);
--card: oklch(0.1 0.012 122.487);
--card-foreground: oklch(0.981 0.006 123.02);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.92 0.179 126.554);
--primary-foreground: oklch(0.288 0.073 128.243);
--secondary: oklch(0.65 0.204 297.305);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.65 0.204 297.305);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.618 0.227 29.993);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.92 0.179 126.554);
--chart-1: oklch(0.92 0.179 126.554);
--chart-2: oklch(0.65 0.204 297.305);
--chart-3: oklch(0.65 0.204 297.305);
--chart-4: oklch(0.683 0.185 298.288);
--chart-5: oklch(0.925 0.184 126.663);
}