Nestmate is a shadcn/ui theme built around a violet primary color (#691f89) with neutral gray accents (#d7d3d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#691f89) on a neutral background (#060208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060208black |
| Foreground | #070109black | #faf9fbghostwhite |
| Card | #ffffffwhite | #060208black |
| Card foreground | #070109black | #faf9fbghostwhite |
| Popover | #ffffffwhite | #060208black |
| Popover foreground | #070109black | #faf9fbghostwhite |
| Primary | #691f89rebeccapurple | #691f89rebeccapurple |
| Primary foreground | #f2e2f8lavender | #f2e2f8lavender |
| Secondary | #d7d3d9lightgrey | #2d272fdarkslategray |
| Secondary foreground | #3f3941darkslategray | #c6bfcasilver |
| Muted | #eeebefwhitesmoke | #131014black |
| Muted foreground | #433748darkslategray | #c3b7c8silver |
| Accent | #d7d3d9lightgrey | #2d272fdarkslategray |
| Accent foreground | #3f3941darkslategray | #c6bfcasilver |
| Destructive | #6a0f01maroon | #f22202red |
| Destructive foreground | #feac9flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #691f89rebeccapurple | #691f89rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.64:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 9.47:1 | AAA |
| Accent | 7.61:1 | AAA |
| Destructive | 6.90:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 7.85:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 9.83:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.18:1 | AA Large |
Paste this into your globals.css to use Nestmate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.03 318.553);
--muted: oklch(0.944 0.005 316.001);
--muted-foreground: oklch(0.357 0.032 315.701);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.101 0.03 318.553);
--card: oklch(1 0 180);
--card-foreground: oklch(0.101 0.03 318.553);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.41 0.17 313.3);
--primary-foreground: oklch(0.932 0.034 315.89);
--secondary: oklch(0.873 0.009 315.985);
--secondary-foreground: oklch(0.354 0.017 315.854);
--accent: oklch(0.873 0.009 315.985);
--accent-foreground: oklch(0.354 0.017 315.854);
--destructive: oklch(0.339 0.126 32.229);
--destructive-foreground: oklch(0.82 0.099 29.023);
--ring: oklch(0.41 0.17 313.3);
--chart-1: oklch(0.41 0.17 313.3);
--chart-2: oklch(0.873 0.009 315.985);
--chart-3: oklch(0.873 0.009 315.985);
--chart-4: oklch(0.897 0.007 315.993);
--chart-5: oklch(0.411 0.175 313.073);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.021 317.762);
--foreground: oklch(0.983 0.004 316.007);
--muted: oklch(0.178 0.008 315.857);
--muted-foreground: oklch(0.794 0.026 315.903);
--popover: oklch(0.106 0.021 317.762);
--popover-foreground: oklch(0.983 0.004 316.007);
--card: oklch(0.106 0.021 317.762);
--card-foreground: oklch(0.983 0.004 316.007);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.41 0.17 313.3);
--primary-foreground: oklch(0.932 0.034 315.89);
--secondary: oklch(0.284 0.016 315.82);
--secondary-foreground: oklch(0.814 0.017 315.948);
--accent: oklch(0.284 0.016 315.82);
--accent-foreground: oklch(0.814 0.017 315.948);
--destructive: oklch(0.614 0.239 30.94);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.41 0.17 313.3);
--chart-1: oklch(0.41 0.17 313.3);
--chart-2: oklch(0.284 0.016 315.82);
--chart-3: oklch(0.284 0.016 315.82);
--chart-4: oklch(0.313 0.018 315.813);
--chart-5: oklch(0.411 0.175 313.073);
}