Weird is a shadcn/ui theme built around a vivid deep green primary color (#253102) with muted light green accents (#d9deca). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid deep green primary (#253102) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #030401black |
| Foreground | #0b0d02black | #ffffffwhite |
| Card | #fdfdfcwhite | #030401black |
| Card foreground | #0b0d02black | #ffffffwhite |
| Popover | #fdfdfcwhite | #030401black |
| Popover foreground | #0b0d02black | #ffffffwhite |
| Primary | #253102black | #253102black |
| Primary foreground | #baf40bgreenyellow | #baf40bgreenyellow |
| Secondary | #eceee7linen | #181a14black |
| Secondary foreground | #21231ablack | #b5baa6darkgray |
| Muted | #f3f6ealinen | #121509black |
| Muted foreground | #545454dimgray | #abababdarkgray |
| Accent | #d9decalightgrey | #2c3021darkslategray |
| Accent foreground | #41482ddarkslategray | #c7cdb7silver |
| Destructive | #7a0e00maroon | #ff3419orangered |
| Destructive foreground | #ffb7adlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #253102black | #253102black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 10.58:1 | AAA |
| Secondary button | 13.59:1 | AAA |
| Muted text | 6.89:1 | AA |
| Accent | 6.94:1 | AA |
| Destructive | 6.65:1 | AA |
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 10.58:1 | AAA |
| Secondary button | 8.80:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 8.25:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Weird in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 117.861);
--foreground: oklch(0.153 0.029 118.841);
--muted: oklch(0.966 0.016 118.112);
--muted-foreground: oklch(0.446 0 180);
--popover: oklch(0.994 0.002 117.861);
--popover-foreground: oklch(0.153 0.029 118.841);
--card: oklch(0.994 0.002 117.861);
--card-foreground: oklch(0.153 0.029 118.841);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.291 0.069 123.158);
--primary-foreground: oklch(0.893 0.224 125.251);
--secondary: oklch(0.946 0.009 117.99);
--secondary-foreground: oklch(0.252 0.018 119.113);
--accent: oklch(0.89 0.027 118.369);
--accent-foreground: oklch(0.388 0.044 119.9);
--destructive: oklch(0.372 0.143 31.564);
--destructive-foreground: oklch(0.844 0.086 27.442);
--ring: oklch(0.291 0.069 123.158);
--chart-1: oklch(0.291 0.069 123.158);
--chart-2: oklch(0.946 0.009 117.99);
--chart-3: oklch(0.89 0.027 118.369);
--chart-4: oklch(0.966 0.005 117.926);
--chart-5: oklch(0.293 0.07 123.269);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.014 118.015);
--foreground: oklch(1 0 180);
--muted: oklch(0.189 0.023 120.02);
--muted-foreground: oklch(0.741 0 171.254);
--popover: oklch(0.102 0.014 118.015);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.102 0.014 118.015);
--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.291 0.069 123.158);
--primary-foreground: oklch(0.893 0.224 125.251);
--secondary: oklch(0.214 0.012 118.792);
--secondary-foreground: oklch(0.78 0.029 118.486);
--accent: oklch(0.301 0.026 119.372);
--accent-foreground: oklch(0.837 0.031 118.473);
--destructive: oklch(0.648 0.239 30.999);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.291 0.069 123.158);
--chart-1: oklch(0.291 0.069 123.158);
--chart-2: oklch(0.214 0.012 118.792);
--chart-3: oklch(0.301 0.026 119.372);
--chart-4: oklch(0.249 0.015 118.886);
--chart-5: oklch(0.293 0.07 123.269);
}