Colorful is a shadcn/ui theme built around a muted light violet primary color (#d5d0dd) with muted light purple accents (#dbd0dd). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted light violet primary (#d5d0dd) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #000000black |
| Foreground | #000000black | #faf9fbghostwhite |
| Card | #fcfbfewhite | #000000black |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #fcfbfewhite | #000000black |
| Popover foreground | #000000black | #faf9fbghostwhite |
| Primary | #d5d0ddlightgrey | #d5d0ddlightgrey |
| Primary foreground | #3b3347darkslategray | #3b3347darkslategray |
| Secondary | #d0d1ddlightgrey | #d0d1ddlightgrey |
| Secondary foreground | #333647darkslategray | #333647darkslategray |
| Muted | #dfe1f1lavender | #0e1020black |
| Muted foreground | #5d5e65dimgray | #9a9ba2darkgray |
| Accent | #dbd0ddgainsboro | #dbd0ddgainsboro |
| Accent foreground | #453347darkslategray | #453347darkslategray |
| Destructive | #8d3407saddlebrown | #f57332tomato |
| Destructive foreground | #fcdac9bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d5d0ddlightgrey | #d5d0ddlightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 4.97:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 6.10:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 6.80:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 7.41:1 | AAA |
Paste this into your globals.css to use Colorful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 303.569);
--foreground: oklch(0 0 0);
--muted: oklch(0.913 0.022 279.952);
--muted-foreground: oklch(0.483 0.011 279.968);
--popover: oklch(0.989 0.005 303.569);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.005 303.569);
--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.864 0.019 303.321);
--primary-foreground: oklch(0.339 0.035 302.088);
--secondary: oklch(0.864 0.016 280.037);
--secondary-foreground: oklch(0.337 0.031 278.753);
--accent: oklch(0.87 0.022 322.197);
--accent-foreground: oklch(0.35 0.041 322.483);
--destructive: oklch(0.447 0.132 41.448);
--destructive-foreground: oklch(0.914 0.044 48.212);
--ring: oklch(0.864 0.019 303.321);
--chart-1: oklch(0.864 0.019 303.321);
--chart-2: oklch(0.864 0.016 280.037);
--chart-3: oklch(0.87 0.022 322.197);
--chart-4: oklch(0.89 0.013 280.102);
--chart-5: oklch(0.862 0.022 303.26);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 303.591);
--muted: oklch(0.18 0.033 276.884);
--muted-foreground: oklch(0.691 0.01 280.102);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.003 303.591);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.003 303.591);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.864 0.019 303.321);
--primary-foreground: oklch(0.339 0.035 302.088);
--secondary: oklch(0.864 0.016 280.037);
--secondary-foreground: oklch(0.337 0.031 278.753);
--accent: oklch(0.87 0.022 322.197);
--accent-foreground: oklch(0.35 0.041 322.483);
--destructive: oklch(0.702 0.177 44.216);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.864 0.019 303.321);
--chart-1: oklch(0.864 0.019 303.321);
--chart-2: oklch(0.864 0.016 280.037);
--chart-3: oklch(0.87 0.022 322.197);
--chart-4: oklch(0.89 0.013 280.102);
--chart-5: oklch(0.862 0.022 303.26);
}