Beautiful for shadcn/ui

Beautiful is a shadcn/ui theme built around a green primary color (#5bb95e) with purple accents (#b95bb5). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#5bb95e) on a green-tinted background (#040c04).

Color palette

TokenLightDark
Background
#fbfefbwhite
#040c04black
Foreground
#061307black
#f9fbf9mintcream
Card
#f7fdf7mintcream
#051005black
Card foreground
#050f05black
#fcfdfcwhite
Popover
#f7fdf7mintcream
#051005black
Popover foreground
#050f05black
#fcfdfcwhite
Primary
#5bb95emediumseagreen
#5bb95emediumseagreen
Primary foreground
#000000black
#000000black
Secondary
#b95bb5mediumorchid
#b95bb5mediumorchid
Secondary foreground
#000000black
#000000black
Muted
#ded8degainsboro
#272126darkslategray
Muted foreground
#5f4f5edimgray
#b0a0b0darkgray
Accent
#b95bb5mediumorchid
#b95bb5mediumorchid
Accent foreground
#000000black
#000000black
Destructive
#973707saddlebrown
#f4590borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5bb95emediumseagreen
#5bb95emediumseagreen

Contrast

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

Light mode
Text on background18.71:1AAA
Text on card18.88:1AAA
Primary button8.51:1AAA
Secondary button5.21:1AA
Muted text5.43:1AA
Accent5.21:1AA
Destructive7.32:1AAA
Dark mode
Text on background19.10:1AAA
Text on card19.07:1AAA
Primary button8.51:1AAA
Secondary button5.21:1AA
Muted text6.39:1AA
Accent5.21:1AA
Destructive3.35:1AA Large

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.005 146.498);
  --foreground: oklch(0.171 0.033 144.849);
  --muted: oklch(0.89 0.01 326.635);
  --muted-foreground: oklch(0.448 0.031 327.126);
  --popover: oklch(0.988 0.01 146.453);
  --popover-foreground: oklch(0.155 0.028 145.02);
  --card: oklch(0.988 0.01 146.453);
  --card-foreground: oklch(0.155 0.028 145.02);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.706 0.156 144.33);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.616 0.165 328.611);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.616 0.165 328.611);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.468 0.139 41.272);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.706 0.156 144.33);
  --chart-1: oklch(0.706 0.156 144.33);
  --chart-2: oklch(0.616 0.165 328.611);
  --chart-3: oklch(0.616 0.165 328.611);
  --chart-4: oklch(0.639 0.155 328.427);
  --chart-5: oklch(0.713 0.165 144.196);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.025 145.116);
  --foreground: oklch(0.986 0.003 146.519);
  --muted: oklch(0.256 0.013 326.977);
  --muted-foreground: oklch(0.725 0.028 326.867);
  --popover: oklch(0.156 0.029 144.989);
  --popover-foreground: oklch(0.993 0.001 146.53);
  --card: oklch(0.156 0.029 144.989);
  --card-foreground: oklch(0.993 0.001 146.53);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.706 0.156 144.33);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.616 0.165 328.611);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.616 0.165 328.611);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.662 0.203 40.301);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.706 0.156 144.33);
  --chart-1: oklch(0.706 0.156 144.33);
  --chart-2: oklch(0.616 0.165 328.611);
  --chart-3: oklch(0.616 0.165 328.611);
  --chart-4: oklch(0.639 0.155 328.427);
  --chart-5: oklch(0.713 0.165 144.196);
}