Wildlife is a shadcn/ui theme built around a violet primary color (#4e279b) with muted light violet accents (#d7d3df). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#4e279b) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040307black |
| Foreground | #080311black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #07040bblack |
| Card foreground | #06020dblack | #ffffffwhite |
| Popover | #ffffffwhite | #040307black |
| Popover foreground | #080311black | #fcfcfdwhite |
| Primary | #4e279brebeccapurple | #4e279brebeccapurple |
| Primary foreground | #f9f7fdghostwhite | #f9f7fdghostwhite |
| Secondary | #e5e4e7gainsboro | #262528darkslategray |
| Secondary foreground | #4b4752darkslategray | #bebdc2silver |
| Muted | #d4cce6thistle | #221933midnightblue |
| Muted foreground | #4c4c4ddarkslategray | #b2b2b3darkgray |
| Accent | #d7d3dfgainsboro | #36323edarkslategray |
| Accent foreground | #3c364adarkslategray | #cfccd6lightgrey |
| Destructive | #602206maroon | #f1560eorangered |
| Destructive foreground | #f9bb9flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4e279brebeccapurple | #4e279brebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 9.49:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.54:1 | AA |
| Accent | 7.82:1 | AAA |
| Destructive | 7.27:1 | AAA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 9.49:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 7.88:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Wildlife in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.121 0.036 300.345);
--muted: oklch(0.859 0.037 300.804);
--muted-foreground: oklch(0.417 0.003 301.393);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.121 0.036 300.345);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.109 0.032 301.805);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.398 0.175 291.598);
--primary-foreground: oklch(0.979 0.008 301.355);
--secondary: oklch(0.92 0.005 301.406);
--secondary-foreground: oklch(0.406 0.018 300.768);
--accent: oklch(0.873 0.017 301.175);
--accent-foreground: oklch(0.347 0.036 299.792);
--destructive: oklch(0.343 0.098 41.644);
--destructive-foreground: oklch(0.843 0.082 45.963);
--ring: oklch(0.398 0.175 291.598);
--chart-1: oklch(0.398 0.175 291.598);
--chart-2: oklch(0.92 0.005 301.406);
--chart-3: oklch(0.873 0.017 301.175);
--chart-4: oklch(0.944 0.003 301.434);
--chart-5: oklch(0.396 0.182 290.849);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.016 301.876);
--foreground: oklch(0.991 0.002 301.462);
--muted: oklch(0.239 0.05 297.909);
--muted-foreground: oklch(0.764 0.002 301.446);
--popover: oklch(0.104 0.016 301.876);
--popover-foreground: oklch(0.991 0.002 301.462);
--card: oklch(0.119 0.018 301.822);
--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.398 0.175 291.598);
--primary-foreground: oklch(0.979 0.008 301.355);
--secondary: oklch(0.266 0.006 301.142);
--secondary-foreground: oklch(0.8 0.007 301.346);
--accent: oklch(0.326 0.022 300.391);
--accent-foreground: oklch(0.851 0.014 301.223);
--destructive: oklch(0.655 0.203 39.558);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.398 0.175 291.598);
--chart-1: oklch(0.398 0.175 291.598);
--chart-2: oklch(0.266 0.006 301.142);
--chart-3: oklch(0.326 0.022 300.391);
--chart-4: oklch(0.296 0.007 301.125);
--chart-5: oklch(0.396 0.182 290.849);
}