Extra-large is a shadcn/ui theme built around a vivid light purple primary color (#fe85d8) with vivid light green accents (#85feac). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the vivid light purple primary (#fe85d8) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #040103black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fcf8fbsnow | #070306black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf8fbsnow | #070306black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #fe85d8violet | #fe85d8violet |
| Primary foreground | #510038maroon | #510038maroon |
| Secondary | #85feacpalegreen | #85feacpalegreen |
| Secondary foreground | #00511adarkgreen | #00511adarkgreen |
| Muted | #e4f1e8honeydew | #0e1b12black |
| Muted foreground | #525b55dimgray | #a4ada7darkgray |
| Accent | #85feacpalegreen | #85feacpalegreen |
| Accent foreground | #00511adarkgreen | #00511adarkgreen |
| Destructive | #a63e11saddlebrown | #eb7542coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fe85d8violet | #fe85d8violet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.46:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 6.04:1 | AA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 7.13:1 | AAA |
Paste this into your globals.css to use Extra-large in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 336.617);
--foreground: oklch(0 0 0);
--muted: oklch(0.946 0.018 156.177);
--muted-foreground: oklch(0.462 0.014 155.931);
--popover: oklch(0.983 0.006 336.675);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.006 336.675);
--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.777 0.175 340.621);
--primary-foreground: oklch(0.29 0.122 346.125);
--secondary: oklch(0.907 0.159 152.319);
--secondary-foreground: oklch(0.38 0.112 147.262);
--accent: oklch(0.907 0.159 152.319);
--accent-foreground: oklch(0.38 0.112 147.262);
--destructive: oklch(0.503 0.147 40.173);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.777 0.175 340.621);
--chart-1: oklch(0.777 0.175 340.621);
--chart-2: oklch(0.907 0.159 152.319);
--chart-3: oklch(0.907 0.159 152.319);
--chart-4: oklch(0.916 0.141 152.966);
--chart-5: oklch(0.777 0.18 340.738);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.014 336.944);
--foreground: oklch(0.992 0.001 336.578);
--muted: oklch(0.206 0.026 153.782);
--muted-foreground: oklch(0.738 0.013 156.213);
--popover: oklch(0.109 0.018 336.944);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.018 336.944);
--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.777 0.175 340.621);
--primary-foreground: oklch(0.29 0.122 346.125);
--secondary: oklch(0.907 0.159 152.319);
--secondary-foreground: oklch(0.38 0.112 147.262);
--accent: oklch(0.907 0.159 152.319);
--accent-foreground: oklch(0.38 0.112 147.262);
--destructive: oklch(0.691 0.161 42.539);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.777 0.175 340.621);
--chart-1: oklch(0.777 0.175 340.621);
--chart-2: oklch(0.907 0.159 152.319);
--chart-3: oklch(0.907 0.159 152.319);
--chart-4: oklch(0.916 0.141 152.966);
--chart-5: oklch(0.777 0.18 340.738);
}