Filth for shadcn/ui

Filth is a shadcn/ui theme built around a vivid deep violet primary color (#0b0218) with vivid deep purple accents (#160218). The light mode uses a neutral background (#fcfbfd). Dark mode keeps the vivid deep violet primary (#0b0218) on a violet-tinted background (#0a070d).

Color palette

TokenLightDark
Background
#fcfbfdsnow
#0a070dblack
Foreground
#020105black
#faf9fasnow
Card
#faf8fcghostwhite
#0c0911black
Card foreground
#000000black
#fcfcfdwhite
Popover
#faf8fcghostwhite
#0c0911black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#0b0218black
#0b0218black
Primary foreground
#d3b7fathistle
#d3b7fathistle
Secondary
#020318black
#020318black
Secondary foreground
#b7bdfalightsteelblue
#b7bdfalightsteelblue
Muted
#e8e9f3lavender
#0c0d17black
Muted foreground
#525356darkslategray
#a9a9addarkgray
Accent
#160218black
#160218black
Accent foreground
#e757f4orchid
#e757f4orchid
Destructive
#b44913sienna
#ec7d46coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b0218black
#0b0218black

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card19.85:1AAA
Primary button11.53:1AAA
Secondary button11.33:1AAA
Muted text6.34:1AA
Accent6.70:1AA
Destructive5.39:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.28:1AAA
Primary button11.53:1AAA
Secondary button11.33:1AAA
Muted text8.24:1AAA
Accent6.70:1AA
Destructive7.59:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 305.004);
  --foreground: oklch(0.074 0.026 306.967);
  --muted: oklch(0.935 0.014 281.967);
  --muted-foreground: oklch(0.442 0.005 282.023);
  --popover: oklch(0.981 0.006 304.963);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.006 304.963);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.126 0.055 302.347);
  --primary-foreground: oklch(0.827 0.097 303.399);
  --secondary: oklch(0.118 0.05 268.736);
  --secondary-foreground: oklch(0.815 0.087 280.236);
  --accent: oklch(0.147 0.06 324.955);
  --accent-foreground: oklch(0.705 0.25 324.312);
  --destructive: oklch(0.54 0.152 42.42);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.126 0.055 302.347);
  --chart-1: oklch(0.126 0.055 302.347);
  --chart-2: oklch(0.118 0.05 268.736);
  --chart-3: oklch(0.147 0.06 324.955);
  --chart-4: oklch(0.146 0.069 268.479);
  --chart-5: oklch(0.125 0.057 302.297);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.015 304.706);
  --foreground: oklch(0.984 0.002 305.023);
  --muted: oklch(0.165 0.021 279.762);
  --muted-foreground: oklch(0.737 0.004 282.113);
  --popover: oklch(0.147 0.018 303.512);
  --popover-foreground: oklch(0.992 0.001 305.034);
  --card: oklch(0.147 0.018 303.512);
  --card-foreground: oklch(0.992 0.001 305.034);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.126 0.055 302.347);
  --primary-foreground: oklch(0.827 0.097 303.399);
  --secondary: oklch(0.118 0.05 268.736);
  --secondary-foreground: oklch(0.815 0.087 280.236);
  --accent: oklch(0.147 0.06 324.955);
  --accent-foreground: oklch(0.705 0.25 324.312);
  --destructive: oklch(0.705 0.152 45.623);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.126 0.055 302.347);
  --chart-1: oklch(0.126 0.055 302.347);
  --chart-2: oklch(0.118 0.05 268.736);
  --chart-3: oklch(0.147 0.06 324.955);
  --chart-4: oklch(0.146 0.069 268.479);
  --chart-5: oklch(0.125 0.057 302.297);
}