Marvelous is a shadcn/ui theme built around a vivid deep purple primary color (#2f023c) with vivid deep green accents (#0e3c02). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the vivid deep purple primary (#2f023c) on a neutral background (#070208).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #070208black |
| Foreground | #0a030cblack | #ffffffwhite |
| Card | #f9f5faghostwhite | #0a030cblack |
| Card foreground | #070208black | #ffffffwhite |
| Popover | #fbf8fcghostwhite | #070208black |
| Popover foreground | #0a030cblack | #ffffffwhite |
| Primary | #2f023cmidnightblue | #2f023cmidnightblue |
| Primary foreground | #de74fbviolet | #de74fbviolet |
| Secondary | #0e3c02darkgreen | #0e3c02darkgreen |
| Secondary foreground | #43f910limegreen | #43f910limegreen |
| Muted | #f2f3f1whitesmoke | #0c0e0cblack |
| Muted foreground | #545b52dimgray | #a6ada4darkgray |
| Accent | #0e3c02darkgreen | #0e3c02darkgreen |
| Accent foreground | #43f910limegreen | #43f910limegreen |
| Destructive | #d43b11firebrick | #d93d12orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f023cmidnightblue | #2f023cmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.34:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 8.91:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 8.91:1 | AAA |
| Destructive | 4.71:1 | AA |
| Text on background | 20.56:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 8.91:1 | AAA |
| Muted text | 8.43:1 | AAA |
| Accent | 8.91:1 | AAA |
| Destructive | 4.54:1 | AA |
Paste this into your globals.css to use Marvelous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 318.889);
--foreground: oklch(0.121 0.027 320.49);
--muted: oklch(0.963 0.003 138.892);
--muted-foreground: oklch(0.462 0.016 138.905);
--popover: oklch(0.983 0.005 318.889);
--popover-foreground: oklch(0.121 0.027 320.49);
--card: oklch(0.974 0.008 318.888);
--card-foreground: oklch(0.106 0.024 320.789);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.227 0.107 317.415);
--primary-foreground: oklch(0.73 0.212 318.522);
--secondary: oklch(0.312 0.098 139.874);
--secondary-foreground: oklch(0.857 0.279 140.943);
--accent: oklch(0.312 0.098 139.874);
--accent-foreground: oklch(0.857 0.279 140.943);
--destructive: oklch(0.579 0.196 34.714);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.227 0.107 317.415);
--chart-1: oklch(0.227 0.107 317.415);
--chart-2: oklch(0.312 0.098 139.874);
--chart-3: oklch(0.312 0.098 139.874);
--chart-4: oklch(0.36 0.115 140.25);
--chart-5: oklch(0.228 0.109 317.346);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.026 320.937);
--foreground: oklch(1 0 180);
--muted: oklch(0.16 0.005 138.903);
--muted-foreground: oklch(0.738 0.014 138.898);
--popover: oklch(0.105 0.026 320.937);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.12 0.03 320.559);
--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.227 0.107 317.415);
--primary-foreground: oklch(0.73 0.212 318.522);
--secondary: oklch(0.312 0.098 139.874);
--secondary-foreground: oklch(0.857 0.279 140.943);
--accent: oklch(0.312 0.098 139.874);
--accent-foreground: oklch(0.857 0.279 140.943);
--destructive: oklch(0.588 0.199 34.695);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.227 0.107 317.415);
--chart-1: oklch(0.227 0.107 317.415);
--chart-2: oklch(0.312 0.098 139.874);
--chart-3: oklch(0.312 0.098 139.874);
--chart-4: oklch(0.36 0.115 140.25);
--chart-5: oklch(0.228 0.109 317.346);
}