Reckless is a shadcn/ui theme built around a green primary color (#9ae5a7) with red accents (#e5a79a). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#9ae5a7) on a green-tinted background (#050f07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050f07black |
| Foreground | #000000black | #f4faf5whitesmoke |
| Card | #ffffffwhite | #050f07black |
| Card foreground | #000000black | #f4faf5whitesmoke |
| Popover | #ffffffwhite | #050f07black |
| Popover foreground | #000000black | #f4faf5whitesmoke |
| Primary | #9ae5a7lightgreen | #9ae5a7lightgreen |
| Primary foreground | #103d18darkgreen | #103d18darkgreen |
| Secondary | #a79ae5lightsteelblue | #a79ae5lightsteelblue |
| Secondary foreground | #18103dmidnightblue | #18103dmidnightblue |
| Muted | #d6d5ddgainsboro | #24222adarkslategray |
| Muted foreground | #515058darkslategray | #a8a7afdarkgray |
| Accent | #e5a79aburlywood | #e5a79aburlywood |
| Accent foreground | #3d1810black | #3d1810black |
| Destructive | #b23606firebrick | #ed4907orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9ae5a7lightgreen | #9ae5a7lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 5.44:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 6.11:1 | AA |
| Text on background | 18.37:1 | AAA |
| Text on card | 18.37:1 | AAA |
| Primary button | 8.29:1 | AAA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 6.59:1 | AA |
| Accent | 7.74:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Reckless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.875 0.012 294.578);
--muted-foreground: oklch(0.436 0.014 294.232);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.856 0.113 149.294);
--primary-foreground: oklch(0.319 0.08 146.7);
--secondary: oklch(0.725 0.108 291.879);
--secondary-foreground: oklch(0.215 0.082 285.579);
--accent: oklch(0.784 0.076 33.01);
--accent-foreground: oklch(0.262 0.06 33.997);
--destructive: oklch(0.514 0.167 37.386);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.856 0.113 149.294);
--chart-1: oklch(0.856 0.113 149.294);
--chart-2: oklch(0.725 0.108 291.879);
--chart-3: oklch(0.784 0.076 33.01);
--chart-4: oklch(0.759 0.095 292.402);
--chart-5: oklch(0.859 0.119 149.189);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.025 150.007);
--foreground: oklch(0.98 0.009 151.272);
--muted: oklch(0.257 0.016 293.668);
--muted-foreground: oklch(0.731 0.012 294.516);
--popover: oklch(0.156 0.025 150.007);
--popover-foreground: oklch(0.98 0.009 151.272);
--card: oklch(0.156 0.025 150.007);
--card-foreground: oklch(0.98 0.009 151.272);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.856 0.113 149.294);
--primary-foreground: oklch(0.319 0.08 146.7);
--secondary: oklch(0.725 0.108 291.879);
--secondary-foreground: oklch(0.215 0.082 285.579);
--accent: oklch(0.784 0.076 33.01);
--accent-foreground: oklch(0.262 0.06 33.997);
--destructive: oklch(0.634 0.21 36.862);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.856 0.113 149.294);
--chart-1: oklch(0.856 0.113 149.294);
--chart-2: oklch(0.725 0.108 291.879);
--chart-3: oklch(0.784 0.076 33.01);
--chart-4: oklch(0.759 0.095 292.402);
--chart-5: oklch(0.859 0.119 149.189);
}