Ugly for shadcn/ui

Ugly is a shadcn/ui theme built around a muted green primary color (#678047) with muted green accents (#4a8047). The light mode uses a neutral background (#fafdf7). Dark mode keeps the muted green primary (#678047) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#000000black
Foreground
#030401black
#fafcf8snow
Card
#f8fcf2floralwhite
#030303black
Card foreground
#000000black
#fdfdfcwhite
Popover
#f8fcf2floralwhite
#030303black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#678047darkolivegreen
#678047darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#807c47dimgray
#807c47dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4f4f0whitesmoke
#0f0f0bblack
Muted foreground
#626150dimgray
#afad9ddarkgray
Accent
#4a8047darkolivegreen
#4a8047darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#66130amaroon
#d12715firebrick
Destructive foreground
#f7b3ablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#678047darkolivegreen
#678047darkolivegreen

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card20.24:1AAA
Primary button4.39:1AA Large
Secondary button4.27:1AA Large
Muted text5.70:1AA
Accent4.67:1AA
Destructive7.19:1AAA
Dark mode
Text on background20.34:1AAA
Text on card20.31:1AAA
Primary button4.39:1AA Large
Secondary button4.27:1AA Large
Muted text8.51:1AAA
Accent4.67:1AA
Destructive5.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.009 125.864);
  --foreground: oklch(0.103 0.018 124.753);
  --muted: oklch(0.967 0.005 103.2);
  --muted-foreground: oklch(0.489 0.026 103.94);
  --popover: oklch(0.986 0.014 125.927);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.014 125.927);
  --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.567 0.087 128.082);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.578 0.074 104.908);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.548 0.104 142.597);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.335 0.117 30.399);
  --destructive-foreground: oklch(0.828 0.08 26.073);
  --ring: oklch(0.567 0.087 128.082);
  --chart-1: oklch(0.567 0.087 128.082);
  --chart-2: oklch(0.578 0.074 104.908);
  --chart-3: oklch(0.548 0.104 142.597);
  --chart-4: oklch(0.61 0.079 104.916);
  --chart-5: oklch(0.574 0.095 128.315);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.005 125.803);
  --muted: oklch(0.165 0.008 103.895);
  --muted-foreground: oklch(0.745 0.023 103.617);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.994 0.002 125.771);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 125.771);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.567 0.087 128.082);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.578 0.074 104.908);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.548 0.104 142.597);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.556 0.206 30.52);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.567 0.087 128.082);
  --chart-1: oklch(0.567 0.087 128.082);
  --chart-2: oklch(0.578 0.074 104.908);
  --chart-3: oklch(0.548 0.104 142.597);
  --chart-4: oklch(0.61 0.079 104.916);
  --chart-5: oklch(0.574 0.095 128.315);
}