Splendid is a shadcn/ui theme built around a deep red primary color (#561310) with deep teal accents (#105356). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#561310) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fcf8f7snow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #561310maroon | #561310maroon |
| Primary foreground | #efaca9lightpink | #efaca9lightpink |
| Secondary | #105356darkslategray | #105356darkslategray |
| Secondary foreground | #a9ecefpaleturquoise | #a9ecefpaleturquoise |
| Muted | #cee2e3gainsboro | #1c3031darkslategray |
| Muted foreground | #525656dimgray | #a9acaddarkgray |
| Accent | #105356darkslategray | #105356darkslategray |
| Accent foreground | #a9ecefpaleturquoise | #a9ecefpaleturquoise |
| Destructive | #e04b06orangered | #e54c06orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #561310maroon | #561310maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 6.68:1 | AA |
| Muted text | 5.53:1 | AA |
| Accent | 6.68:1 | AA |
| Destructive | 4.06:1 | AA Large |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 6.68:1 | AA |
| Muted text | 6.09:1 | AA |
| Accent | 6.68:1 | AA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Splendid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 20.922);
--foreground: oklch(0.081 0.019 27.831);
--muted: oklch(0.899 0.021 200.616);
--muted-foreground: oklch(0.449 0.004 200.778);
--popover: oklch(0.991 0.003 20.922);
--popover-foreground: oklch(0.081 0.019 27.831);
--card: oklch(0.982 0.005 20.955);
--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.304 0.099 27.657);
--primary-foreground: oklch(0.807 0.079 22.36);
--secondary: oklch(0.404 0.063 200.349);
--secondary-foreground: oklch(0.899 0.067 200.148);
--accent: oklch(0.404 0.063 200.349);
--accent-foreground: oklch(0.899 0.067 200.148);
--destructive: oklch(0.614 0.196 38.745);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.304 0.099 27.657);
--chart-1: oklch(0.304 0.099 27.657);
--chart-2: oklch(0.404 0.063 200.349);
--chart-3: oklch(0.404 0.063 200.349);
--chart-4: oklch(0.444 0.07 200.392);
--chart-5: oklch(0.305 0.102 27.937);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 20.896);
--muted: oklch(0.291 0.025 200.068);
--muted-foreground: oklch(0.743 0.004 200.829);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 20.896);
--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.304 0.099 27.657);
--primary-foreground: oklch(0.807 0.079 22.36);
--secondary: oklch(0.404 0.063 200.349);
--secondary-foreground: oklch(0.899 0.067 200.148);
--accent: oklch(0.404 0.063 200.349);
--accent-foreground: oklch(0.899 0.067 200.148);
--destructive: oklch(0.624 0.199 38.702);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.304 0.099 27.657);
--chart-1: oklch(0.304 0.099 27.657);
--chart-2: oklch(0.404 0.063 200.349);
--chart-3: oklch(0.404 0.063 200.349);
--chart-4: oklch(0.444 0.07 200.392);
--chart-5: oklch(0.305 0.102 27.937);
}