Silly is a shadcn/ui theme built around a vivid indigo primary color (#6f78f1) with vivid violet accents (#a76ff1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#6f78f1) on an indigo-tinted background (#04040c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04040cblack |
| Foreground | #060713black | #fcfcfdwhite |
| Card | #ffffffwhite | #04040cblack |
| Card foreground | #060713black | #fcfcfdwhite |
| Popover | #ffffffwhite | #04040cblack |
| Popover foreground | #060713black | #fcfcfdwhite |
| Primary | #6f78f1mediumslateblue | #6f78f1mediumslateblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #6fb9f1skyblue | #6fb9f1skyblue |
| Secondary foreground | #04192ablack | #04192ablack |
| Muted | #d1dae0gainsboro | #1f272edarkslategray |
| Muted foreground | #4a4d4fdarkslategray | #b0b3b5darkgray |
| Accent | #a76ff1mediumpurple | #a76ff1mediumpurple |
| Accent foreground | #000000black | #000000black |
| Destructive | #e24603orangered | #fb5209orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f78f1mediumslateblue | #6f78f1mediumslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 5.62:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 6.19:1 | AA |
| Destructive | 4.10:1 | AA Large |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 5.62:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 7.16:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 3.32:1 | AA Large |
Paste this into your globals.css to use Silly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.135 0.028 278.115);
--muted: oklch(0.883 0.012 240.478);
--muted-foreground: oklch(0.418 0.005 240.44);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.135 0.028 278.115);
--card: oklch(1 0 180);
--card-foreground: oklch(0.135 0.028 278.115);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.625 0.179 276.837);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.759 0.11 242.986);
--secondary-foreground: oklch(0.208 0.043 243.922);
--accent: oklch(0.658 0.189 301.385);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.613 0.202 37.482);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.625 0.179 276.837);
--chart-1: oklch(0.625 0.179 276.837);
--chart-2: oklch(0.759 0.11 242.986);
--chart-3: oklch(0.658 0.189 301.385);
--chart-4: oklch(0.781 0.099 242.521);
--chart-5: oklch(0.622 0.185 276.511);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.021 277.956);
--foreground: oklch(0.992 0.001 283.095);
--muted: oklch(0.268 0.017 241.193);
--muted-foreground: oklch(0.765 0.004 240.357);
--popover: oklch(0.113 0.021 277.956);
--popover-foreground: oklch(0.992 0.001 283.095);
--card: oklch(0.113 0.021 277.956);
--card-foreground: oklch(0.992 0.001 283.095);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.625 0.179 276.837);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.759 0.11 242.986);
--secondary-foreground: oklch(0.208 0.043 243.922);
--accent: oklch(0.658 0.189 301.385);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.666 0.216 37.817);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.625 0.179 276.837);
--chart-1: oklch(0.625 0.179 276.837);
--chart-2: oklch(0.759 0.11 242.986);
--chart-3: oklch(0.658 0.189 301.385);
--chart-4: oklch(0.781 0.099 242.521);
--chart-5: oklch(0.622 0.185 276.511);
}