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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 6.65:1 | AA |
| Muted text | 7.59:1 | AAA |
| Accent | 4.66:1 | AA |
| Destructive | 5.43:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 5.73:1 | AA |
| Secondary button | 6.65:1 | AA |
| Muted text | 9.16:1 | AAA |
| Accent | 4.66:1 | AA |
| Destructive | 7.11:1 | AAA |
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);
}