Lounge for shadcn/ui

Lounge is a shadcn/ui theme built around a purple primary color (#83217e) with green accents (#218326). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#83217e) on a neutral background (#070406).

Color palette

TokenLightDark
Background
#ffffffwhite
#070406black
Foreground
#040104black
#faf4faghostwhite
Card
#fcfcfcsnow
#0a050ablack
Card foreground
#000000black
#fcf8fcsnow
Popover
#ffffffwhite
#070406black
Popover foreground
#040104black
#faf4faghostwhite
Primary
#83217epurple
#83217epurple
Primary foreground
#f7def6lavender
#f7def6lavender
Secondary
#218326forestgreen
#218326forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d2ead3gainsboro
#152d16black
Muted foreground
#4e6a4fdarkolivegreen
#95b197darkseagreen
Accent
#218326forestgreen
#218326forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#762a04saddlebrown
#f76f2btomato
Destructive foreground
#fccab0peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#83217epurple
#83217epurple

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.54:1AAA
Primary button6.77:1AA
Secondary button4.86:1AA
Muted text4.69:1AA
Accent4.86:1AA
Destructive6.74:1AA
Dark mode
Text on background18.87:1AAA
Text on card19.19:1AAA
Primary button6.77:1AA
Secondary button4.86:1AA
Muted text6.34:1AA
Accent4.86:1AA
Destructive7.29:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.087 0.018 328.33);
  --muted: oklch(0.913 0.04 146.626);
  --muted-foreground: oklch(0.493 0.052 145.985);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.087 0.018 328.33);
  --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.441 0.169 330.182);
  --primary-foreground: oklch(0.928 0.041 327.434);
  --secondary: oklch(0.534 0.157 143.597);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.534 0.157 143.597);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.393 0.115 41.808);
  --destructive-foreground: oklch(0.876 0.067 47.934);
  --ring: oklch(0.441 0.169 330.182);
  --chart-1: oklch(0.441 0.169 330.182);
  --chart-2: oklch(0.534 0.157 143.597);
  --chart-3: oklch(0.534 0.157 143.597);
  --chart-4: oklch(0.569 0.168 143.57);
  --chart-5: oklch(0.445 0.175 330.273);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.013 327.798);
  --foreground: oklch(0.975 0.01 327.128);
  --muted: oklch(0.271 0.051 145.06);
  --muted-foreground: oklch(0.732 0.048 146.406);
  --popover: oklch(0.112 0.013 327.798);
  --popover-foreground: oklch(0.975 0.01 327.128);
  --card: oklch(0.128 0.015 327.798);
  --card-foreground: oklch(0.983 0.006 327.098);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.441 0.169 330.182);
  --primary-foreground: oklch(0.928 0.041 327.434);
  --secondary: oklch(0.534 0.157 143.597);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.534 0.157 143.597);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.698 0.184 43.625);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.441 0.169 330.182);
  --chart-1: oklch(0.441 0.169 330.182);
  --chart-2: oklch(0.534 0.157 143.597);
  --chart-3: oklch(0.534 0.157 143.597);
  --chart-4: oklch(0.569 0.168 143.57);
  --chart-5: oklch(0.445 0.175 330.273);
}