Rural is a shadcn/ui theme built around a light green primary color (#a8ebbc) with light orange accents (#ebbca8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#a8ebbc) on a green-tinted background (#051008).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #051008black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #06140ablack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #051008black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #a8ebbcpalegreen | #a8ebbcpalegreen |
| Primary foreground | #124f24darkgreen | #124f24darkgreen |
| Secondary | #bca8eblightsteelblue | #bca8eblightsteelblue |
| Secondary foreground | #24124fmidnightblue | #24124fmidnightblue |
| Muted | #dbd6e5gainsboro | #1e1a29black |
| Muted foreground | #49484cdarkslategray | #b4b3b7silver |
| Accent | #ebbca8lightpink | #ebbca8lightpink |
| Accent foreground | #4f2412maroon | #4f2412maroon |
| Destructive | #812903saddlebrown | #ea4a06orangered |
| Destructive foreground | #fdceb9peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a8ebbcpalegreen | #a8ebbcpalegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 6.38:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 8.18:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Rural in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.885 0.021 299.634);
--muted-foreground: oklch(0.404 0.008 299.724);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.883 0.094 153.629);
--primary-foreground: oklch(0.378 0.094 149.195);
--secondary: oklch(0.772 0.097 297.863);
--secondary-foreground: oklch(0.251 0.105 290.57);
--accent: oklch(0.832 0.061 44.383);
--accent-foreground: oklch(0.317 0.071 42.776);
--destructive: oklch(0.412 0.129 39.127);
--destructive-foreground: oklch(0.887 0.061 44.419);
--ring: oklch(0.883 0.094 153.629);
--chart-1: oklch(0.883 0.094 153.629);
--chart-2: oklch(0.772 0.097 297.863);
--chart-3: oklch(0.832 0.061 44.383);
--chart-4: oklch(0.805 0.082 298.281);
--chart-5: oklch(0.886 0.098 153.522);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.024 154.353);
--foreground: oklch(1 0 180);
--muted: oklch(0.228 0.03 297.782);
--muted-foreground: oklch(0.769 0.006 299.898);
--popover: oklch(0.157 0.024 154.353);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.173 0.028 153.168);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.883 0.094 153.629);
--primary-foreground: oklch(0.378 0.094 149.195);
--secondary: oklch(0.772 0.097 297.863);
--secondary-foreground: oklch(0.251 0.105 290.57);
--accent: oklch(0.832 0.061 44.383);
--accent-foreground: oklch(0.317 0.071 42.776);
--destructive: oklch(0.63 0.205 37.678);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.883 0.094 153.629);
--chart-1: oklch(0.883 0.094 153.629);
--chart-2: oklch(0.772 0.097 297.863);
--chart-3: oklch(0.832 0.061 44.383);
--chart-4: oklch(0.805 0.082 298.281);
--chart-5: oklch(0.886 0.098 153.522);
}