Farm is a shadcn/ui theme built around a muted yellow primary color (#b3b194) with muted indigo accents (#9495b3). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted yellow primary (#b3b194) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #070703black |
| Foreground | #121202black | #f9f9f6whitesmoke |
| Card | #fdfdfbsnow | #070703black |
| Card foreground | #121202black | #f9f9f6whitesmoke |
| Popover | #fdfdfbsnow | #070703black |
| Popover foreground | #121202black | #f9f9f6whitesmoke |
| Primary | #b3b194darkgray | #b3b194darkgray |
| Primary foreground | #0c0c08black | #0c0c08black |
| Secondary | #9495b3darkgray | #9495b3darkgray |
| Secondary foreground | #08090cblack | #08090cblack |
| Muted | #e7e8f3lavender | #0c0d18black |
| Muted foreground | #42424ddarkslategray | #b2b2bdsilver |
| Accent | #9495b3darkgray | #9495b3darkgray |
| Accent foreground | #08090cblack | #08090cblack |
| Destructive | #742207maroon | #f14a13orangered |
| Destructive foreground | #fbc4b2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b3b194darkgray | #b3b194darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.58:1 | AAA |
| Text on card | 18.58:1 | AAA |
| Primary button | 8.99:1 | AAA |
| Secondary button | 6.83:1 | AA |
| Muted text | 8.14:1 | AAA |
| Accent | 6.83:1 | AA |
| Destructive | 6.92:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 8.99:1 | AAA |
| Secondary button | 6.83:1 | AA |
| Muted text | 9.21:1 | AAA |
| Accent | 6.83:1 | AA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Farm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 104.017);
--foreground: oklch(0.176 0.032 106.898);
--muted: oklch(0.934 0.015 283.697);
--muted-foreground: oklch(0.384 0.018 283.108);
--popover: oklch(0.995 0.003 104.017);
--popover-foreground: oklch(0.176 0.032 106.898);
--card: oklch(0.995 0.003 104.017);
--card-foreground: oklch(0.176 0.032 106.898);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.755 0.041 104.855);
--primary-foreground: oklch(0.152 0.007 104.78);
--secondary: oklch(0.679 0.044 282.795);
--secondary-foreground: oklch(0.139 0.007 282.834);
--accent: oklch(0.679 0.044 282.795);
--accent-foreground: oklch(0.139 0.007 282.834);
--destructive: oklch(0.378 0.12 36.884);
--destructive-foreground: oklch(0.864 0.068 39.235);
--ring: oklch(0.755 0.041 104.855);
--chart-1: oklch(0.755 0.041 104.855);
--chart-2: oklch(0.679 0.044 282.795);
--chart-3: oklch(0.679 0.044 282.795);
--chart-4: oklch(0.707 0.039 282.955);
--chart-5: oklch(0.761 0.048 104.984);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.015 106.297);
--foreground: oklch(0.98 0.004 104.035);
--muted: oklch(0.163 0.023 281.225);
--muted-foreground: oklch(0.768 0.015 283.62);
--popover: oklch(0.128 0.015 106.297);
--popover-foreground: oklch(0.98 0.004 104.035);
--card: oklch(0.128 0.015 106.297);
--card-foreground: oklch(0.98 0.004 104.035);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.755 0.041 104.855);
--primary-foreground: oklch(0.152 0.007 104.78);
--secondary: oklch(0.679 0.044 282.795);
--secondary-foreground: oklch(0.139 0.007 282.834);
--accent: oklch(0.679 0.044 282.795);
--accent-foreground: oklch(0.139 0.007 282.834);
--destructive: oklch(0.643 0.211 36.18);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.755 0.041 104.855);
--chart-1: oklch(0.755 0.041 104.855);
--chart-2: oklch(0.679 0.044 282.795);
--chart-3: oklch(0.679 0.044 282.795);
--chart-4: oklch(0.707 0.039 282.955);
--chart-5: oklch(0.761 0.048 104.984);
}