Particular for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.38:1AAA
Text on card20.19:1AAA
Primary button8.20:1AAA
Secondary button8.21:1AAA
Muted text6.73:1AA
Accent8.21:1AAA
Destructive7.07:1AAA
Dark mode
Text on background19.84:1AAA
Text on card20.13:1AAA
Primary button8.20:1AAA
Secondary button8.21:1AAA
Muted text8.25:1AAA
Accent8.21:1AAA
Destructive4.26:1AA Large

CSS variables

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);
}