Regret is a shadcn/ui theme built around a vivid green primary color (#4bfa00) with vivid green accents (#00fa32). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the vivid green primary (#4bfa00) on a green-tinted background (#080f06).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fdf7mintcream | #080f06black |
| Foreground | #040901black | #f9fbf8mintcream |
| Card | #f9fdf7mintcream | #080f06black |
| Card foreground | #040901black | #f9fbf8mintcream |
| Popover | #f9fdf7mintcream | #080f06black |
| Popover foreground | #040901black | #f9fbf8mintcream |
| Primary | #4bfa00lawngreen | #4bfa00lawngreen |
| Primary foreground | #0e2e00black | #0e2e00black |
| Secondary | #c8fa00greenyellow | #c8fa00greenyellow |
| Secondary foreground | #252e00black | #252e00black |
| Muted | #dcded4gainsboro | #292b21darkslategray |
| Muted foreground | #535841darkolivegreen | #b9bea7silver |
| Accent | #00fa32lime | #00fa32lime |
| Accent foreground | #002e09black | #002e09black |
| Destructive | #9d1a0cfirebrick | #df2511crimson |
| Destructive foreground | #fde1demistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4bfa00lawngreen | #4bfa00lawngreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 10.61:1 | AAA |
| Secondary button | 11.64:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 10.54:1 | AAA |
| Destructive | 6.59:1 | AA |
| Text on background | 18.68:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 10.61:1 | AAA |
| Secondary button | 11.64:1 | AAA |
| Muted text | 7.49:1 | AAA |
| Accent | 10.54:1 | AAA |
| Destructive | 4.75:1 | AA |
Paste this into your globals.css to use Regret in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.01 136.059);
--foreground: oklch(0.127 0.027 133.949);
--muted: oklch(0.895 0.014 115.856);
--muted-foreground: oklch(0.449 0.036 117.07);
--popover: oklch(0.989 0.01 136.059);
--popover-foreground: oklch(0.127 0.027 133.949);
--card: oklch(0.989 0.01 136.059);
--card-foreground: oklch(0.127 0.027 133.949);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.862 0.279 140.298);
--primary-foreground: oklch(0.266 0.082 137.702);
--secondary: oklch(0.917 0.225 123.078);
--secondary-foreground: oklch(0.282 0.068 120.814);
--accent: oklch(0.855 0.279 143.728);
--accent-foreground: oklch(0.262 0.079 146.402);
--destructive: oklch(0.449 0.167 30.52);
--destructive-foreground: oklch(0.931 0.031 25.293);
--ring: oklch(0.862 0.279 140.298);
--chart-1: oklch(0.862 0.279 140.298);
--chart-2: oklch(0.917 0.225 123.078);
--chart-3: oklch(0.855 0.279 143.728);
--chart-4: oklch(0.932 0.227 122.673);
--chart-5: oklch(0.871 0.283 140.418);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.023 135.347);
--foreground: oklch(0.987 0.005 136.039);
--muted: oklch(0.285 0.018 116.727);
--muted-foreground: oklch(0.791 0.032 116.32);
--popover: oklch(0.157 0.023 135.347);
--popover-foreground: oklch(0.987 0.005 136.039);
--card: oklch(0.157 0.023 135.347);
--card-foreground: oklch(0.987 0.005 136.039);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.862 0.279 140.298);
--primary-foreground: oklch(0.266 0.082 137.702);
--secondary: oklch(0.917 0.225 123.078);
--secondary-foreground: oklch(0.282 0.068 120.814);
--accent: oklch(0.855 0.279 143.728);
--accent-foreground: oklch(0.262 0.079 146.402);
--destructive: oklch(0.581 0.22 30.496);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.279 140.298);
--chart-1: oklch(0.862 0.279 140.298);
--chart-2: oklch(0.917 0.225 123.078);
--chart-3: oklch(0.855 0.279 143.728);
--chart-4: oklch(0.932 0.227 122.673);
--chart-5: oklch(0.871 0.283 140.418);
}