Splendid is a shadcn/ui theme built around a near-white primary color (#f3f2f2) with near-white accents (#f3f2f2). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f3f2f2) on a pink-tinted background (#0d070b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d070bblack |
| Foreground | #0d020ablack | #fbf8fasnow |
| Card | #ffffffwhite | #0d070bblack |
| Card foreground | #0d020ablack | #fbf8fasnow |
| Popover | #ffffffwhite | #0d070bblack |
| Popover foreground | #0d020ablack | #fbf8fasnow |
| Primary | #f3f2f2whitesmoke | #f3f2f2whitesmoke |
| Primary foreground | #5c575adimgray | #5c575adimgray |
| Secondary | #f3f2f3whitesmoke | #f3f2f3whitesmoke |
| Secondary foreground | #5b575cdimgray | #5b575cdimgray |
| Muted | #f1e7f3lavender | #160c18black |
| Muted foreground | #504e50darkslategray | #b0afb1darkgray |
| Accent | #f3f2f2whitesmoke | #f3f2f2whitesmoke |
| Accent foreground | #5c5757dimgray | #5c5757dimgray |
| Destructive | #bb320cfirebrick | #f15327tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3f2f2whitesmoke | #f3f2f2whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 6.32:1 | AA |
| Secondary button | 6.33:1 | AA |
| Muted text | 6.87:1 | AA |
| Accent | 6.34:1 | AA |
| Destructive | 5.88:1 | AA |
| Text on background | 18.89:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 6.32:1 | AA |
| Secondary button | 6.33:1 | AA |
| Muted text | 8.74:1 | AAA |
| Accent | 6.34:1 | AA |
| Destructive | 3.49: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.12 0.034 338.473);
--muted: oklch(0.94 0.019 320.562);
--muted-foreground: oklch(0.427 0.003 320.543);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.12 0.034 338.473);
--card: oklch(1 0 180);
--card-foreground: oklch(0.12 0.034 338.473);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.961 0.001 337.287);
--primary-foreground: oklch(0.462 0.009 337.65);
--secondary: oklch(0.961 0.001 320.533);
--secondary-foreground: oklch(0.461 0.01 320.566);
--accent: oklch(0.961 0.001 5.471);
--accent-foreground: oklch(0.461 0.007 5.846);
--destructive: oklch(0.525 0.179 34.568);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.961 0.001 337.287);
--chart-1: oklch(0.961 0.001 337.287);
--chart-2: oklch(0.961 0.001 320.533);
--chart-3: oklch(0.961 0.001 5.471);
--chart-4: oklch(0.985 0 320.532);
--chart-5: oklch(0.961 0.002 337.309);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.015 338.545);
--foreground: oklch(0.983 0.004 337.354);
--muted: oklch(0.174 0.028 320.738);
--muted-foreground: oklch(0.756 0.003 320.537);
--popover: oklch(0.141 0.015 338.545);
--popover-foreground: oklch(0.983 0.004 337.354);
--card: oklch(0.141 0.015 338.545);
--card-foreground: oklch(0.983 0.004 337.354);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.961 0.001 337.287);
--primary-foreground: oklch(0.462 0.009 337.65);
--secondary: oklch(0.961 0.001 320.533);
--secondary-foreground: oklch(0.461 0.01 320.566);
--accent: oklch(0.961 0.001 5.471);
--accent-foreground: oklch(0.461 0.007 5.846);
--destructive: oklch(0.653 0.202 35.629);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.961 0.001 337.287);
--chart-1: oklch(0.961 0.001 337.287);
--chart-2: oklch(0.961 0.001 320.533);
--chart-3: oklch(0.961 0.001 5.471);
--chart-4: oklch(0.985 0 320.532);
--chart-5: oklch(0.961 0.002 337.309);
}