Petitioner is a shadcn/ui theme built around a light green primary color (#ecf8ef) with light purple accents (#f8ecf6). The light mode uses a neutral background (#fbfefc). Dark mode keeps the light green primary (#ecf8ef) on a neutral background (#030804).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #030804black |
| Foreground | #040c05black | #f6f9f6whitesmoke |
| Card | #f7fcf8mintcream | #040b05black |
| Card foreground | #020804black | #f9fbf9mintcream |
| Popover | #fbfefcwhite | #030804black |
| Popover foreground | #040c05black | #f6f9f6whitesmoke |
| Primary | #ecf8efhoneydew | #ecf8efhoneydew |
| Primary foreground | #14381bdarkgreen | #14381bdarkgreen |
| Secondary | #f8ecf6lavenderblush | #f8ecf6lavenderblush |
| Secondary foreground | #832f72rebeccapurple | #832f72rebeccapurple |
| Muted | #efe6edlavender | #191017black |
| Muted foreground | #60485bdimgray | #b79fb2darkgray |
| Accent | #f8ecf6lavenderblush | #f8ecf6lavenderblush |
| Accent foreground | #832f72rebeccapurple | #832f72rebeccapurple |
| Destructive | #c63c06firebrick | #f74c08orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ecf8efhoneydew | #ecf8efhoneydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 11.96:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 5.17:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 11.96:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 7.64:1 | AAA |
| Accent | 7.02:1 | AAA |
| Destructive | 3.50:1 | AA Large |
Paste this into your globals.css to use Petitioner in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 151.949);
--foreground: oklch(0.14 0.021 151.15);
--muted: oklch(0.934 0.014 332.23);
--muted-foreground: oklch(0.435 0.043 333.404);
--popover: oklch(0.994 0.004 151.949);
--popover-foreground: oklch(0.14 0.021 151.15);
--card: oklch(0.987 0.008 151.89);
--card-foreground: oklch(0.122 0.019 151.22);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.968 0.018 151.726);
--primary-foreground: oklch(0.307 0.066 148.004);
--secondary: oklch(0.956 0.018 332.283);
--secondary-foreground: oklch(0.452 0.141 336.345);
--accent: oklch(0.956 0.018 332.283);
--accent-foreground: oklch(0.452 0.141 336.345);
--destructive: oklch(0.555 0.182 37.176);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.018 151.726);
--chart-1: oklch(0.968 0.018 151.726);
--chart-2: oklch(0.956 0.018 332.283);
--chart-3: oklch(0.956 0.018 332.283);
--chart-4: oklch(0.982 0.007 332.114);
--chart-5: oklch(0.969 0.019 151.709);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.018 151.235);
--foreground: oklch(0.979 0.005 151.936);
--muted: oklch(0.188 0.021 333.588);
--muted-foreground: oklch(0.729 0.038 332.757);
--popover: oklch(0.122 0.018 151.235);
--popover-foreground: oklch(0.979 0.005 151.936);
--card: oklch(0.14 0.021 151.171);
--card-foreground: oklch(0.986 0.003 151.96);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.968 0.018 151.726);
--primary-foreground: oklch(0.307 0.066 148.004);
--secondary: oklch(0.956 0.018 332.283);
--secondary-foreground: oklch(0.452 0.141 336.345);
--accent: oklch(0.956 0.018 332.283);
--accent-foreground: oklch(0.452 0.141 336.345);
--destructive: oklch(0.654 0.217 36.8);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.018 151.726);
--chart-1: oklch(0.968 0.018 151.726);
--chart-2: oklch(0.956 0.018 332.283);
--chart-3: oklch(0.956 0.018 332.283);
--chart-4: oklch(0.982 0.007 332.114);
--chart-5: oklch(0.969 0.019 151.709);
}