Accusation for shadcn/ui

Accusation is a shadcn/ui theme built around a yellow primary color (#ada438) with purple accents (#a438ad). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#ada438) on a yellow-tinted background (#100f05).

Color palette

TokenLightDark
Background
#ffffffwhite
#100f05black
Foreground
#080702black
#ffffffwhite
Card
#ffffffwhite
#100f05black
Card foreground
#080702black
#ffffffwhite
Popover
#ffffffwhite
#100f05black
Popover foreground
#080702black
#ffffffwhite
Primary
#ada438peru
#ada438peru
Primary foreground
#131206black
#131206black
Secondary
#38ada4lightseagreen
#38ada4lightseagreen
Secondary foreground
#061312black
#061312black
Muted
#d7dfdfgainsboro
#202827darkslategray
Muted foreground
#4f6462dimgray
#9bb0afdarkgray
Accent
#a438addarkorchid
#a438addarkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6d1c08maroon
#f0613dtomato
Destructive foreground
#f9bdaelightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ada438peru
#ada438peru

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button7.26:1AAA
Secondary button6.93:1AA
Muted text4.66:1AA
Accent5.60:1AA
Destructive7.07:1AAA
Dark mode
Text on background19.25:1AAA
Text on card19.25:1AAA
Primary button7.26:1AAA
Secondary button6.93:1AA
Muted text6.64:1AA
Accent5.60:1AA
Destructive6.47:1AA

CSS variables

Paste this into your globals.css to use Accusation in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.129 0.017 105.202);
  --muted: oklch(0.898 0.009 191.042);
  --muted-foreground: oklch(0.485 0.026 190.059);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.129 0.017 105.202);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.129 0.017 105.202);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.705 0.127 104.104);
  --primary-foreground: oklch(0.18 0.023 104.099);
  --secondary: oklch(0.682 0.103 187.061);
  --secondary-foreground: oklch(0.175 0.019 188.886);
  --accent: oklch(0.541 0.197 324.319);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.359 0.117 34.513);
  --destructive-foreground: oklch(0.849 0.072 34.455);
  --ring: oklch(0.705 0.127 104.104);
  --chart-1: oklch(0.705 0.127 104.104);
  --chart-2: oklch(0.682 0.103 187.061);
  --chart-3: oklch(0.541 0.197 324.319);
  --chart-4: oklch(0.715 0.109 187.038);
  --chart-5: oklch(0.715 0.131 104.078);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.165 0.021 104.407);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.267 0.011 190.325);
  --muted-foreground: oklch(0.742 0.024 190.541);
  --popover: oklch(0.165 0.021 104.407);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.165 0.021 104.407);
  --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.705 0.127 104.104);
  --primary-foreground: oklch(0.18 0.023 104.099);
  --secondary: oklch(0.682 0.103 187.061);
  --secondary-foreground: oklch(0.175 0.019 188.886);
  --accent: oklch(0.541 0.197 324.319);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.67 0.185 35.154);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.705 0.127 104.104);
  --chart-1: oklch(0.705 0.127 104.104);
  --chart-2: oklch(0.682 0.103 187.061);
  --chart-3: oklch(0.541 0.197 324.319);
  --chart-4: oklch(0.715 0.109 187.038);
  --chart-5: oklch(0.715 0.131 104.078);
}