Beautiful for shadcn/ui

Beautiful is a shadcn/ui theme built around a vivid deep yellow primary color (#7f6206) with vivid deep green accents (#5e7f06). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the vivid deep yellow primary (#7f6206) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#040301black
Foreground
#040301black
#ffffffwhite
Card
#fcfbf8snow
#080603black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfdfbsnow
#040301black
Popover foreground
#040301black
#ffffffwhite
Primary
#7f6206olive
#7f6206olive
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7f2606saddlebrown
#7f2606saddlebrown
Secondary foreground
#fcccbbpeachpuff
#fcccbbpeachpuff
Muted
#f2ebe9linen
#16100dblack
Muted foreground
#4b4948darkslategray
#b7b4b4silver
Accent
#5e7f06olive
#5e7f06olive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c03b02firebrick
#fd6626tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7f6206olive
#7f6206olive

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.27:1AAA
Primary button5.73:1AA
Secondary button6.65:1AA
Muted text7.59:1AAA
Accent4.66:1AA
Destructive5.43:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.21:1AAA
Primary button5.73:1AA
Secondary button6.65:1AA
Muted text9.16:1AAA
Accent4.66:1AA
Destructive7.11:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 92.677);
  --foreground: oklch(0.1 0.013 97.694);
  --muted: oklch(0.945 0.008 41.238);
  --muted-foreground: oklch(0.408 0.003 41.244);
  --popover: oklch(0.994 0.002 92.677);
  --popover-foreground: oklch(0.1 0.013 97.694);
  --card: oklch(0.988 0.004 92.697);
  --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.512 0.103 88.574);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.403 0.128 37.488);
  --secondary-foreground: oklch(0.883 0.059 40.943);
  --accent: oklch(0.55 0.137 125.537);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.543 0.178 37.731);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.512 0.103 88.574);
  --chart-1: oklch(0.512 0.103 88.574);
  --chart-2: oklch(0.403 0.128 37.488);
  --chart-3: oklch(0.55 0.137 125.537);
  --chart-4: oklch(0.435 0.14 37.238);
  --chart-5: oklch(0.516 0.104 88.255);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 96.84);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.179 0.013 40.933);
  --muted-foreground: oklch(0.773 0.003 41.276);
  --popover: oklch(0.099 0.011 96.84);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.013 96.84);
  --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.512 0.103 88.574);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.403 0.128 37.488);
  --secondary-foreground: oklch(0.883 0.059 40.943);
  --accent: oklch(0.55 0.137 125.537);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.694 0.197 40.603);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.512 0.103 88.574);
  --chart-1: oklch(0.512 0.103 88.574);
  --chart-2: oklch(0.403 0.128 37.488);
  --chart-3: oklch(0.55 0.137 125.537);
  --chart-4: oklch(0.435 0.14 37.238);
  --chart-5: oklch(0.516 0.104 88.255);
}