Farmer for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button3.87:1AA Large
Secondary button12.91:1AAA
Muted text4.87:1AA
Accent3.79:1AA Large
Destructive6.37:1AA
Dark mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button3.87:1AA Large
Secondary button12.91:1AAA
Muted text7.21:1AAA
Accent3.79:1AA Large
Destructive3.64:1AA Large

CSS variables

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);
}