Unpleasant for shadcn/ui

Unpleasant is a shadcn/ui theme built around a deep yellow primary color (#282110) with deep violet accents (#211028). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep yellow primary (#282110) on a yellow-tinted background (#0e0c07).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0e0c07black
Foreground
#141005black
#ffffffwhite
Card
#fefdfbsnow
#0e0c07black
Card foreground
#141005black
#ffffffwhite
Popover
#fefdfbsnow
#0e0c07black
Popover foreground
#141005black
#ffffffwhite
Primary
#282110black
#282110black
Primary foreground
#d5c395tan
#d5c395tan
Secondary
#102821black
#102821black
Secondary foreground
#4cb899cadetblue
#4cb899cadetblue
Muted
#dcefealavender
#10231eblack
Muted foreground
#4a5451darkslategray
#abb5b2darkgray
Accent
#211028black
#211028black
Accent foreground
#c395d5plum
#c395d5plum
Destructive
#891501darkred
#fe4525orangered
Destructive foreground
#ffc7bdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#282110black
#282110black

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button9.15:1AAA
Secondary button6.39:1AA
Muted text6.55:1AA
Accent7.33:1AAA
Destructive6.51:1AA
Dark mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button9.15:1AAA
Secondary button6.39:1AA
Muted text7.79:1AAA
Accent7.33:1AAA
Destructive3.44: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.995 0.003 88.813);
  --foreground: oklch(0.175 0.022 89.935);
  --muted: oklch(0.936 0.021 177.046);
  --muted-foreground: oklch(0.436 0.013 176.838);
  --popover: oklch(0.995 0.003 88.813);
  --popover-foreground: oklch(0.175 0.022 89.935);
  --card: oklch(0.995 0.003 88.813);
  --card-foreground: oklch(0.175 0.022 89.935);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.252 0.031 88.572);
  --primary-foreground: oklch(0.82 0.064 88.988);
  --secondary: oklch(0.255 0.033 172.931);
  --secondary-foreground: oklch(0.711 0.109 171.542);
  --accent: oklch(0.21 0.051 315.743);
  --accent-foreground: oklch(0.735 0.102 316.185);
  --destructive: oklch(0.406 0.153 32.168);
  --destructive-foreground: oklch(0.876 0.066 29.922);
  --ring: oklch(0.252 0.031 88.572);
  --chart-1: oklch(0.252 0.031 88.572);
  --chart-2: oklch(0.255 0.033 172.931);
  --chart-3: oklch(0.21 0.051 315.743);
  --chart-4: oklch(0.295 0.04 172.574);
  --chart-5: oklch(0.254 0.033 88.457);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.012 90.315);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.238 0.027 173.712);
  --muted-foreground: oklch(0.764 0.011 177.283);
  --popover: oklch(0.154 0.012 90.315);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.012 90.315);
  --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.252 0.031 88.572);
  --primary-foreground: oklch(0.82 0.064 88.988);
  --secondary: oklch(0.255 0.033 172.931);
  --secondary-foreground: oklch(0.711 0.109 171.542);
  --accent: oklch(0.21 0.051 315.743);
  --accent-foreground: oklch(0.735 0.102 316.185);
  --destructive: oklch(0.66 0.225 32.31);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.252 0.031 88.572);
  --chart-1: oklch(0.252 0.031 88.572);
  --chart-2: oklch(0.255 0.033 172.931);
  --chart-3: oklch(0.21 0.051 315.743);
  --chart-4: oklch(0.295 0.04 172.574);
  --chart-5: oklch(0.254 0.033 88.457);
}