Classical Medium Slate Blue is a shadcn/ui theme built around a violet primary color (#8a66e5) with green accents (#66e58a). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#8a66e5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #000000black |
| Foreground | #000000black | #f6f5f9whitesmoke |
| Card | #f9f8fcghostwhite | #030303black |
| Card foreground | #000000black | #f9f9fbghostwhite |
| Popover | #fcfbfewhite | #000000black |
| Popover foreground | #000000black | #f6f5f9whitesmoke |
| Primary | #8a66e5mediumpurple | #8a66e5mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #e58a66darksalmon | #e58a66darksalmon |
| Secondary foreground | #160904black | #160904black |
| Muted | #f1ecealinen | #15100eblack |
| Muted foreground | #665f5cdimgray | #a39c99darkgray |
| Accent | #66e58amediumaquamarine | #66e58amediumaquamarine |
| Accent foreground | #041609black | #041609black |
| Destructive | #e11e05red | #fa3319orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e3e8gainsboro | #201e24black |
| Input | #e5e3e8gainsboro | #201e24black |
| Ring | #8a66e5mediumpurple | #8a66e5mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.39:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 5.13:1 | AA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 5.32:1 | AA |
| Accent | 11.70:1 | AAA |
| Destructive | 4.78:1 | AA |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 5.13:1 | AA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 6.96:1 | AA |
| Accent | 11.70:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Classical Medium Slate Blue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 299.249);
--foreground: oklch(0 0 0);
--muted: oklch(0.945 0.006 43.073);
--muted-foreground: oklch(0.49 0.01 42.957);
--popover: oklch(0.99 0.003 299.249);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.006 299.193);
--card-foreground: oklch(0 0 0);
--border: oklch(0.919 0.006 299.186);
--input: oklch(0.919 0.006 299.186);
--primary: oklch(0.609 0.184 293.203);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.722 0.122 42.117);
--secondary-foreground: oklch(0.157 0.027 48.069);
--accent: oklch(0.828 0.17 150.371);
--accent-foreground: oklch(0.178 0.037 152.09);
--destructive: oklch(0.58 0.226 30.673);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.609 0.184 293.203);
--chart-1: oklch(0.609 0.184 293.203);
--chart-2: oklch(0.722 0.122 42.117);
--chart-3: oklch(0.828 0.17 150.371);
--chart-4: oklch(0.745 0.111 42.261);
--chart-5: oklch(0.606 0.191 292.845);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.973 0.005 299.209);
--muted: oklch(0.18 0.009 42.759);
--muted-foreground: oklch(0.698 0.009 43.015);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.973 0.005 299.209);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.982 0.004 299.242);
--border: oklch(0.24 0.012 298.478);
--input: oklch(0.24 0.012 298.478);
--primary: oklch(0.609 0.184 293.203);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.722 0.122 42.117);
--secondary-foreground: oklch(0.157 0.027 48.069);
--accent: oklch(0.828 0.17 150.371);
--accent-foreground: oklch(0.178 0.037 152.09);
--destructive: oklch(0.639 0.235 31.002);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.609 0.184 293.203);
--chart-1: oklch(0.609 0.184 293.203);
--chart-2: oklch(0.722 0.122 42.117);
--chart-3: oklch(0.828 0.17 150.371);
--chart-4: oklch(0.745 0.111 42.261);
--chart-5: oklch(0.606 0.191 292.845);
}