Foolish is a shadcn/ui theme built around a purple primary color (#cda2c9) with green accents (#a2cda6). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#cda2c9) on a purple-tinted background (#0c040b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c040bblack |
| Foreground | #080307black | #fbf8fbsnow |
| Card | #ffffffwhite | #0c040bblack |
| Card foreground | #080307black | #fbf8fbsnow |
| Popover | #ffffffwhite | #0c040bblack |
| Popover foreground | #080307black | #fbf8fbsnow |
| Primary | #cda2c9plum | #cda2c9plum |
| Primary foreground | #281526black | #281526black |
| Secondary | #a2cda6darkseagreen | #a2cda6darkseagreen |
| Secondary foreground | #152817black | #152817black |
| Muted | #d8e9dagainsboro | #162718black |
| Muted foreground | #424843darkslategray | #b7bdb8silver |
| Accent | #a2cda6darkseagreen | #a2cda6darkseagreen |
| Accent foreground | #152817black | #152817black |
| Destructive | #a20606darkred | #f72222crimson |
| Destructive foreground | #feddddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cda2c9plum | #cda2c9plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.45:1 | AAA |
| Text on card | 20.45:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 8.77:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 8.77:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 19.24:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 8.77:1 | AAA |
| Muted text | 8.21:1 | AAA |
| Accent | 8.77:1 | AAA |
| Destructive | 4.03: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.109 0.022 329.717);
--muted: oklch(0.917 0.027 148.266);
--muted-foreground: oklch(0.393 0.011 148.279);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.109 0.022 329.717);
--card: oklch(1 0 180);
--card-foreground: oklch(0.109 0.022 329.717);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.764 0.072 329.589);
--primary-foreground: oklch(0.23 0.041 330.418);
--secondary: oklch(0.807 0.07 147.57);
--secondary-foreground: oklch(0.254 0.039 146.677);
--accent: oklch(0.807 0.07 147.57);
--accent-foreground: oklch(0.254 0.039 146.677);
--destructive: oklch(0.45 0.182 28.84);
--destructive-foreground: oklch(0.924 0.037 17.839);
--ring: oklch(0.764 0.072 329.589);
--chart-1: oklch(0.764 0.072 329.589);
--chart-2: oklch(0.807 0.07 147.57);
--chart-3: oklch(0.807 0.07 147.57);
--chart-4: oklch(0.828 0.063 147.713);
--chart-5: oklch(0.763 0.079 329.685);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.027 330.011);
--foreground: oklch(0.983 0.005 328.649);
--muted: oklch(0.252 0.036 146.861);
--muted-foreground: oklch(0.792 0.009 148.463);
--popover: oklch(0.124 0.027 330.011);
--popover-foreground: oklch(0.983 0.005 328.649);
--card: oklch(0.124 0.027 330.011);
--card-foreground: oklch(0.983 0.005 328.649);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.764 0.072 329.589);
--primary-foreground: oklch(0.23 0.041 330.418);
--secondary: oklch(0.807 0.07 147.57);
--secondary-foreground: oklch(0.254 0.039 146.677);
--accent: oklch(0.807 0.07 147.57);
--accent-foreground: oklch(0.254 0.039 146.677);
--destructive: oklch(0.623 0.241 27.981);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.764 0.072 329.589);
--chart-1: oklch(0.764 0.072 329.589);
--chart-2: oklch(0.807 0.07 147.57);
--chart-3: oklch(0.807 0.07 147.57);
--chart-4: oklch(0.828 0.063 147.713);
--chart-5: oklch(0.763 0.079 329.685);
}