beautiful is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted blue accents (#445964). The light mode uses a blue-tinted background (#253137). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#253137).
| Token | Light | Dark |
|---|---|---|
| Background | #253137darkslategray | #253137darkslategray |
| Foreground | #f0ffffazure | #f0ffffazure |
| Card | #212b31darkslategray | #212b31darkslategray |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #1f292edarkslategray | #1f292edarkslategray |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #313a3fdarkslategray | #313a3fdarkslategray |
| Muted foreground | #afbac0silver | #afbac0silver |
| Accent | #445964darkslategray | #445964darkslategray |
| Accent foreground | #eaeef1lavender | #eaeef1lavender |
| Destructive | #df2016crimson | #df2016crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #353c40darkslategray | #353c40darkslategray |
| Input | #3c4448darkslategray | #3c4448darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 13.02:1 | AAA |
| Text on card | 14.38:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 4.82:1 | AA |
| Text on background | 13.02:1 | AAA |
| Text on card | 14.38:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 4.82:1 | AA |
Paste this into your globals.css to use beautiful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.304 0.019 229.767);
--foreground: oklch(0.989 0.016 196.897);
--muted: oklch(0.343 0.014 229.374);
--muted-foreground: oklch(0.783 0.015 229.013);
--popover: oklch(0.272 0.016 229.712);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.283 0.017 229.732);
--card-foreground: oklch(1 0 180);
--border: oklch(0.353 0.011 229.207);
--input: oklch(0.382 0.012 229.219);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.452 0.031 229.918);
--accent-foreground: oklch(0.947 0.006 228.83);
--destructive: oklch(0.578 0.222 29.288);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.452 0.031 229.918);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.304 0.019 229.767);
--foreground: oklch(0.989 0.016 196.897);
--muted: oklch(0.343 0.014 229.374);
--muted-foreground: oklch(0.783 0.015 229.013);
--popover: oklch(0.272 0.016 229.712);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.283 0.017 229.732);
--card-foreground: oklch(1 0 180);
--border: oklch(0.353 0.011 229.207);
--input: oklch(0.382 0.012 229.219);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.452 0.031 229.918);
--accent-foreground: oklch(0.947 0.006 228.83);
--destructive: oklch(0.578 0.222 29.288);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.452 0.031 229.918);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}