Filthy for shadcn/ui

Filthy is a shadcn/ui theme built around a light purple primary color (#eec9ed) with light green accents (#c9eeca). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the light purple primary (#eec9ed) on a purple-tinted background (#0c040b).

Color palette

TokenLightDark
Background
#fcf8fcsnow
#0c040bblack
Foreground
#130613black
#fbf8fbsnow
Card
#faf5faghostwhite
#0f050fblack
Card foreground
#0f050fblack
#fdfcfdwhite
Popover
#fcf8fcsnow
#0c040bblack
Popover foreground
#130613black
#fbf8fbsnow
Primary
#eec9edgainsboro
#eec9edgainsboro
Primary foreground
#652062purple
#652062purple
Secondary
#c9eecalightgrey
#c9eecalightgrey
Secondary foreground
#071708black
#071708black
Muted
#ebf4echoneydew
#0b140bblack
Muted foreground
#485648darkslategray
#a9b7a9darkgray
Accent
#c9eecalightgrey
#c9eecalightgrey
Accent foreground
#071708black
#071708black
Destructive
#a43404saddlebrown
#f95d1aorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eec9edgainsboro
#eec9edgainsboro

Contrast

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

Light mode
Text on background18.78:1AAA
Text on card18.56:1AAA
Primary button7.32:1AAA
Secondary button14.57:1AAA
Muted text6.92:1AA
Accent14.57:1AAA
Destructive6.82:1AA
Dark mode
Text on background19.22:1AAA
Text on card19.54:1AAA
Primary button7.32:1AAA
Secondary button14.57:1AAA
Muted text8.98:1AAA
Accent14.57:1AAA
Destructive6.61:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 326.591);
  --foreground: oklch(0.152 0.034 328.235);
  --muted: oklch(0.958 0.014 146.411);
  --muted-foreground: oklch(0.437 0.029 145.953);
  --popover: oklch(0.983 0.006 326.591);
  --popover-foreground: oklch(0.152 0.034 328.235);
  --card: oklch(0.975 0.009 326.617);
  --card-foreground: oklch(0.139 0.029 328.092);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.878 0.063 327.142);
  --primary-foreground: oklch(0.377 0.13 329.158);
  --secondary: oklch(0.913 0.062 145.929);
  --secondary-foreground: oklch(0.186 0.038 144.644);
  --accent: oklch(0.913 0.062 145.929);
  --accent-foreground: oklch(0.186 0.038 144.644);
  --destructive: oklch(0.487 0.155 38.433);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.878 0.063 327.142);
  --chart-1: oklch(0.878 0.063 327.142);
  --chart-2: oklch(0.913 0.062 145.929);
  --chart-3: oklch(0.913 0.062 145.929);
  --chart-4: oklch(0.931 0.049 146.075);
  --chart-5: oklch(0.877 0.067 327.176);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.026 327.949);
  --foreground: oklch(0.983 0.005 326.583);
  --muted: oklch(0.178 0.021 145.428);
  --muted-foreground: oklch(0.765 0.025 146.253);
  --popover: oklch(0.125 0.026 327.949);
  --popover-foreground: oklch(0.983 0.005 326.583);
  --card: oklch(0.139 0.03 328.122);
  --card-foreground: oklch(0.992 0.002 326.562);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.878 0.063 327.142);
  --primary-foreground: oklch(0.377 0.13 329.158);
  --secondary: oklch(0.913 0.062 145.929);
  --secondary-foreground: oklch(0.186 0.038 144.644);
  --accent: oklch(0.913 0.062 145.929);
  --accent-foreground: oklch(0.186 0.038 144.644);
  --destructive: oklch(0.677 0.203 39.666);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.878 0.063 327.142);
  --chart-1: oklch(0.878 0.063 327.142);
  --chart-2: oklch(0.913 0.062 145.929);
  --chart-3: oklch(0.913 0.062 145.929);
  --chart-4: oklch(0.931 0.049 146.075);
  --chart-5: oklch(0.877 0.067 327.176);
}