Underclothes for shadcn/ui

Underclothes is a shadcn/ui theme built around a blue primary color (#84aedc) with green accents (#aedc84). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#84aedc) on a blue-tinted background (#050a0f).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a0fblack
Foreground
#010204black
#f8fafbghostwhite
Card
#fcfcfcsnow
#070d13black
Card foreground
#000000black
#fcfcfdwhite
Popover
#fcfcfcsnow
#070d13black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#84aedcskyblue
#84aedcskyblue
Primary foreground
#0a1724black
#0a1724black
Secondary
#dc84aepalevioletred
#dc84aepalevioletred
Secondary foreground
#240a17black
#240a17black
Muted
#f1e9edlinen
#160e12black
Muted foreground
#705c66dimgray
#a38f99rosybrown
Accent
#aedc84lightgreen
#aedc84lightgreen
Accent foreground
#17240ablack
#17240ablack
Destructive
#7e1707maroon
#f44d34tomato
Destructive foreground
#fbc4bblightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#84aedcskyblue
#84aedcskyblue

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.54:1AAA
Primary button7.84:1AAA
Secondary button7.02:1AAA
Muted text5.17:1AA
Accent10.36:1AAA
Destructive6.82:1AA
Dark mode
Text on background18.97:1AAA
Text on card19.08:1AAA
Primary button7.84:1AAA
Secondary button7.02:1AAA
Muted text6.28:1AA
Accent10.36:1AAA
Destructive3.51:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.088 0.011 240.897);
  --muted: oklch(0.942 0.009 346.281);
  --muted-foreground: oklch(0.498 0.03 347.567);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.739 0.081 250.617);
  --primary-foreground: oklch(0.198 0.032 251.235);
  --secondary: oklch(0.719 0.12 350.144);
  --secondary-foreground: oklch(0.193 0.047 352.246);
  --accent: oklch(0.842 0.126 130.934);
  --accent-foreground: oklch(0.24 0.048 131.84);
  --destructive: oklch(0.386 0.14 31.609);
  --destructive-foreground: oklch(0.867 0.065 28.507);
  --ring: oklch(0.739 0.081 250.617);
  --chart-1: oklch(0.739 0.081 250.617);
  --chart-2: oklch(0.719 0.12 350.144);
  --chart-3: oklch(0.842 0.126 130.934);
  --chart-4: oklch(0.745 0.108 349.594);
  --chart-5: oklch(0.738 0.085 250.675);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.014 246.203);
  --foreground: oklch(0.984 0.003 249.675);
  --muted: oklch(0.176 0.014 348.091);
  --muted-foreground: oklch(0.671 0.028 347.094);
  --popover: oklch(0.154 0.017 248.978);
  --popover-foreground: oklch(0.992 0.001 249.663);
  --card: oklch(0.154 0.017 248.978);
  --card-foreground: oklch(0.992 0.001 249.663);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.739 0.081 250.617);
  --primary-foreground: oklch(0.198 0.032 251.235);
  --secondary: oklch(0.719 0.12 350.144);
  --secondary-foreground: oklch(0.193 0.047 352.246);
  --accent: oklch(0.842 0.126 130.934);
  --accent-foreground: oklch(0.24 0.048 131.84);
  --destructive: oklch(0.653 0.208 31.582);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.739 0.081 250.617);
  --chart-1: oklch(0.739 0.081 250.617);
  --chart-2: oklch(0.719 0.12 350.144);
  --chart-3: oklch(0.842 0.126 130.934);
  --chart-4: oklch(0.745 0.108 349.594);
  --chart-5: oklch(0.738 0.085 250.675);
}