Ratepayer is a shadcn/ui theme built around a deep green primary color (#464a21) with muted light green accents (#cfd1c2). The light mode uses a neutral background (#fefefb). Dark mode keeps the deep green primary (#464a21) on a green-tinted background (#0d0e07).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #0d0e07black |
| Foreground | #070802black | #fdfdfcwhite |
| Card | #fdfdf6snow | #101108black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fefefbwhite | #0d0e07black |
| Popover foreground | #070802black | #fdfdfcwhite |
| Primary | #464a21darkolivegreen | #464a21darkolivegreen |
| Primary foreground | #dee1bcwheat | #dee1bcwheat |
| Secondary | #e2e3degainsboro | #1a1b13black |
| Secondary foreground | #4c4d42darkslategray | #bbbda3darkgray |
| Muted | #f5f6efwhitesmoke | #0f1009black |
| Muted foreground | #424242darkslategray | #bdbdbdsilver |
| Accent | #cfd1c2lightgrey | #363823darkslategray |
| Accent foreground | #36372adarkslategray | #d1d4balightgrey |
| Destructive | #cf3d07firebrick | #f75318orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #464a21darkolivegreen | #464a21darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 6.64:1 | AA |
| Muted text | 9.21:1 | AAA |
| Accent | 7.80:1 | AAA |
| Destructive | 4.87:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 9.03:1 | AAA |
| Muted text | 10.16:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 3.38:1 | AA Large |
Paste this into your globals.css to use Ratepayer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.005 111.101);
--foreground: oklch(0.129 0.016 112.267);
--muted: oklch(0.97 0.009 111.183);
--muted-foreground: oklch(0.38 0 180);
--popover: oklch(0.996 0.005 111.101);
--popover-foreground: oklch(0.129 0.016 112.267);
--card: oklch(0.993 0.009 111.189);
--card-foreground: oklch(0.102 0.013 112.267);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.396 0.062 113.978);
--primary-foreground: oklch(0.898 0.05 112.047);
--secondary: oklch(0.914 0.007 111.149);
--secondary-foreground: oklch(0.416 0.018 111.838);
--accent: oklch(0.855 0.02 111.459);
--accent-foreground: oklch(0.332 0.023 112.29);
--destructive: oklch(0.57 0.19 36.328);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.396 0.062 113.978);
--chart-1: oklch(0.396 0.062 113.978);
--chart-2: oklch(0.914 0.007 111.149);
--chart-3: oklch(0.855 0.02 111.459);
--chart-4: oklch(0.935 0.005 111.112);
--chart-5: oklch(0.402 0.066 114.138);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.016 112.545);
--foreground: oklch(0.993 0.001 111.026);
--muted: oklch(0.17 0.013 112.441);
--muted-foreground: oklch(0.797 0 180);
--popover: oklch(0.159 0.016 112.545);
--popover-foreground: oklch(0.993 0.001 111.026);
--card: oklch(0.175 0.018 112.862);
--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.396 0.062 113.978);
--primary-foreground: oklch(0.898 0.05 112.047);
--secondary: oklch(0.218 0.015 112.258);
--secondary-foreground: oklch(0.79 0.037 111.881);
--accent: oklch(0.334 0.035 112.939);
--accent-foreground: oklch(0.86 0.035 111.766);
--destructive: oklch(0.661 0.209 37.429);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.396 0.062 113.978);
--chart-1: oklch(0.396 0.062 113.978);
--chart-2: oklch(0.218 0.015 112.258);
--chart-3: oklch(0.334 0.035 112.939);
--chart-4: oklch(0.255 0.019 112.372);
--chart-5: oklch(0.402 0.066 114.138);
}