Silly is a shadcn/ui theme built around a violet primary color (#ac65e2) with green accents (#9be265). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#ac65e2) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050307black |
| Foreground | #030104black | #fdfbfdsnow |
| Card | #ffffffwhite | #050307black |
| Card foreground | #030104black | #fdfbfdsnow |
| Popover | #ffffffwhite | #050307black |
| Popover foreground | #030104black | #fdfbfdsnow |
| Primary | #ac65e2mediumorchid | #ac65e2mediumorchid |
| Primary foreground | #000000black | #000000black |
| Secondary | #9be265lightgreen | #9be265lightgreen |
| Secondary foreground | #091103black | #091103black |
| Muted | #e2e9dcgainsboro | #1b2316black |
| Muted foreground | #42473edarkslategray | #bcc1b8silver |
| Accent | #9be265lightgreen | #9be265lightgreen |
| Accent foreground | #091103black | #091103black |
| Destructive | #961203darkred | #f01c05red |
| Destructive foreground | #fed2cdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ac65e2mediumorchid | #ac65e2mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 5.69:1 | AA |
| Secondary button | 12.27:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 12.27:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 5.69:1 | AA |
| Secondary button | 12.27:1 | AAA |
| Muted text | 8.86:1 | AAA |
| Accent | 12.27:1 | AAA |
| Destructive | 4.30: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.08 0.021 313.22);
--muted: oklch(0.926 0.019 131.264);
--muted-foreground: oklch(0.39 0.017 131.471);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.08 0.021 313.22);
--card: oklch(1 0 180);
--card-foreground: oklch(0.08 0.021 313.22);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.638 0.189 308.112);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.838 0.173 133.487);
--secondary-foreground: oklch(0.165 0.033 130.918);
--accent: oklch(0.838 0.173 133.487);
--accent-foreground: oklch(0.165 0.033 130.918);
--destructive: oklch(0.43 0.166 30.657);
--destructive-foreground: oklch(0.9 0.05 25.544);
--ring: oklch(0.638 0.189 308.112);
--chart-1: oklch(0.638 0.189 308.112);
--chart-2: oklch(0.838 0.173 133.487);
--chart-3: oklch(0.838 0.173 133.487);
--chart-4: oklch(0.851 0.161 133.178);
--chart-5: oklch(0.636 0.196 307.937);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.017 312.361);
--foreground: oklch(0.991 0.003 311.059);
--muted: oklch(0.242 0.026 132.103);
--muted-foreground: oklch(0.805 0.014 131.239);
--popover: oklch(0.106 0.017 312.361);
--popover-foreground: oklch(0.991 0.003 311.059);
--card: oklch(0.106 0.017 312.361);
--card-foreground: oklch(0.991 0.003 311.059);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.638 0.189 308.112);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.838 0.173 133.487);
--secondary-foreground: oklch(0.165 0.033 130.918);
--accent: oklch(0.838 0.173 133.487);
--accent-foreground: oklch(0.165 0.033 130.918);
--destructive: oklch(0.607 0.239 30.302);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.638 0.189 308.112);
--chart-1: oklch(0.638 0.189 308.112);
--chart-2: oklch(0.838 0.173 133.487);
--chart-3: oklch(0.838 0.173 133.487);
--chart-4: oklch(0.851 0.161 133.178);
--chart-5: oklch(0.636 0.196 307.937);
}