Particular is a shadcn/ui theme built around a vivid purple primary color (#900495) with neutral gray accents (#d6d1d1). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the vivid purple primary (#900495) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fdsnow | #040104black |
| Foreground | #040104black | #fbf8fcghostwhite |
| Card | #fdf7fdsnow | #040104black |
| Card foreground | #040104black | #fbf8fcghostwhite |
| Popover | #fdf7fdsnow | #040104black |
| Popover foreground | #040104black | #fbf8fcghostwhite |
| Primary | #900495darkmagenta | #900495darkmagenta |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e3e3e3gainsboro | #262226darkslategray |
| Secondary foreground | #4a4a4adarkslategray | #c0b9c1silver |
| Muted | #ead2d2gainsboro | #2d152dblack |
| Muted foreground | #463f3fdarkslategray | #c0b9c0silver |
| Accent | #d6d1d1lightgrey | #3e2d3edarkslategray |
| Accent foreground | #3e3737darkslategray | #d6c7d6thistle |
| Destructive | #bc1f10firebrick | #ed3c2ccrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #900495darkmagenta | #900495darkmagenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 7.14:1 | AAA |
| Accent | 7.70:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.94:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 8.72:1 | AAA |
| Accent | 7.89:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Particular in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.01 324.681);
--foreground: oklch(0.084 0.027 326.834);
--muted: oklch(0.883 0.027 17.683);
--muted-foreground: oklch(0.374 0.009 17.568);
--popover: oklch(0.982 0.01 324.681);
--popover-foreground: oklch(0.084 0.027 326.834);
--card: oklch(0.982 0.01 324.681);
--card-foreground: oklch(0.084 0.027 326.834);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.464 0.213 326.602);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.916 0 180);
--secondary-foreground: oklch(0.409 0 190.305);
--accent: oklch(0.865 0.006 17.268);
--accent-foreground: oklch(0.345 0.01 17.644);
--destructive: oklch(0.511 0.193 30.073);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.464 0.213 326.602);
--chart-1: oklch(0.464 0.213 326.602);
--chart-2: oklch(0.916 0 180);
--chart-3: oklch(0.865 0.006 17.268);
--chart-4: oklch(0.939 0 180);
--chart-5: oklch(0.468 0.216 326.591);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.019 326.218);
--foreground: oklch(0.983 0.006 324.655);
--muted: oklch(0.24 0.056 325.931);
--muted-foreground: oklch(0.794 0.012 324.712);
--popover: oklch(0.086 0.019 326.218);
--popover-foreground: oklch(0.983 0.006 324.655);
--card: oklch(0.086 0.019 326.218);
--card-foreground: oklch(0.983 0.006 324.655);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.464 0.213 326.602);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.256 0.01 324.863);
--secondary-foreground: oklch(0.794 0.014 324.73);
--accent: oklch(0.323 0.037 325.318);
--accent-foreground: oklch(0.846 0.027 324.818);
--destructive: oklch(0.623 0.215 29.667);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.464 0.213 326.602);
--chart-1: oklch(0.464 0.213 326.602);
--chart-2: oklch(0.256 0.01 324.863);
--chart-3: oklch(0.323 0.037 325.318);
--chart-4: oklch(0.287 0.012 324.875);
--chart-5: oklch(0.468 0.216 326.591);
}