Magnificent is a shadcn/ui theme built around a light cyan primary color (#b5d9de) with light red accents (#deb9b5). The light mode uses a neutral background (#fbfefe). Dark mode keeps the light cyan primary (#b5d9de) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #030707black |
| Foreground | #010404black | #f6f8f8whitesmoke |
| Card | #fbfefewhite | #030707black |
| Card foreground | #010404black | #f6f8f8whitesmoke |
| Popover | #fbfefewhite | #030707black |
| Popover foreground | #010404black | #f6f8f8whitesmoke |
| Primary | #b5d9delightblue | #b5d9delightblue |
| Primary foreground | #1e3f43darkslategray | #1e3f43darkslategray |
| Secondary | #deb9b5silver | #deb9b5silver |
| Secondary foreground | #43221edarkslategray | #43221edarkslategray |
| Muted | #f5f0f0whitesmoke | #0f0b0ablack |
| Muted foreground | #463b39darkslategray | #c6bab9silver |
| Accent | #deb9b5silver | #deb9b5silver |
| Accent foreground | #43221edarkslategray | #43221edarkslategray |
| Destructive | #b33005firebrick | #f9470borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b5d9delightblue | #b5d9delightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 9.58:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 10.37:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Magnificent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 206.421);
--foreground: oklch(0.097 0.009 203.722);
--muted: oklch(0.96 0.004 26.471);
--muted-foreground: oklch(0.363 0.016 26.797);
--popover: oklch(0.994 0.003 206.421);
--popover-foreground: oklch(0.097 0.009 203.722);
--card: oklch(0.994 0.003 206.421);
--card-foreground: oklch(0.097 0.009 203.722);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.862 0.039 206.26);
--primary-foreground: oklch(0.344 0.04 206.681);
--secondary: oklch(0.818 0.043 26.882);
--secondary-foreground: oklch(0.296 0.052 28.528);
--accent: oklch(0.818 0.043 26.882);
--accent-foreground: oklch(0.296 0.052 28.528);
--destructive: oklch(0.509 0.173 35.555);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.039 206.26);
--chart-1: oklch(0.862 0.039 206.26);
--chart-2: oklch(0.818 0.043 26.882);
--chart-3: oklch(0.818 0.043 26.882);
--chart-4: oklch(0.844 0.037 26.788);
--chart-5: oklch(0.864 0.042 206.257);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.009 204.288);
--foreground: oklch(0.978 0.002 206.428);
--muted: oklch(0.155 0.007 26.818);
--muted-foreground: oklch(0.799 0.013 26.554);
--popover: oklch(0.121 0.009 204.288);
--popover-foreground: oklch(0.978 0.002 206.428);
--card: oklch(0.121 0.009 204.288);
--card-foreground: oklch(0.978 0.002 206.428);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.862 0.039 206.26);
--primary-foreground: oklch(0.344 0.04 206.681);
--secondary: oklch(0.818 0.043 26.882);
--secondary-foreground: oklch(0.296 0.052 28.528);
--accent: oklch(0.818 0.043 26.882);
--accent-foreground: oklch(0.296 0.052 28.528);
--destructive: oklch(0.651 0.222 35.459);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.039 206.26);
--chart-1: oklch(0.862 0.039 206.26);
--chart-2: oklch(0.818 0.043 26.882);
--chart-3: oklch(0.818 0.043 26.882);
--chart-4: oklch(0.844 0.037 26.788);
--chart-5: oklch(0.864 0.042 206.257);
}