Regret is a shadcn/ui theme built around a green primary color (#d1ea81) with neutral gray accents (#e1e1e0). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the green primary (#d1ea81) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #030401black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fbfcf8snow | #030401black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fbfcf8snow | #030401black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #d1ea81khaki | #d1ea81khaki |
| Primary foreground | #273008black | #273008black |
| Secondary | #e1e1e0gainsboro | #2e2e2ddarkslategray |
| Secondary foreground | #484946darkslategray | #c7c7c6silver |
| Muted | #f0f1eewhitesmoke | #10110eblack |
| Muted foreground | #454937darkslategray | #c4c8b6silver |
| Accent | #e1e1e0gainsboro | #2e2e2ddarkslategray |
| Accent foreground | #484946darkslategray | #c7c7c6silver |
| Destructive | #96320dsaddlebrown | #e14a14chocolate |
| Destructive foreground | #fce3d9antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d1ea81khaki | #d1ea81khaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 10.40:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 8.19:1 | AAA |
| Accent | 6.92:1 | AA |
| Destructive | 6.21:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 10.40:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 11.11:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Regret in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 117.191);
--foreground: oklch(0 0 0);
--muted: oklch(0.957 0.003 117.141);
--muted-foreground: oklch(0.395 0.029 118.431);
--popover: oklch(0.99 0.006 117.191);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.006 117.191);
--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.895 0.134 119.956);
--primary-foreground: oklch(0.291 0.061 121.691);
--secondary: oklch(0.909 0.002 117.112);
--secondary-foreground: oklch(0.403 0.005 117.292);
--accent: oklch(0.909 0.002 117.112);
--accent-foreground: oklch(0.403 0.005 117.292);
--destructive: oklch(0.46 0.142 37.846);
--destructive-foreground: oklch(0.933 0.03 41.088);
--ring: oklch(0.895 0.134 119.956);
--chart-1: oklch(0.895 0.134 119.956);
--chart-2: oklch(0.909 0.002 117.112);
--chart-3: oklch(0.909 0.002 117.112);
--chart-4: oklch(0.932 0.001 117.103);
--chart-5: oklch(0.9 0.138 120.06);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.011 117.33);
--foreground: oklch(0.994 0.002 117.122);
--muted: oklch(0.174 0.005 117.599);
--muted-foreground: oklch(0.825 0.025 117.62);
--popover: oklch(0.1 0.011 117.33);
--popover-foreground: oklch(0.994 0.002 117.122);
--card: oklch(0.1 0.011 117.33);
--card-foreground: oklch(0.994 0.002 117.122);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.895 0.134 119.956);
--primary-foreground: oklch(0.291 0.061 121.691);
--secondary: oklch(0.302 0.002 117.177);
--secondary-foreground: oklch(0.831 0.002 117.113);
--accent: oklch(0.302 0.002 117.177);
--accent-foreground: oklch(0.831 0.002 117.113);
--destructive: oklch(0.616 0.196 37.337);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.895 0.134 119.956);
--chart-1: oklch(0.895 0.134 119.956);
--chart-2: oklch(0.302 0.002 117.177);
--chart-3: oklch(0.302 0.002 117.177);
--chart-4: oklch(0.333 0.002 117.181);
--chart-5: oklch(0.9 0.138 120.06);
}