Grimy for shadcn/ui

Grimy is a shadcn/ui theme built around a vivid purple primary color (#ea62e3) with vivid pink accents (#ea629f). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#ea62e3) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#ffffffwhite
#040104black
Foreground
#040104black
#fbf9fasnow
Card
#ffffffwhite
#040104black
Card foreground
#040104black
#fbf9fasnow
Popover
#ffffffwhite
#040104black
Popover foreground
#040104black
#fbf9fasnow
Primary
#ea62e3orchid
#ea62e3orchid
Primary foreground
#160315black
#160315black
Secondary
#ad62eamediumorchid
#ad62eamediumorchid
Secondary foreground
#000000black
#000000black
Muted
#eee9f1lavender
#120e16black
Muted foreground
#433c48darkslategray
#bdb7c3silver
Accent
#ea629fpalevioletred
#ea629fpalevioletred
Accent foreground
#16030cblack
#16030cblack
Destructive
#df4407orangered
#f9682ftomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ea62e3orchid
#ea62e3orchid

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button6.93:1AA
Secondary button5.69:1AA
Muted text8.87:1AAA
Accent6.39:1AA
Destructive4.23:1AA Large
Dark mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button6.93:1AA
Secondary button5.69:1AA
Muted text9.75:1AAA
Accent6.39:1AA
Destructive7.04:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.084 0.027 328.967);
  --muted: oklch(0.94 0.012 310.319);
  --muted-foreground: oklch(0.369 0.022 309.887);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.084 0.027 328.967);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.084 0.027 328.967);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.71 0.223 329.606);
  --primary-foreground: oklch(0.151 0.052 329.605);
  --secondary: oklch(0.64 0.202 306.962);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.683 0.178 354.797);
  --accent-foreground: oklch(0.144 0.042 352.084);
  --destructive: oklch(0.605 0.2 36.967);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.71 0.223 329.606);
  --chart-1: oklch(0.71 0.223 329.606);
  --chart-2: oklch(0.64 0.202 306.962);
  --chart-3: oklch(0.683 0.178 354.797);
  --chart-4: oklch(0.668 0.186 307.513);
  --chart-5: oklch(0.712 0.23 329.678);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.016 328.228);
  --foreground: oklch(0.984 0.002 327.057);
  --muted: oklch(0.172 0.018 309.456);
  --muted-foreground: oklch(0.788 0.018 310.224);
  --popover: oklch(0.087 0.016 328.228);
  --popover-foreground: oklch(0.984 0.002 327.057);
  --card: oklch(0.087 0.016 328.228);
  --card-foreground: oklch(0.984 0.002 327.057);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.71 0.223 329.606);
  --primary-foreground: oklch(0.151 0.052 329.605);
  --secondary: oklch(0.64 0.202 306.962);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.683 0.178 354.797);
  --accent-foreground: oklch(0.144 0.042 352.084);
  --destructive: oklch(0.691 0.19 40.129);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.71 0.223 329.606);
  --chart-1: oklch(0.71 0.223 329.606);
  --chart-2: oklch(0.64 0.202 306.962);
  --chart-3: oklch(0.683 0.178 354.797);
  --chart-4: oklch(0.668 0.186 307.513);
  --chart-5: oklch(0.712 0.23 329.678);
}