Pretty for shadcn/ui

Pretty is a shadcn/ui theme built around a vivid red primary color (#f48971) with vivid cyan accents (#71dcf4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#f48971) on a red-tinted background (#0e0806).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0806black
Foreground
#080302black
#fbf9f8snow
Card
#ffffffwhite
#0e0806black
Card foreground
#080302black
#fbf9f8snow
Popover
#ffffffwhite
#0e0806black
Popover foreground
#080302black
#fbf9f8snow
Primary
#f48971salmon
#f48971salmon
Primary foreground
#2f0c04black
#2f0c04black
Secondary
#71dcf4lightskyblue
#71dcf4lightskyblue
Secondary foreground
#04272fblack
#04272fblack
Muted
#deebedlavender
#121f21black
Muted foreground
#52595bdimgray
#a4abaddarkgray
Accent
#71dcf4lightskyblue
#71dcf4lightskyblue
Accent foreground
#04272fblack
#04272fblack
Destructive
#7d2708saddlebrown
#f26c3atomato
Destructive foreground
#fbcdbcpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f48971salmon
#f48971salmon

Contrast

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

Light mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.37:1AAA
Secondary button9.92:1AAA
Muted text5.83:1AA
Accent9.92:1AAA
Destructive6.73:1AA
Dark mode
Text on background18.96:1AAA
Text on card18.96:1AAA
Primary button7.37:1AAA
Secondary button9.92:1AAA
Muted text7.27:1AAA
Accent9.92:1AAA
Destructive6.97:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.11 0.014 38.808);
  --muted: oklch(0.93 0.014 212.682);
  --muted-foreground: oklch(0.46 0.009 212.695);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.11 0.014 38.808);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.11 0.014 38.808);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.741 0.136 33.672);
  --primary-foreground: oklch(0.213 0.061 36.091);
  --secondary: oklch(0.84 0.104 214.312);
  --secondary-foreground: oklch(0.254 0.042 216.241);
  --accent: oklch(0.84 0.104 214.312);
  --accent-foreground: oklch(0.254 0.042 216.241);
  --destructive: oklch(0.401 0.125 37.748);
  --destructive-foreground: oklch(0.883 0.057 40.951);
  --ring: oklch(0.741 0.136 33.672);
  --chart-1: oklch(0.741 0.136 33.672);
  --chart-2: oklch(0.84 0.104 214.312);
  --chart-3: oklch(0.84 0.104 214.312);
  --chart-4: oklch(0.854 0.096 213.913);
  --chart-5: oklch(0.741 0.141 33.721);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.014 35.905);
  --foreground: oklch(0.984 0.003 32.661);
  --muted: oklch(0.227 0.019 213.249);
  --muted-foreground: oklch(0.736 0.008 212.674);
  --popover: oklch(0.141 0.014 35.905);
  --popover-foreground: oklch(0.984 0.003 32.661);
  --card: oklch(0.141 0.014 35.905);
  --card-foreground: oklch(0.984 0.003 32.661);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.741 0.136 33.672);
  --primary-foreground: oklch(0.213 0.061 36.091);
  --secondary: oklch(0.84 0.104 214.312);
  --secondary-foreground: oklch(0.254 0.042 216.241);
  --accent: oklch(0.84 0.104 214.312);
  --accent-foreground: oklch(0.254 0.042 216.241);
  --destructive: oklch(0.687 0.178 39.559);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.741 0.136 33.672);
  --chart-1: oklch(0.741 0.136 33.672);
  --chart-2: oklch(0.84 0.104 214.312);
  --chart-3: oklch(0.84 0.104 214.312);
  --chart-4: oklch(0.854 0.096 213.913);
  --chart-5: oklch(0.741 0.141 33.721);
}