Particular is a shadcn/ui theme built around a neutral gray primary color (#bfbfc0) with neutral gray accents (#c0bfc0). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#bfbfc0) on a violet-tinted background (#06040b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06040bblack |
| Foreground | #06040cblack | #fcfcfdwhite |
| Card | #fcfcfcsnow | #08060eblack |
| Card foreground | #040208black | #ffffffwhite |
| Popover | #ffffffwhite | #06040bblack |
| Popover foreground | #06040cblack | #fcfcfdwhite |
| Primary | #bfbfc0silver | #bfbfc0silver |
| Primary foreground | #262627darkslategray | #262627darkslategray |
| Secondary | #bfbfc0silver | #bfbfc0silver |
| Secondary foreground | #262627darkslategray | #262627darkslategray |
| Muted | #e1e4eflavender | #10131eblack |
| Muted foreground | #4a4c55darkslategray | #aaadb5darkgray |
| Accent | #c0bfc0silver | #c0bfc0silver |
| Accent foreground | #262627darkslategray | #262627darkslategray |
| Destructive | #5f0d07maroon | #ef2415orangered |
| Destructive foreground | #f8a6a0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bfbfc0silver | #bfbfc0silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 6.73:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 7.07:1 | AAA |
| Text on background | 19.84:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 8.21:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Particular in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.115 0.022 299.215);
--muted: oklch(0.92 0.015 273.67);
--muted-foreground: oklch(0.417 0.015 273.437);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.115 0.022 299.215);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.101 0.019 299.343);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.804 0.002 299.266);
--primary-foreground: oklch(0.269 0.001 299.213);
--secondary: oklch(0.804 0.001 273.845);
--secondary-foreground: oklch(0.269 0.001 273.818);
--accent: oklch(0.805 0.002 318.89);
--accent-foreground: oklch(0.269 0.002 318.888);
--destructive: oklch(0.315 0.116 29.598);
--destructive-foreground: oklch(0.803 0.099 23.999);
--ring: oklch(0.804 0.002 299.266);
--chart-1: oklch(0.804 0.002 299.266);
--chart-2: oklch(0.804 0.001 273.845);
--chart-3: oklch(0.805 0.002 318.89);
--chart-4: oklch(0.828 0.001 273.848);
--chart-5: oklch(0.8 0.007 299.149);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.018 299.293);
--foreground: oklch(0.992 0.001 299.286);
--muted: oklch(0.189 0.023 272.111);
--muted-foreground: oklch(0.748 0.013 273.668);
--popover: oklch(0.119 0.018 299.293);
--popover-foreground: oklch(0.992 0.001 299.286);
--card: oklch(0.131 0.021 298.379);
--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.804 0.002 299.266);
--primary-foreground: oklch(0.269 0.001 299.213);
--secondary: oklch(0.804 0.001 273.845);
--secondary-foreground: oklch(0.269 0.001 273.818);
--accent: oklch(0.805 0.002 318.89);
--accent-foreground: oklch(0.269 0.002 318.888);
--destructive: oklch(0.609 0.234 29.704);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.804 0.002 299.266);
--chart-1: oklch(0.804 0.002 299.266);
--chart-2: oklch(0.804 0.001 273.845);
--chart-3: oklch(0.805 0.002 318.89);
--chart-4: oklch(0.828 0.001 273.848);
--chart-5: oklch(0.8 0.007 299.149);
}