Splendid is a shadcn/ui theme built around a deep red primary color (#350909) with deep teal accents (#093535). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#350909) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040202black |
| Foreground | #100404black | #fdfcfcsnow |
| Card | #ffffffwhite | #040202black |
| Card foreground | #100404black | #fdfcfcsnow |
| Popover | #ffffffwhite | #040202black |
| Popover foreground | #100404black | #fdfcfcsnow |
| Primary | #350909black | #350909black |
| Primary foreground | #eb8484lightcoral | #eb8484lightcoral |
| Secondary | #093535darkslategray | #093535darkslategray |
| Secondary foreground | #2cddddturquoise | #2cddddturquoise |
| Muted | #eef1f1whitesmoke | #0e1111black |
| Muted foreground | #525b5bdimgray | #a4adaddarkgray |
| Accent | #093535darkslategray | #093535darkslategray |
| Accent foreground | #2cddddturquoise | #2cddddturquoise |
| Destructive | #b12202firebrick | #fd451corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #350909black | #350909black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 8.29:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Splendid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.024 20.908);
--muted: oklch(0.956 0.003 197.108);
--muted-foreground: oklch(0.464 0.011 196.783);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.132 0.024 20.908);
--card: oklch(1 0 180);
--card-foreground: oklch(0.132 0.024 20.908);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.22 0.07 25.047);
--primary-foreground: oklch(0.726 0.126 20.63);
--secondary: oklch(0.299 0.046 194.984);
--secondary-foreground: oklch(0.815 0.132 194.874);
--accent: oklch(0.299 0.046 194.984);
--accent-foreground: oklch(0.815 0.132 194.874);
--destructive: oklch(0.492 0.182 32.72);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.22 0.07 25.047);
--chart-1: oklch(0.22 0.07 25.047);
--chart-2: oklch(0.299 0.046 194.984);
--chart-3: oklch(0.299 0.046 194.984);
--chart-4: oklch(0.345 0.054 194.944);
--chart-5: oklch(0.221 0.073 25.458);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.01 19.257);
--foreground: oklch(0.992 0.001 17.169);
--muted: oklch(0.173 0.004 196.751);
--muted-foreground: oklch(0.74 0.01 196.945);
--popover: oklch(0.085 0.01 19.257);
--popover-foreground: oklch(0.992 0.001 17.169);
--card: oklch(0.085 0.01 19.257);
--card-foreground: oklch(0.992 0.001 17.169);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.22 0.07 25.047);
--primary-foreground: oklch(0.726 0.126 20.63);
--secondary: oklch(0.299 0.046 194.984);
--secondary-foreground: oklch(0.815 0.132 194.874);
--accent: oklch(0.299 0.046 194.984);
--accent-foreground: oklch(0.815 0.132 194.874);
--destructive: oklch(0.657 0.225 33.479);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.22 0.07 25.047);
--chart-1: oklch(0.22 0.07 25.047);
--chart-2: oklch(0.299 0.046 194.984);
--chart-3: oklch(0.299 0.046 194.984);
--chart-4: oklch(0.345 0.054 194.944);
--chart-5: oklch(0.221 0.073 25.458);
}