Livestock is a shadcn/ui theme built around a neutral gray primary color (#cbcdcd) with neutral gray accents (#cdcdcb). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#cbcdcd) on a teal-tinted background (#060e0e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060e0eblack |
| Foreground | #020d0eblack | #f4fafamintcream |
| Card | #ffffffwhite | #060e0eblack |
| Card foreground | #020d0eblack | #f4fafamintcream |
| Popover | #ffffffwhite | #060e0eblack |
| Popover foreground | #020d0eblack | #f4fafamintcream |
| Primary | #cbcdcdlightgrey | #cbcdcdlightgrey |
| Primary foreground | #323434darkslategray | #323434darkslategray |
| Secondary | #cdcbcdlightgrey | #cdcbcdlightgrey |
| Secondary foreground | #343234darkslategray | #343234darkslategray |
| Muted | #efe6eflavender | #191019black |
| Muted foreground | #4f3b4edarkslategray | #c4b0c4silver |
| Accent | #cdcdcblightgrey | #cdcdcblightgrey |
| Accent foreground | #343432darkslategray | #343432darkslategray |
| Destructive | #980b01darkred | #fe1201red |
| Destructive foreground | #ffd0ccpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cbcdcdlightgrey | #cbcdcdlightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 8.34:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 18.47:1 | AAA |
| Text on card | 18.47:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 9.17:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Livestock in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.147 0.021 197.512);
--muted: oklch(0.935 0.015 326.679);
--muted-foreground: oklch(0.381 0.043 327.467);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.147 0.021 197.512);
--card: oklch(1 0 180);
--card-foreground: oklch(0.147 0.021 197.512);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.847 0.002 199.57);
--primary-foreground: oklch(0.323 0.003 199.49);
--secondary: oklch(0.844 0.003 326.577);
--secondary-foreground: oklch(0.32 0.004 326.661);
--accent: oklch(0.848 0.003 108);
--accent-foreground: oklch(0.324 0.004 108.14);
--destructive: oklch(0.431 0.171 30.156);
--destructive-foreground: oklch(0.896 0.054 22.978);
--ring: oklch(0.847 0.002 199.57);
--chart-1: oklch(0.847 0.002 199.57);
--chart-2: oklch(0.844 0.003 326.577);
--chart-3: oklch(0.848 0.003 108);
--chart-4: oklch(0.868 0.003 326.57);
--chart-5: oklch(0.849 0.005 199.519);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.013 198.467);
--foreground: oklch(0.981 0.006 199.521);
--muted: oklch(0.188 0.022 327.508);
--muted-foreground: oklch(0.78 0.036 326.934);
--popover: oklch(0.155 0.013 198.467);
--popover-foreground: oklch(0.981 0.006 199.521);
--card: oklch(0.155 0.013 198.467);
--card-foreground: oklch(0.981 0.006 199.521);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.847 0.002 199.57);
--primary-foreground: oklch(0.323 0.003 199.49);
--secondary: oklch(0.844 0.003 326.577);
--secondary-foreground: oklch(0.32 0.004 326.661);
--accent: oklch(0.848 0.003 108);
--accent-foreground: oklch(0.324 0.004 108.14);
--destructive: oklch(0.629 0.253 29.782);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.847 0.002 199.57);
--chart-1: oklch(0.847 0.002 199.57);
--chart-2: oklch(0.844 0.003 326.577);
--chart-3: oklch(0.848 0.003 108);
--chart-4: oklch(0.868 0.003 326.57);
--chart-5: oklch(0.849 0.005 199.519);
}