Particular for shadcn/ui

Particular is a shadcn/ui theme built around a red primary color (#9c2626) with indigo accents (#26269c). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#9c2626) on a red-tinted background (#0b0404).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0404black
Foreground
#100505black
#fdfcfcsnow
Card
#ffffffwhite
#0b0404black
Card foreground
#100505black
#fdfcfcsnow
Popover
#ffffffwhite
#0b0404black
Popover foreground
#100505black
#fdfcfcsnow
Primary
#9c2626brown
#9c2626brown
Primary foreground
#fdf7f7snow
#fdf7f7snow
Secondary
#269c26forestgreen
#269c26forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfecdfgainsboro
#132013black
Muted foreground
#474d47darkslategray
#b2b8b2darkgray
Accent
#26269cdarkslateblue
#26269cdarkslateblue
Accent foreground
#f7f7fdghostwhite
#f7f7fdghostwhite
Destructive
#a54612saddlebrown
#e6611achocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9c2626brown
#9c2626brown

Contrast

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

Light mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button7.29:1AAA
Secondary button3.58:1AA Large
Muted text7.10:1AAA
Accent10.71:1AAA
Destructive6.02:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button7.29:1AAA
Secondary button3.58:1AA Large
Muted text8.36:1AAA
Accent10.71:1AAA
Destructive6.06:1AA

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.132 0.023 20.699);
  --muted: oklch(0.93 0.022 145.398);
  --muted-foreground: oklch(0.413 0.012 145.347);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.132 0.023 20.699);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.132 0.023 20.699);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.46 0.155 25.73);
  --primary-foreground: oklch(0.98 0.007 17.27);
  --secondary: oklch(0.606 0.185 142.868);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.364 0.184 272.557);
  --accent-foreground: oklch(0.977 0.008 286.246);
  --destructive: oklch(0.513 0.139 43.996);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.46 0.155 25.73);
  --chart-1: oklch(0.46 0.155 25.73);
  --chart-2: oklch(0.606 0.185 142.868);
  --chart-3: oklch(0.364 0.184 272.557);
  --chart-4: oklch(0.641 0.196 142.857);
  --chart-5: oklch(0.462 0.16 26.174);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.018 20.056);
  --foreground: oklch(0.992 0.001 17.168);
  --muted: oklch(0.227 0.03 144.499);
  --muted-foreground: oklch(0.776 0.011 145.473);
  --popover: oklch(0.121 0.018 20.056);
  --popover-foreground: oklch(0.992 0.001 17.168);
  --card: oklch(0.121 0.018 20.056);
  --card-foreground: oklch(0.992 0.001 17.168);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.46 0.155 25.73);
  --primary-foreground: oklch(0.98 0.007 17.27);
  --secondary: oklch(0.606 0.185 142.868);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.364 0.184 272.557);
  --accent-foreground: oklch(0.977 0.008 286.246);
  --destructive: oklch(0.651 0.181 43.481);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.46 0.155 25.73);
  --chart-1: oklch(0.46 0.155 25.73);
  --chart-2: oklch(0.606 0.185 142.868);
  --chart-3: oklch(0.364 0.184 272.557);
  --chart-4: oklch(0.641 0.196 142.857);
  --chart-5: oklch(0.462 0.16 26.174);
}