Pasture is a shadcn/ui theme built around a blue primary color (#3f78a6) with green accents (#78a63f). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#3f78a6) on a blue-tinted background (#050b10).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fafcghostwhite | #050b10black |
| Foreground | #020508black | #f8fafcghostwhite |
| Card | #f8fafcghostwhite | #050b10black |
| Card foreground | #020508black | #f8fafcghostwhite |
| Popover | #f8fafcghostwhite | #050b10black |
| Popover foreground | #020508black | #f8fafcghostwhite |
| Primary | #3f78a6steelblue | #3f78a6steelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #a63f78mediumvioletred | #a63f78mediumvioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1eef0whitesmoke | #110e0fblack |
| Muted foreground | #62555cdimgray | #aa9da4darkgray |
| Accent | #78a63folivedrab | #78a63folivedrab |
| Accent foreground | #0d1207black | #0d1207black |
| Destructive | #a30f0adarkred | #dd150ered |
| Destructive foreground | #fde3e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3f78a6steelblue | #3f78a6steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 4.72:1 | AA |
| Secondary button | 5.81:1 | AA |
| Muted text | 6.14:1 | AA |
| Accent | 6.64:1 | AA |
| Destructive | 6.55:1 | AA |
| Text on background | 18.93:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 4.72:1 | AA |
| Secondary button | 5.81:1 | AA |
| Muted text | 7.37:1 | AAA |
| Accent | 6.64:1 | AA |
| Destructive | 5.03:1 | AA |
Paste this into your globals.css to use Pasture in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.003 242.236);
--foreground: oklch(0.114 0.012 234.912);
--muted: oklch(0.953 0.003 342.7);
--muted-foreground: oklch(0.466 0.02 343.64);
--popover: oklch(0.984 0.003 242.236);
--popover-foreground: oklch(0.114 0.012 234.912);
--card: oklch(0.984 0.003 242.236);
--card-foreground: oklch(0.114 0.012 234.912);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.554 0.094 245.349);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.527 0.149 349.346);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.671 0.143 129.992);
--accent-foreground: oklch(0.175 0.024 127.971);
--destructive: oklch(0.455 0.178 29.063);
--destructive-foreground: oklch(0.937 0.029 20.051);
--ring: oklch(0.554 0.094 245.349);
--chart-1: oklch(0.554 0.094 245.349);
--chart-2: oklch(0.527 0.149 349.346);
--chart-3: oklch(0.671 0.143 129.992);
--chart-4: oklch(0.552 0.157 349.393);
--chart-5: oklch(0.556 0.1 245.657);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.016 239.182);
--foreground: oklch(0.984 0.003 242.233);
--muted: oklch(0.168 0.005 343.321);
--muted-foreground: oklch(0.708 0.018 343.229);
--popover: oklch(0.144 0.016 239.182);
--popover-foreground: oklch(0.984 0.003 242.233);
--card: oklch(0.144 0.016 239.182);
--card-foreground: oklch(0.984 0.003 242.233);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.554 0.094 245.349);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.527 0.149 349.346);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.671 0.143 129.992);
--accent-foreground: oklch(0.175 0.024 127.971);
--destructive: oklch(0.568 0.225 29.177);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.554 0.094 245.349);
--chart-1: oklch(0.554 0.094 245.349);
--chart-2: oklch(0.527 0.149 349.346);
--chart-3: oklch(0.671 0.143 129.992);
--chart-4: oklch(0.552 0.157 349.393);
--chart-5: oklch(0.556 0.1 245.657);
}