Beautiful is a shadcn/ui theme built around a muted deep green primary color (#111d15) with muted green accents (#a4c6b1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#111d15) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020302black |
| Foreground | #000000black | #fbfdfcwhite |
| Card | #ffffffwhite | #020302black |
| Card foreground | #000000black | #fbfdfcwhite |
| Popover | #ffffffwhite | #020302black |
| Popover foreground | #000000black | #fbfdfcwhite |
| Primary | #111d15black | #111d15black |
| Primary foreground | #9bc5aadarkseagreen | #9bc5aadarkseagreen |
| Secondary | #c5d3calightgrey | #17211bblack |
| Secondary foreground | #2c3a31darkslategray | #a7c3b1darkgray |
| Muted | #e7f4ebhoneydew | #0b1810black |
| Muted foreground | #56615adimgray | #9ea9a2darkgray |
| Accent | #a4c6b1darkgray | #26402fdarkslategray |
| Accent foreground | #16231ablack | #bfd9c8lightgrey |
| Destructive | #bc4215firebrick | #ea6c3etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #111d15black | #111d15black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 9.04:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 8.75:1 | AAA |
| Destructive | 5.35:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 9.04:1 | AAA |
| Secondary button | 8.70:1 | AAA |
| Muted text | 7.48:1 | AAA |
| Accent | 7.50:1 | AAA |
| Destructive | 6.69:1 | AA |
Paste this into your globals.css to use Beautiful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.954 0.017 158.321);
--muted-foreground: oklch(0.482 0.018 157.908);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.217 0.023 156.098);
--primary-foreground: oklch(0.786 0.059 156.963);
--secondary: oklch(0.854 0.02 158.21);
--secondary-foreground: oklch(0.333 0.025 157.003);
--accent: oklch(0.796 0.047 157.358);
--accent-foreground: oklch(0.239 0.024 156.321);
--destructive: oklch(0.545 0.166 37.996);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.217 0.023 156.098);
--chart-1: oklch(0.217 0.023 156.098);
--chart-2: oklch(0.854 0.02 158.21);
--chart-3: oklch(0.796 0.047 157.358);
--chart-4: oklch(0.876 0.017 158.301);
--chart-5: oklch(0.218 0.026 155.807);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.008 158.593);
--foreground: oklch(0.993 0.003 158.663);
--muted: oklch(0.195 0.025 155.567);
--muted-foreground: oklch(0.723 0.016 158.236);
--popover: oklch(0.095 0.008 158.593);
--popover-foreground: oklch(0.993 0.003 158.663);
--card: oklch(0.095 0.008 158.593);
--card-foreground: oklch(0.993 0.003 158.663);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.217 0.023 156.098);
--primary-foreground: oklch(0.786 0.059 156.963);
--secondary: oklch(0.237 0.02 156.738);
--secondary-foreground: oklch(0.791 0.039 157.595);
--accent: oklch(0.345 0.044 155.531);
--accent-foreground: oklch(0.862 0.036 157.771);
--destructive: oklch(0.675 0.167 39.792);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.217 0.023 156.098);
--chart-1: oklch(0.217 0.023 156.098);
--chart-2: oklch(0.237 0.02 156.738);
--chart-3: oklch(0.345 0.044 155.531);
--chart-4: oklch(0.271 0.024 156.586);
--chart-5: oklch(0.218 0.026 155.807);
}