Silly is a shadcn/ui theme built around a neutral gray primary color (#3f3b3f) with neutral gray accents (#3b3f3f). The light mode uses a neutral background (#fefbfe). Dark mode keeps the neutral gray primary (#3f3b3f) on a purple-tinted background (#0f050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0f050fblack |
| Foreground | #0f050fblack | #fbf8fbsnow |
| Card | #fefbfewhite | #0f050fblack |
| Card foreground | #0f050fblack | #fbf8fbsnow |
| Popover | #fefbfewhite | #0f050fblack |
| Popover foreground | #0f050fblack | #fbf8fbsnow |
| Primary | #3f3b3fdarkslategray | #3f3b3fdarkslategray |
| Primary foreground | #d7d5d7lightgrey | #d7d5d7lightgrey |
| Secondary | #3f3f3bdarkslategray | #3f3f3bdarkslategray |
| Secondary foreground | #d7d7d5lightgrey | #d7d7d5lightgrey |
| Muted | #e9ead7antiquewhite | #272815black |
| Muted foreground | #636459dimgray | #a6a69bdarkgray |
| Accent | #3b3f3fdarkslategray | #3b3f3fdarkslategray |
| Accent foreground | #d5d7d7lightgrey | #d5d7d7lightgrey |
| Destructive | #bc2d10firebrick | #ed5435tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3f3b3fdarkslategray | #3f3b3fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 4.91:1 | AA |
| Accent | 7.38:1 | AAA |
| Destructive | 5.98:1 | AA |
| Text on background | 18.96:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 7.38:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Silly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 327.085);
--foreground: oklch(0.139 0.029 328.637);
--muted: oklch(0.931 0.025 109.205);
--muted-foreground: oklch(0.499 0.018 109.349);
--popover: oklch(0.991 0.005 327.085);
--popover-foreground: oklch(0.139 0.029 328.637);
--card: oklch(0.991 0.005 327.085);
--card-foreground: oklch(0.139 0.029 328.637);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.359 0.008 327.236);
--primary-foreground: oklch(0.876 0.004 327.082);
--secondary: oklch(0.366 0.006 109.02);
--secondary-foreground: oklch(0.88 0.003 108.779);
--accent: oklch(0.364 0.005 200.733);
--accent-foreground: oklch(0.878 0.003 200.854);
--destructive: oklch(0.522 0.183 32.74);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.359 0.008 327.236);
--chart-1: oklch(0.359 0.008 327.236);
--chart-2: oklch(0.366 0.006 109.02);
--chart-3: oklch(0.364 0.005 200.733);
--chart-4: oklch(0.396 0.007 109.026);
--chart-5: oklch(0.357 0.015 327.431);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.028 328.575);
--foreground: oklch(0.983 0.005 327.087);
--muted: oklch(0.271 0.032 110.83);
--muted-foreground: oklch(0.722 0.016 109.117);
--popover: oklch(0.139 0.028 328.575);
--popover-foreground: oklch(0.983 0.005 327.087);
--card: oklch(0.139 0.028 328.575);
--card-foreground: oklch(0.983 0.005 327.087);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.359 0.008 327.236);
--primary-foreground: oklch(0.876 0.004 327.082);
--secondary: oklch(0.366 0.006 109.02);
--secondary-foreground: oklch(0.88 0.003 108.779);
--accent: oklch(0.364 0.005 200.733);
--accent-foreground: oklch(0.878 0.003 200.854);
--destructive: oklch(0.649 0.195 33.212);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.359 0.008 327.236);
--chart-1: oklch(0.359 0.008 327.236);
--chart-2: oklch(0.366 0.006 109.02);
--chart-3: oklch(0.364 0.005 200.733);
--chart-4: oklch(0.396 0.007 109.026);
--chart-5: oklch(0.357 0.015 327.431);
}