Loathsome for shadcn/ui

Loathsome is a shadcn/ui theme built around a near-white primary color (#ebebea) with near-white accents (#ebeaeb). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#ebebea) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fbfbf8snow
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fdfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fbfbf8snow
Primary
#ebebealinen
#ebebealinen
Primary foreground
#535350darkslategray
#535350darkslategray
Secondary
#eaebeblavender
#eaebeblavender
Secondary foreground
#505353darkslategray
#505353darkslategray
Muted
#ecf4f4whitesmoke
#0b1313black
Muted foreground
#575b5bdimgray
#a4a7a8darkgray
Accent
#ebeaeblavender
#ebeaeblavender
Accent foreground
#535053darkslategray
#535053darkslategray
Destructive
#b62407firebrick
#e72e08orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ebebealinen
#ebebealinen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.47:1AA
Secondary button6.50:1AA
Muted text6.14:1AA
Accent6.63:1AA
Destructive6.47:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.31:1AAA
Primary button6.47:1AA
Secondary button6.50:1AA
Muted text7.74:1AAA
Accent6.63:1AA
Destructive4.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.96 0.009 198.228);
  --muted-foreground: oklch(0.468 0.004 198.22);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.94 0.001 107.191);
  --primary-foreground: oklch(0.442 0.005 107.385);
  --secondary: oklch(0.939 0.001 198.348);
  --secondary-foreground: oklch(0.44 0.004 198.222);
  --accent: oklch(0.938 0.001 326.066);
  --accent-foreground: oklch(0.435 0.007 326.177);
  --destructive: oklch(0.504 0.185 32.296);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.94 0.001 107.191);
  --chart-1: oklch(0.94 0.001 107.191);
  --chart-2: oklch(0.939 0.001 198.348);
  --chart-3: oklch(0.938 0.001 326.066);
  --chart-4: oklch(0.962 0.001 198.354);
  --chart-5: oklch(0.941 0.003 107.222);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.004 107.239);
  --muted: oklch(0.18 0.012 197.43);
  --muted-foreground: oklch(0.727 0.004 198.279);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.988 0.004 107.239);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 107.204);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.94 0.001 107.191);
  --primary-foreground: oklch(0.442 0.005 107.385);
  --secondary: oklch(0.939 0.001 198.348);
  --secondary-foreground: oklch(0.44 0.004 198.222);
  --accent: oklch(0.938 0.001 326.066);
  --accent-foreground: oklch(0.435 0.007 326.177);
  --destructive: oklch(0.601 0.223 32.081);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.94 0.001 107.191);
  --chart-1: oklch(0.94 0.001 107.191);
  --chart-2: oklch(0.939 0.001 198.348);
  --chart-3: oklch(0.938 0.001 326.066);
  --chart-4: oklch(0.962 0.001 198.354);
  --chart-5: oklch(0.941 0.003 107.222);
}