Reckless is a shadcn/ui theme built around a muted light green primary color (#e2e7da) with muted light green accents (#dce7da). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the muted light green primary (#e2e7da) on a green-tinted background (#090c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #090c03black |
| Foreground | #0c1005black | #fdfdfcwhite |
| Card | #f9fcf3floralwhite | #0c1004black |
| Card foreground | #090c04black | #ffffffwhite |
| Popover | #fbfdf7snow | #090c03black |
| Popover foreground | #0c1005black | #fdfdfcwhite |
| Primary | #e2e7dagainsboro | #e2e7dagainsboro |
| Primary foreground | #4c5738darkolivegreen | #4c5738darkolivegreen |
| Secondary | #e7e5dagainsboro | #e7e5dagainsboro |
| Secondary foreground | #575238darkolivegreen | #575238darkolivegreen |
| Muted | #f3f1e7linen | #18160cblack |
| Muted foreground | #5f5f5ddimgray | #a2a1a0darkgray |
| Accent | #dce7dagainsboro | #dce7dagainsboro |
| Accent foreground | #3c5738darkslategray | #3c5738darkslategray |
| Destructive | #850e0amaroon | #e41811red |
| Destructive foreground | #fbc8c6pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e2e7dagainsboro | #e2e7dagainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.74:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 5.66:1 | AA |
| Accent | 6.31:1 | AA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.35:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 6.23:1 | AA |
| Muted text | 7.03:1 | AAA |
| Accent | 6.31:1 | AA |
| Destructive | 4.74:1 | AA |
Paste this into your globals.css to use Reckless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.008 122.341);
--foreground: oklch(0.163 0.023 123.406);
--muted: oklch(0.958 0.013 98.512);
--muted-foreground: oklch(0.485 0.003 98.392);
--popover: oklch(0.99 0.008 122.341);
--popover-foreground: oklch(0.163 0.023 123.406);
--card: oklch(0.986 0.012 122.406);
--card-foreground: oklch(0.146 0.02 122.031);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.921 0.019 122.532);
--primary-foreground: oklch(0.439 0.051 124.139);
--secondary: oklch(0.921 0.015 98.549);
--secondary-foreground: oklch(0.437 0.041 99.364);
--accent: oklch(0.916 0.022 141.013);
--accent-foreground: oklch(0.427 0.06 140.784);
--destructive: oklch(0.394 0.152 28.853);
--destructive-foreground: oklch(0.876 0.058 20.627);
--ring: oklch(0.921 0.019 122.532);
--chart-1: oklch(0.921 0.019 122.532);
--chart-2: oklch(0.921 0.015 98.549);
--chart-3: oklch(0.916 0.022 141.013);
--chart-4: oklch(0.941 0.012 98.489);
--chart-5: oklch(0.923 0.021 122.575);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.023 122.099);
--foreground: oklch(0.993 0.001 122.234);
--muted: oklch(0.199 0.019 99.366);
--muted-foreground: oklch(0.71 0.002 98.364);
--popover: oklch(0.147 0.023 122.099);
--popover-foreground: oklch(0.993 0.001 122.234);
--card: oklch(0.165 0.026 123.51);
--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.921 0.019 122.532);
--primary-foreground: oklch(0.439 0.051 124.139);
--secondary: oklch(0.921 0.015 98.549);
--secondary-foreground: oklch(0.437 0.041 99.364);
--accent: oklch(0.916 0.022 141.013);
--accent-foreground: oklch(0.427 0.06 140.784);
--destructive: oklch(0.583 0.23 29.124);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.921 0.019 122.532);
--chart-1: oklch(0.921 0.019 122.532);
--chart-2: oklch(0.921 0.015 98.549);
--chart-3: oklch(0.916 0.022 141.013);
--chart-4: oklch(0.941 0.012 98.489);
--chart-5: oklch(0.923 0.021 122.575);
}