Foolish is a shadcn/ui theme built around a violet primary color (#9d65c3) with teal accents (#65c39d). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#9d65c3) on a neutral background (#050407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050407black |
| Foreground | #08040cblack | #f8f5fawhitesmoke |
| Card | #fcfcfcsnow | #08050ablack |
| Card foreground | #060208black | #faf8fcghostwhite |
| Popover | #ffffffwhite | #050407black |
| Popover foreground | #08040cblack | #f8f5fawhitesmoke |
| Primary | #9d65c3mediumpurple | #9d65c3mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #c39d65darkkhaki | #c39d65darkkhaki |
| Secondary foreground | #000000black | #000000black |
| Muted | #e9e2d8gainsboro | #272016black |
| Muted foreground | #666666dimgray | #999999darkgray |
| Accent | #65c39dmediumaquamarine | #65c39dmediumaquamarine |
| Accent foreground | #000000black | #000000black |
| Destructive | #891906darkred | #f63e1eorangered |
| Destructive foreground | #fdcdc4pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9d65c3mediumpurple | #9d65c3mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.32:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 5.08:1 | AA |
| Secondary button | 8.35:1 | AAA |
| Muted text | 4.46:1 | AA Large |
| Accent | 9.84:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 18.95:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 5.08:1 | AA |
| Secondary button | 8.35:1 | AAA |
| Muted text | 5.63:1 | AA |
| Accent | 9.84:1 | AAA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Foolish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.119 0.025 313.888);
--muted: oklch(0.916 0.016 78.25);
--muted-foreground: oklch(0.51 0 171.87);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.119 0.025 313.888);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.104 0.022 314.129);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.605 0.149 310.348);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.719 0.086 76.826);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.749 0.106 165.431);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.41 0.149 32.081);
--destructive-foreground: oklch(0.887 0.056 29.824);
--ring: oklch(0.605 0.149 310.348);
--chart-1: oklch(0.605 0.149 310.348);
--chart-2: oklch(0.719 0.086 76.826);
--chart-3: oklch(0.749 0.106 165.431);
--chart-4: oklch(0.739 0.081 77.127);
--chart-5: oklch(0.603 0.158 310.173);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.012 313.278);
--foreground: oklch(0.973 0.008 312.296);
--muted: oklch(0.249 0.021 77.617);
--muted-foreground: oklch(0.683 0 180);
--popover: oklch(0.109 0.012 313.278);
--popover-foreground: oklch(0.973 0.008 312.296);
--card: oklch(0.125 0.013 313.278);
--card-foreground: oklch(0.982 0.005 312.317);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.605 0.149 310.348);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.719 0.086 76.826);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.749 0.106 165.431);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.639 0.224 32.223);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.605 0.149 310.348);
--chart-1: oklch(0.605 0.149 310.348);
--chart-2: oklch(0.719 0.086 76.826);
--chart-3: oklch(0.749 0.106 165.431);
--chart-4: oklch(0.739 0.081 77.127);
--chart-5: oklch(0.603 0.158 310.173);
}