Ugly for shadcn/ui

Ugly is a shadcn/ui theme built around a vivid orange primary color (#faaa70) with muted red accents (#c4baba). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid orange primary (#faaa70) on an orange-tinted background (#0c0704).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0704black
Foreground
#140c05black
#faf7f4whitesmoke
Card
#fcfcfcsnow
#100905black
Card foreground
#100904black
#fcfaf8snow
Popover
#ffffffwhite
#0c0704black
Popover foreground
#140c05black
#faf7f4whitesmoke
Primary
#faaa70lightsalmon
#faaa70lightsalmon
Primary foreground
#361802black
#361802black
Secondary
#d6d6d6lightgrey
#1d1916black
Secondary foreground
#3d3d3ddarkslategray
#bcb1a9darkgray
Muted
#eee2e2mistyrose
#1d1611black
Muted foreground
#644f4fdimgray
#b0a49bdarkgray
Accent
#c4babasilver
#362d26darkslategray
Accent foreground
#292323darkslategray
#d1c5bdsilver
Destructive
#732b0dsaddlebrown
#eb7847coral
Destructive foreground
#f7cdbapeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faaa70lightsalmon
#faaa70lightsalmon

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.33:1AAA
Primary button8.54:1AAA
Secondary button7.48:1AAA
Muted text6.00:1AA
Accent8.17:1AAA
Destructive6.91:1AA
Dark mode
Text on background18.79:1AAA
Text on card18.95:1AAA
Primary button8.54:1AAA
Secondary button8.32:1AAA
Muted text7.34:1AAA
Accent8.00:1AAA
Destructive7.31:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.162 0.02 59.803);
  --muted: oklch(0.923 0.013 17.384);
  --muted-foreground: oklch(0.448 0.029 18.287);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.162 0.02 59.803);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.148 0.018 63.325);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.803 0.12 55.636);
  --primary-foreground: oklch(0.248 0.059 53.566);
  --secondary: oklch(0.877 0 180);
  --secondary-foreground: oklch(0.361 0 180);
  --accent: oklch(0.798 0.012 17.399);
  --accent-foreground: oklch(0.264 0.009 17.755);
  --destructive: oklch(0.389 0.109 40.871);
  --destructive-foreground: oklch(0.879 0.055 44.46);
  --ring: oklch(0.803 0.12 55.636);
  --chart-1: oklch(0.803 0.12 55.636);
  --chart-2: oklch(0.877 0 180);
  --chart-3: oklch(0.798 0.012 17.399);
  --chart-4: oklch(0.9 0 188.746);
  --chart-5: oklch(0.804 0.123 55.505);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.014 65.698);
  --foreground: oklch(0.978 0.005 58.293);
  --muted: oklch(0.207 0.014 57.371);
  --muted-foreground: oklch(0.727 0.019 57.992);
  --popover: oklch(0.134 0.014 65.698);
  --popover-foreground: oklch(0.978 0.005 58.293);
  --card: oklch(0.148 0.016 62.663);
  --card-foreground: oklch(0.985 0.003 58.317);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.803 0.12 55.636);
  --primary-foreground: oklch(0.248 0.059 53.566);
  --secondary: oklch(0.217 0.007 57.88);
  --secondary-foreground: oklch(0.767 0.016 58.066);
  --accent: oklch(0.304 0.019 57.489);
  --accent-foreground: oklch(0.831 0.018 58.067);
  --destructive: oklch(0.696 0.155 42.776);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.803 0.12 55.636);
  --chart-1: oklch(0.803 0.12 55.636);
  --chart-2: oklch(0.217 0.007 57.88);
  --chart-3: oklch(0.304 0.019 57.489);
  --chart-4: oklch(0.25 0.009 57.837);
  --chart-5: oklch(0.804 0.123 55.505);
}