Farmer is a shadcn/ui theme built around a pink primary color (#e24682) with blue accents (#4682e2). The light mode uses a neutral background (#fbf8fa). Dark mode keeps the pink primary (#e24682) on a pink-tinted background (#0b0507).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fasnow | #0b0507black |
| Foreground | #100409black | #faf5f7whitesmoke |
| Card | #fbf8fasnow | #0b0507black |
| Card foreground | #100409black | #faf5f7whitesmoke |
| Popover | #fbf8fasnow | #0b0507black |
| Popover foreground | #100409black | #faf5f7whitesmoke |
| Primary | #e24682palevioletred | #e24682palevioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #82e246yellowgreen | #82e246yellowgreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7eee2beige | #161d11black |
| Muted foreground | #5c6a53dimgray | #9eac95darkseagreen |
| Accent | #4682e2royalblue | #4682e2royalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8e0101darkred | #fe3434crimson |
| Destructive foreground | #ffc2c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e24682palevioletred | #e24682palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.13:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 3.87:1 | AA Large |
| Secondary button | 12.91:1 | AAA |
| Muted text | 4.87:1 | AA |
| Accent | 3.79:1 | AA Large |
| Destructive | 6.37:1 | AA |
| Text on background | 18.77:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 3.87:1 | AA Large |
| Secondary button | 12.91:1 | AAA |
| Muted text | 7.21:1 | AAA |
| Accent | 3.79:1 | AA Large |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Farmer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 351.7);
--foreground: oklch(0.134 0.028 353.209);
--muted: oklch(0.941 0.018 133.12);
--muted-foreground: oklch(0.505 0.039 133.545);
--popover: oklch(0.983 0.004 351.7);
--popover-foreground: oklch(0.134 0.028 353.209);
--card: oklch(0.983 0.004 351.7);
--card-foreground: oklch(0.134 0.028 353.209);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.631 0.198 1.245);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.823 0.21 135.873);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.613 0.159 259.499);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.407 0.166 29.168);
--destructive-foreground: oklch(0.869 0.07 18.588);
--ring: oklch(0.631 0.198 1.245);
--chart-1: oklch(0.631 0.198 1.245);
--chart-2: oklch(0.823 0.21 135.873);
--chart-3: oklch(0.613 0.159 259.499);
--chart-4: oklch(0.834 0.199 135.495);
--chart-5: oklch(0.633 0.204 1.71);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.015 351.373);
--foreground: oklch(0.974 0.006 351.776);
--muted: oklch(0.219 0.026 133.89);
--muted-foreground: oklch(0.727 0.036 133.332);
--popover: oklch(0.125 0.015 351.373);
--popover-foreground: oklch(0.974 0.006 351.776);
--card: oklch(0.125 0.015 351.373);
--card-foreground: oklch(0.974 0.006 351.776);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.631 0.198 1.245);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.823 0.21 135.873);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.613 0.159 259.499);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.648 0.235 26.884);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.631 0.198 1.245);
--chart-1: oklch(0.631 0.198 1.245);
--chart-2: oklch(0.823 0.21 135.873);
--chart-3: oklch(0.613 0.159 259.499);
--chart-4: oklch(0.834 0.199 135.495);
--chart-5: oklch(0.633 0.204 1.71);
}