Adventurous is a shadcn/ui theme built around a muted yellow primary color (#5d5c4c) with muted purple accents (#5c4c5d). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the muted yellow primary (#5d5c4c) on a yellow-tinted background (#0f0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf7snow | #0f0f05black |
| Foreground | #151504black | #ffffffwhite |
| Card | #fcfcf3floralwhite | #131307black |
| Card foreground | #111103black | #ffffffwhite |
| Popover | #fcfcf3floralwhite | #131307black |
| Popover foreground | #111103black | #ffffffwhite |
| Primary | #5d5c4cdarkolivegreen | #5d5c4cdarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4c5d5cdimgray | #4c5d5cdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eaf5f5whitesmoke | #0a1514black |
| Muted foreground | #555858dimgray | #a7aaaadarkgray |
| Accent | #5c4c5ddimgray | #5c4c5ddimgray |
| Accent foreground | #efebefwhitesmoke | #efebefwhitesmoke |
| Destructive | #c83204firebrick | #fb6132tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5d5c4cdarkolivegreen | #5d5c4cdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.99:1 | AAA |
| Text on card | 18.36:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 6.97:1 | AA |
| Muted text | 6.45:1 | AA |
| Accent | 6.74:1 | AA |
| Destructive | 5.37:1 | AA |
| Text on background | 19.25:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 6.97:1 | AA |
| Muted text | 7.96:1 | AAA |
| Accent | 6.74:1 | AA |
| Destructive | 6.84:1 | AA |
Paste this into your globals.css to use Adventurous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.008 104.942);
--foreground: oklch(0.19 0.031 107.341);
--muted: oklch(0.962 0.011 194.577);
--muted-foreground: oklch(0.459 0.004 194.61);
--popover: oklch(0.988 0.011 105.01);
--popover-foreground: oklch(0.172 0.027 107.402);
--card: oklch(0.988 0.011 105.01);
--card-foreground: oklch(0.172 0.027 107.402);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.47 0.025 105.706);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.462 0.021 193.966);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.438 0.034 325.099);
--accent-foreground: oklch(0.945 0.006 324.659);
--destructive: oklch(0.548 0.192 34.517);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.47 0.025 105.706);
--chart-1: oklch(0.47 0.025 105.706);
--chart-2: oklch(0.462 0.021 193.966);
--chart-3: oklch(0.438 0.034 325.099);
--chart-4: oklch(0.491 0.022 193.957);
--chart-5: oklch(0.478 0.032 105.927);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.165 0.02 106.861);
--foreground: oklch(1 0 180);
--muted: oklch(0.183 0.015 193.256);
--muted-foreground: oklch(0.735 0.004 194.69);
--popover: oklch(0.181 0.023 106.838);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.181 0.023 106.838);
--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.47 0.025 105.706);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.462 0.021 193.966);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.438 0.034 325.099);
--accent-foreground: oklch(0.945 0.006 324.659);
--destructive: oklch(0.685 0.198 36.923);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.47 0.025 105.706);
--chart-1: oklch(0.47 0.025 105.706);
--chart-2: oklch(0.462 0.021 193.966);
--chart-3: oklch(0.438 0.034 325.099);
--chart-4: oklch(0.491 0.022 193.957);
--chart-5: oklch(0.478 0.032 105.927);
}