Muscat is a shadcn/ui theme built around a deep green primary color (#436822) with deep violet accents (#472268). The light mode uses a neutral background (#fafcf8). Dark mode keeps the deep green primary (#436822) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #000000black |
| Foreground | #020401black | #f7f8f6whitesmoke |
| Card | #f7faf5whitesmoke | #030303black |
| Card foreground | #000000black | #fafbf9snow |
| Popover | #f7faf5whitesmoke | #030303black |
| Popover foreground | #000000black | #fafbf9snow |
| Primary | #436822darkolivegreen | #436822darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #472268indigo | #472268indigo |
| Secondary foreground | #dfcdefgainsboro | #dfcdefgainsboro |
| Muted | #edeceewhitesmoke | #121113black |
| Muted foreground | #5e5c60dimgray | #a19fa3darkgray |
| Accent | #472268indigo | #472268indigo |
| Accent foreground | #dfcdefgainsboro | #dfcdefgainsboro |
| Destructive | #7e1702maroon | #f12b04orangered |
| Destructive foreground | #fec0b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #436822darkolivegreen | #436822darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.48:1 | AA |
| Secondary button | 8.32:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 8.32:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.48:1 | AA |
| Secondary button | 8.32:1 | AAA |
| Muted text | 7.18:1 | AAA |
| Accent | 8.32:1 | AAA |
| Destructive | 4.12:1 | AA Large |
Paste this into your globals.css to use Muscat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 129.832);
--foreground: oklch(0.1 0.015 128.575);
--muted: oklch(0.945 0.003 309.752);
--muted-foreground: oklch(0.48 0.006 309.651);
--popover: oklch(0.981 0.007 129.856);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.007 129.856);
--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.473 0.108 132.993);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.34 0.119 305.458);
--secondary-foreground: oklch(0.873 0.05 309.221);
--accent: oklch(0.34 0.119 305.458);
--accent-foreground: oklch(0.873 0.05 309.221);
--destructive: oklch(0.385 0.14 32.842);
--destructive-foreground: oklch(0.861 0.074 31.461);
--ring: oklch(0.473 0.108 132.993);
--chart-1: oklch(0.473 0.108 132.993);
--chart-2: oklch(0.34 0.119 305.458);
--chart-3: oklch(0.34 0.119 305.458);
--chart-4: oklch(0.365 0.13 305.354);
--chart-5: oklch(0.478 0.113 133.195);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.003 129.812);
--muted: oklch(0.179 0.005 309.525);
--muted-foreground: oklch(0.705 0.006 309.702);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.002 129.803);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.002 129.803);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.473 0.108 132.993);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.34 0.119 305.458);
--secondary-foreground: oklch(0.873 0.05 309.221);
--accent: oklch(0.34 0.119 305.458);
--accent-foreground: oklch(0.873 0.05 309.221);
--destructive: oklch(0.617 0.233 31.827);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.473 0.108 132.993);
--chart-1: oklch(0.473 0.108 132.993);
--chart-2: oklch(0.34 0.119 305.458);
--chart-3: oklch(0.34 0.119 305.458);
--chart-4: oklch(0.365 0.13 305.354);
--chart-5: oklch(0.478 0.113 133.195);
}