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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.71:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 5.21:1 | AA |
| Muted text | 5.43:1 | AA |
| Accent | 5.21:1 | AA |
| Destructive | 7.32:1 | AAA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 8.51:1 | AAA |
| Secondary button | 5.21:1 | AA |
| Muted text | 6.39:1 | AA |
| Accent | 5.21:1 | AA |
| Destructive | 3.35:1 | AA Large |
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);
}