Weird is a shadcn/ui theme built around a green primary color (#49c562) with red accents (#c56249). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the green primary (#49c562) on a green-tinted background (#060e08).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #060e08black |
| Foreground | #010402black | #f5faf6whitesmoke |
| Card | #f4faf6whitesmoke | #08120ablack |
| Card foreground | #000000black | #f8fcf9mintcream |
| Popover | #f8fcf9mintcream | #060e08black |
| Popover foreground | #010402black | #f5faf6whitesmoke |
| Primary | #49c562mediumseagreen | #49c562mediumseagreen |
| Primary foreground | #103217black | #103217black |
| Secondary | #6249c5slateblue | #6249c5slateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f0eff6whitesmoke | #0b0910black |
| Muted foreground | #5f5b6bdimgray | #9794a4darkgray |
| Accent | #c56249indianred | #c56249indianred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c51d11firebrick | #eb2b1ecrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #49c562mediumseagreen | #49c562mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 6.41:1 | AA |
| Muted text | 5.73:1 | AA |
| Accent | 4.02:1 | AA Large |
| Destructive | 5.89:1 | AA |
| Text on background | 18.50:1 | AAA |
| Text on card | 18.46:1 | AAA |
| Primary button | 6.36:1 | AA |
| Secondary button | 6.41:1 | AA |
| Muted text | 6.68:1 | AA |
| Accent | 4.02:1 | AA Large |
| Destructive | 4.27:1 | AA Large |
Paste this into your globals.css to use Weird in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 151.918);
--foreground: oklch(0.098 0.019 150.979);
--muted: oklch(0.954 0.01 295.386);
--muted-foreground: oklch(0.482 0.026 294.592);
--popover: oklch(0.987 0.006 151.918);
--popover-foreground: oklch(0.098 0.019 150.979);
--card: oklch(0.98 0.009 151.873);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.733 0.178 147.243);
--primary-foreground: oklch(0.285 0.064 147.777);
--secondary: oklch(0.502 0.185 286.925);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.61 0.133 35.151);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.528 0.202 29.677);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.733 0.178 147.243);
--chart-1: oklch(0.733 0.178 147.243);
--chart-2: oklch(0.502 0.185 286.925);
--chart-3: oklch(0.61 0.133 35.151);
--chart-4: oklch(0.533 0.174 288.258);
--chart-5: oklch(0.741 0.186 147.007);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.019 150.937);
--foreground: oklch(0.98 0.008 151.877);
--muted: oklch(0.146 0.016 293.615);
--muted-foreground: oklch(0.673 0.023 294.934);
--popover: oklch(0.153 0.019 150.937);
--popover-foreground: oklch(0.98 0.008 151.877);
--card: oklch(0.168 0.022 150.186);
--card-foreground: oklch(0.987 0.006 151.92);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.733 0.178 147.243);
--primary-foreground: oklch(0.285 0.064 147.777);
--secondary: oklch(0.502 0.185 286.925);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.61 0.133 35.151);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.608 0.226 29.54);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.733 0.178 147.243);
--chart-1: oklch(0.733 0.178 147.243);
--chart-2: oklch(0.502 0.185 286.925);
--chart-3: oklch(0.61 0.133 35.151);
--chart-4: oklch(0.533 0.174 288.258);
--chart-5: oklch(0.741 0.186 147.007);
}