Agriculture for shadcn/ui

Agriculture is a shadcn/ui theme built around a purple primary color (#c972d5) with teal accents (#72d5c9). The light mode uses a neutral background (#fcf7fd). Dark mode keeps the purple primary (#c972d5) on a purple-tinted background (#0f0410).

Color palette

TokenLightDark
Background
#fcf7fdghostwhite
#0f0410black
Foreground
#070208black
#fbf9fbsnow
Card
#fbf3fcghostwhite
#120514black
Card foreground
#040104black
#fdfcfdwhite
Popover
#fbf3fcghostwhite
#120514black
Popover foreground
#040104black
#fdfcfdwhite
Primary
#c972d5orchid
#c972d5orchid
Primary foreground
#0e0510black
#0e0510black
Secondary
#d5c972burlywood
#d5c972burlywood
Secondary foreground
#100e05black
#100e05black
Muted
#e9e6d3antiquewhite
#2c2a16black
Muted foreground
#444341darkslategray
#bebebbsilver
Accent
#72d5c9mediumaquamarine
#72d5c9mediumaquamarine
Accent foreground
#05100eblack
#05100eblack
Destructive
#9f1309darkred
#e71c0dred
Destructive foreground
#fddfddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c972d5orchid
#c972d5orchid

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.09:1AAA
Primary button6.52:1AA
Secondary button11.44:1AAA
Muted text7.87:1AAA
Accent11.08:1AAA
Destructive6.51:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.35:1AAA
Primary button6.52:1AA
Secondary button11.44:1AAA
Muted text7.80:1AAA
Accent11.08:1AAA
Destructive4.58:1AA

CSS variables

Paste this into your globals.css to use Agriculture in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 322.145);
  --foreground: oklch(0.107 0.026 323.988);
  --muted: oklch(0.922 0.026 100.745);
  --muted-foreground: oklch(0.384 0.004 100.486);
  --popover: oklch(0.973 0.014 322.162);
  --popover-foreground: oklch(0.085 0.021 323.988);
  --card: oklch(0.973 0.014 322.162);
  --card-foreground: oklch(0.085 0.021 323.988);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.684 0.167 322.783);
  --primary-foreground: oklch(0.137 0.031 323.196);
  --secondary: oklch(0.827 0.11 101.815);
  --secondary-foreground: oklch(0.164 0.021 102.522);
  --accent: oklch(0.809 0.095 185.664);
  --accent-foreground: oklch(0.16 0.018 186.801);
  --destructive: oklch(0.449 0.173 29.721);
  --destructive-foreground: oklch(0.929 0.033 22.644);
  --ring: oklch(0.684 0.167 322.783);
  --chart-1: oklch(0.684 0.167 322.783);
  --chart-2: oklch(0.827 0.11 101.815);
  --chart-3: oklch(0.809 0.095 185.664);
  --chart-4: oklch(0.841 0.102 101.754);
  --chart-5: oklch(0.684 0.176 322.802);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.034 323.286);
  --foreground: oklch(0.983 0.004 322.128);
  --muted: oklch(0.28 0.033 101.72);
  --muted-foreground: oklch(0.8 0.003 100.393);
  --popover: oklch(0.149 0.039 323.061);
  --popover-foreground: oklch(0.992 0.002 322.12);
  --card: oklch(0.149 0.039 323.061);
  --card-foreground: oklch(0.992 0.002 322.12);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.684 0.167 322.783);
  --primary-foreground: oklch(0.137 0.031 323.196);
  --secondary: oklch(0.827 0.11 101.815);
  --secondary-foreground: oklch(0.164 0.021 102.522);
  --accent: oklch(0.809 0.095 185.664);
  --accent-foreground: oklch(0.16 0.018 186.801);
  --destructive: oklch(0.591 0.232 29.755);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.684 0.167 322.783);
  --chart-1: oklch(0.684 0.167 322.783);
  --chart-2: oklch(0.827 0.11 101.815);
  --chart-3: oklch(0.809 0.095 185.664);
  --chart-4: oklch(0.841 0.102 101.754);
  --chart-5: oklch(0.684 0.176 322.802);
}