Loathsome for shadcn/ui

Loathsome is a shadcn/ui theme built around a vivid teal primary color (#7de6ed) with vivid blue accents (#7daeed). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the vivid teal primary (#7de6ed) on a neutral background (#020808).

Color palette

TokenLightDark
Background
#f6fdfdmintcream
#020808black
Foreground
#010405black
#fcfdfdwhite
Card
#f6fdfdmintcream
#020808black
Card foreground
#010405black
#fcfdfdwhite
Popover
#f6fdfdmintcream
#020808black
Popover foreground
#010405black
#fcfdfdwhite
Primary
#7de6edskyblue
#7de6edskyblue
Primary foreground
#072f31darkslategray
#072f31darkslategray
Secondary
#7dedbdaquamarine
#7dedbdaquamarine
Secondary foreground
#07311fblack
#07311fblack
Muted
#d5ddd9gainsboro
#222a27darkslategray
Muted foreground
#486056darkslategray
#9fb7acdarkgray
Accent
#7daeedskyblue
#7daeedskyblue
Accent foreground
#071931black
#071931black
Destructive
#b13c02firebrick
#fc5603orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7de6edskyblue
#7de6edskyblue

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button9.85:1AAA
Secondary button10.04:1AAA
Muted text4.90:1AA
Accent7.64:1AAA
Destructive5.97:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button9.85:1AAA
Secondary button10.04:1AAA
Muted text6.88:1AA
Accent7.64:1AAA
Destructive3.23:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 202.14);
  --foreground: oklch(0.101 0.014 199.283);
  --muted: oklch(0.889 0.009 168.436);
  --muted-foreground: oklch(0.466 0.033 166.583);
  --popover: oklch(0.989 0.007 202.14);
  --popover-foreground: oklch(0.101 0.014 199.283);
  --card: oklch(0.989 0.007 202.14);
  --card-foreground: oklch(0.101 0.014 199.283);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.864 0.098 201.578);
  --primary-foreground: oklch(0.278 0.043 202.077);
  --secondary: oklch(0.867 0.125 163.593);
  --secondary-foreground: oklch(0.28 0.057 159.949);
  --accent: oklch(0.74 0.107 255.459);
  --accent-foreground: oklch(0.214 0.054 255.897);
  --destructive: oklch(0.518 0.162 39.98);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.864 0.098 201.578);
  --chart-1: oklch(0.864 0.098 201.578);
  --chart-2: oklch(0.867 0.125 163.593);
  --chart-3: oklch(0.74 0.107 255.459);
  --chart-4: oklch(0.879 0.114 164.292);
  --chart-5: oklch(0.868 0.101 201.589);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 199.964);
  --foreground: oklch(0.993 0.001 202.209);
  --muted: oklch(0.277 0.012 167.422);
  --muted-foreground: oklch(0.757 0.03 167.591);
  --popover: oklch(0.124 0.013 199.964);
  --popover-foreground: oklch(0.993 0.001 202.209);
  --card: oklch(0.124 0.013 199.964);
  --card-foreground: oklch(0.993 0.001 202.209);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.864 0.098 201.578);
  --primary-foreground: oklch(0.278 0.043 202.077);
  --secondary: oklch(0.867 0.125 163.593);
  --secondary-foreground: oklch(0.28 0.057 159.949);
  --accent: oklch(0.74 0.107 255.459);
  --accent-foreground: oklch(0.214 0.054 255.897);
  --destructive: oklch(0.673 0.214 39.106);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.864 0.098 201.578);
  --chart-1: oklch(0.864 0.098 201.578);
  --chart-2: oklch(0.867 0.125 163.593);
  --chart-3: oklch(0.74 0.107 255.459);
  --chart-4: oklch(0.879 0.114 164.292);
  --chart-5: oklch(0.868 0.101 201.589);
}