Unpleasant for shadcn/ui

Unpleasant is a shadcn/ui theme built around a muted red primary color (#b68886) with muted orange accents (#b6a186). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted red primary (#b68886) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040101black
Foreground
#040101black
#fdfcfcsnow
Card
#fdf7f7snow
#070303black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf7f7snow
#070303black
Popover foreground
#000000black
#ffffffwhite
Primary
#b68886rosybrown
#b68886rosybrown
Primary foreground
#060404black
#060404black
Secondary
#b6869crosybrown
#b6869crosybrown
Secondary foreground
#060405black
#060405black
Muted
#efe7ealinen
#181014black
Muted foreground
#745865dimgray
#a78b98rosybrown
Accent
#b6a186rosybrown
#b6a186rosybrown
Accent foreground
#060504black
#060504black
Destructive
#920101darkred
#fd0808red
Destructive foreground
#fec7c7pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b68886rosybrown
#b68886rosybrown

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card19.81:1AAA
Primary button6.69:1AA
Secondary button6.69:1AA
Muted text5.17:1AA
Accent8.15:1AAA
Destructive6.35:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.51:1AAA
Primary button6.69:1AA
Secondary button6.69:1AA
Muted text6.02:1AA
Accent8.15:1AAA
Destructive4.04:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 20.933);
  --foreground: oklch(0.082 0.016 26.404);
  --muted: oklch(0.934 0.01 348.106);
  --muted-foreground: oklch(0.493 0.042 350.02);
  --popover: oklch(0.981 0.007 20.978);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.007 20.978);
  --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.671 0.057 22.129);
  --primary-foreground: oklch(0.111 0.007 22.354);
  --secondary: oklch(0.673 0.066 350.34);
  --secondary-foreground: oklch(0.112 0.008 347.688);
  --accent: oklch(0.72 0.045 72.579);
  --accent-foreground: oklch(0.118 0.006 76.606);
  --destructive: oklch(0.416 0.17 29.107);
  --destructive-foreground: oklch(0.88 0.063 18.419);
  --ring: oklch(0.671 0.057 22.129);
  --chart-1: oklch(0.671 0.057 22.129);
  --chart-2: oklch(0.673 0.066 350.34);
  --chart-3: oklch(0.72 0.045 72.579);
  --chart-4: oklch(0.7 0.06 350.039);
  --chart-5: oklch(0.669 0.064 22.317);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.011 24.161);
  --foreground: oklch(0.992 0.001 20.903);
  --muted: oklch(0.187 0.015 349.938);
  --muted-foreground: oklch(0.666 0.039 349.343);
  --popover: oklch(0.107 0.014 24.161);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.107 0.014 24.161);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.671 0.057 22.129);
  --primary-foreground: oklch(0.111 0.007 22.354);
  --secondary: oklch(0.673 0.066 350.34);
  --secondary-foreground: oklch(0.112 0.008 347.688);
  --accent: oklch(0.72 0.045 72.579);
  --accent-foreground: oklch(0.118 0.006 76.606);
  --destructive: oklch(0.625 0.254 29.042);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.671 0.057 22.129);
  --chart-1: oklch(0.671 0.057 22.129);
  --chart-2: oklch(0.673 0.066 350.34);
  --chart-3: oklch(0.72 0.045 72.579);
  --chart-4: oklch(0.7 0.06 350.039);
  --chart-5: oklch(0.669 0.064 22.317);
}