Weird is a shadcn/ui theme built around a deep green primary color (#0b411f) with deep orange accents (#411f0b). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the deep green primary (#0b411f) on a neutral background (#020402).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #020402black |
| Foreground | #020804black | #fcfdfcwhite |
| Card | #f5faf7whitesmoke | #030705black |
| Card foreground | #010402black | #ffffffwhite |
| Popover | #f5faf7whitesmoke | #030705black |
| Popover foreground | #010402black | #ffffffwhite |
| Primary | #0b411fdarkgreen | #0b411fdarkgreen |
| Primary foreground | #3cdd77mediumseagreen | #3cdd77mediumseagreen |
| Secondary | #1f0b41midnightblue | #1f0b41midnightblue |
| Secondary foreground | #b393ecplum | #b393ecplum |
| Muted | #e4deedlavender | #181221black |
| Muted foreground | #524b5ddarkslategray | #a8a2b4darkgray |
| Accent | #411f0bmaroon | #411f0bmaroon |
| Accent foreground | #ecb393burlywood | #ecb393burlywood |
| Destructive | #ba0b08firebrick | #f51d19red |
| Destructive foreground | #fff5f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0b411fdarkgreen | #0b411fdarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 6.32:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.25:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 6.58:1 | AA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 4.13: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.005 158.608);
--foreground: oklch(0.124 0.021 158.453);
--muted: oklch(0.91 0.021 302.582);
--muted-foreground: oklch(0.426 0.031 301.802);
--popover: oklch(0.98 0.008 158.551);
--popover-foreground: oklch(0.099 0.016 158.453);
--card: oklch(0.98 0.008 158.551);
--card-foreground: oklch(0.099 0.016 158.453);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.332 0.08 151.02);
--primary-foreground: oklch(0.792 0.193 150.907);
--secondary: oklch(0.221 0.094 293.987);
--secondary-foreground: oklch(0.726 0.13 300.058);
--accent: oklch(0.283 0.061 48.473);
--accent-foreground: oklch(0.812 0.08 51.314);
--destructive: oklch(0.499 0.2 29.037);
--destructive-foreground: oklch(0.978 0.01 18.518);
--ring: oklch(0.332 0.08 151.02);
--chart-1: oklch(0.332 0.08 151.02);
--chart-2: oklch(0.221 0.094 293.987);
--chart-3: oklch(0.283 0.061 48.473);
--chart-4: oklch(0.245 0.109 293.359);
--chart-5: oklch(0.335 0.083 150.73);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.01 158.553);
--foreground: oklch(0.993 0.001 158.69);
--muted: oklch(0.197 0.03 300.522);
--muted-foreground: oklch(0.723 0.027 302.349);
--popover: oklch(0.121 0.013 158.553);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.013 158.553);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.332 0.08 151.02);
--primary-foreground: oklch(0.792 0.193 150.907);
--secondary: oklch(0.221 0.094 293.987);
--secondary-foreground: oklch(0.726 0.13 300.058);
--accent: oklch(0.283 0.061 48.473);
--accent-foreground: oklch(0.812 0.08 51.314);
--destructive: oklch(0.618 0.242 28.679);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.332 0.08 151.02);
--chart-1: oklch(0.332 0.08 151.02);
--chart-2: oklch(0.221 0.094 293.987);
--chart-3: oklch(0.283 0.061 48.473);
--chart-4: oklch(0.245 0.109 293.359);
--chart-5: oklch(0.335 0.083 150.73);
}