Splendid is a shadcn/ui theme built around a light violet primary color (#edddf9) with light green accents (#e8f9dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#edddf9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #edddf9lavender | #edddf9lavender |
| Primary foreground | #5d198arebeccapurple | #5d198arebeccapurple |
| Secondary | #e8f9ddbeige | #e8f9ddbeige |
| Secondary foreground | #1a3409darkgreen | #1a3409darkgreen |
| Muted | #d8ded3gainsboro | #252c21darkslategray |
| Muted foreground | #41473edarkslategray | #bcc1b8silver |
| Accent | #e8f9ddbeige | #e8f9ddbeige |
| Accent foreground | #1a3409darkgreen | #1a3409darkgreen |
| Destructive | #790c0cmaroon | #eb3737crimson |
| Destructive foreground | #f9bebelightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #edddf9lavender | #edddf9lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 12.32:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 12.32:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 12.32:1 | AAA |
| Muted text | 7.87:1 | AAA |
| Accent | 12.32:1 | AAA |
| Destructive | 4.07: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 0 0);
--muted: oklch(0.893 0.016 132.494);
--muted-foreground: oklch(0.389 0.017 132.694);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.918 0.042 312.021);
--primary-foreground: oklch(0.387 0.173 306.95);
--secondary: oklch(0.961 0.041 132.687);
--secondary-foreground: oklch(0.293 0.073 135.349);
--accent: oklch(0.961 0.041 132.687);
--accent-foreground: oklch(0.293 0.073 135.349);
--destructive: oklch(0.368 0.141 27.82);
--destructive-foreground: oklch(0.854 0.068 18.567);
--ring: oklch(0.918 0.042 312.021);
--chart-1: oklch(0.918 0.042 312.021);
--chart-2: oklch(0.961 0.041 132.687);
--chart-3: oklch(0.961 0.041 132.687);
--chart-4: oklch(0.976 0.026 132.558);
--chart-5: oklch(0.917 0.044 312.006);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 312.342);
--muted: oklch(0.282 0.021 132.952);
--muted-foreground: oklch(0.805 0.014 132.492);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.918 0.042 312.021);
--primary-foreground: oklch(0.387 0.173 306.95);
--secondary: oklch(0.961 0.041 132.687);
--secondary-foreground: oklch(0.293 0.073 135.349);
--accent: oklch(0.961 0.041 132.687);
--accent-foreground: oklch(0.293 0.073 135.349);
--destructive: oklch(0.618 0.216 26.258);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.918 0.042 312.021);
--chart-1: oklch(0.918 0.042 312.021);
--chart-2: oklch(0.961 0.041 132.687);
--chart-3: oklch(0.961 0.041 132.687);
--chart-4: oklch(0.976 0.026 132.558);
--chart-5: oklch(0.917 0.044 312.006);
}