Uncomfortable for shadcn/ui

Uncomfortable is a shadcn/ui theme built around a deep yellow primary color (#514d1a) with deep purple accents (#4d1a51). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep yellow primary (#514d1a) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fefdfbsnow
#040401black
Foreground
#0c0b04black
#fdfdfcwhite
Card
#fcfcf7snow
#080802black
Card foreground
#080702black
#ffffffwhite
Popover
#fcfcf7snow
#080802black
Popover foreground
#080702black
#ffffffwhite
Primary
#514d1adarkolivegreen
#514d1adarkolivegreen
Primary foreground
#e8e4b5palegoldenrod
#e8e4b5palegoldenrod
Secondary
#1a514ddarkslategray
#1a514ddarkslategray
Secondary foreground
#b5e8e4powderblue
#b5e8e4powderblue
Muted
#dee3e2gainsboro
#1c2120black
Muted foreground
#516160dimgray
#9eaeacdarkgray
Accent
#4d1a51indigo
#4d1a51indigo
Accent foreground
#e4b5e8thistle
#e4b5e8thistle
Destructive
#8d0401darkred
#fd201cred
Destructive foreground
#fec3c2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#514d1adarkolivegreen
#514d1adarkolivegreen

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.60:1AAA
Primary button6.68:1AA
Secondary button6.68:1AA
Muted text5.00:1AA
Accent7.64:1AAA
Destructive6.40:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.10:1AAA
Primary button6.68:1AA
Secondary button6.68:1AA
Muted text7.07:1AAA
Accent7.64:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 102.262);
  --foreground: oklch(0.147 0.018 104.762);
  --muted: oklch(0.911 0.005 191.138);
  --muted-foreground: oklch(0.48 0.02 190.338);
  --popover: oklch(0.99 0.006 102.312);
  --popover-foreground: oklch(0.128 0.015 104.988);
  --card: oklch(0.99 0.006 102.312);
  --card-foreground: oklch(0.128 0.015 104.988);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.412 0.071 104.122);
  --primary-foreground: oklch(0.909 0.061 103.211);
  --secondary: oklch(0.399 0.058 187.372);
  --secondary-foreground: oklch(0.894 0.052 189.949);
  --accent: oklch(0.321 0.109 324.297);
  --accent-foreground: oklch(0.831 0.085 323.585);
  --destructive: oklch(0.406 0.164 29.367);
  --destructive-foreground: oklch(0.871 0.068 19.666);
  --ring: oklch(0.412 0.071 104.122);
  --chart-1: oklch(0.412 0.071 104.122);
  --chart-2: oklch(0.399 0.058 187.372);
  --chart-3: oklch(0.321 0.109 324.297);
  --chart-4: oklch(0.437 0.064 187.29);
  --chart-5: oklch(0.417 0.073 104.115);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.014 105.327);
  --foreground: oklch(0.993 0.001 102.228);
  --muted: oklch(0.242 0.006 190.673);
  --muted-foreground: oklch(0.737 0.018 190.712);
  --popover: oklch(0.13 0.018 105.327);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.13 0.018 105.327);
  --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.412 0.071 104.122);
  --primary-foreground: oklch(0.909 0.061 103.211);
  --secondary: oklch(0.399 0.058 187.372);
  --secondary-foreground: oklch(0.894 0.052 189.949);
  --accent: oklch(0.321 0.109 324.297);
  --accent-foreground: oklch(0.831 0.085 323.585);
  --destructive: oklch(0.633 0.247 28.607);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.412 0.071 104.122);
  --chart-1: oklch(0.412 0.071 104.122);
  --chart-2: oklch(0.399 0.058 187.372);
  --chart-3: oklch(0.321 0.109 324.297);
  --chart-4: oklch(0.437 0.064 187.29);
  --chart-5: oklch(0.417 0.073 104.115);
}