Marksman is a shadcn/ui theme built around a green primary color (#97e869) with green accents (#69e87a). The light mode uses a neutral background (#f9fdf6). Dark mode keeps the green primary (#97e869) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fdf6mintcream | #050703black |
| Foreground | #040802black | #ffffffwhite |
| Card | #f6fdf2honeydew | #070a05black |
| Card foreground | #020401black | #ffffffwhite |
| Popover | #f6fdf2honeydew | #070a05black |
| Popover foreground | #020401black | #ffffffwhite |
| Primary | #97e869lightgreen | #97e869lightgreen |
| Primary foreground | #0c1a04black | #0c1a04black |
| Secondary | #d7e869khaki | #d7e869khaki |
| Secondary foreground | #171a04black | #171a04black |
| Muted | #eaebe0beige | #1e1f14black |
| Muted foreground | #6a6c5adimgray | #a2a593darkgray |
| Accent | #69e87alightgreen | #69e87alightgreen |
| Accent foreground | #041a07black | #041a07black |
| Destructive | #8b1304darkred | #f9270borangered |
| Destructive foreground | #fdcac3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #97e869lightgreen | #97e869lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 12.03:1 | AAA |
| Secondary button | 13.13:1 | AAA |
| Muted text | 4.47:1 | AA Large |
| Accent | 11.57:1 | AAA |
| Destructive | 6.55:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 12.03:1 | AAA |
| Secondary button | 13.13:1 | AAA |
| Muted text | 6.59:1 | AA |
| Accent | 11.57:1 | AAA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Marksman in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.01 133.671);
--foreground: oklch(0.127 0.024 131.862);
--muted: oklch(0.937 0.016 112.857);
--muted-foreground: oklch(0.525 0.027 113.511);
--popover: oklch(0.985 0.016 133.705);
--popover-foreground: oklch(0.101 0.019 131.862);
--card: oklch(0.985 0.016 133.705);
--card-foreground: oklch(0.101 0.019 131.862);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.851 0.179 135.441);
--primary-foreground: oklch(0.2 0.047 134.745);
--secondary: oklch(0.892 0.152 115.896);
--secondary-foreground: oklch(0.21 0.04 115.945);
--accent: oklch(0.833 0.187 146.27);
--accent-foreground: oklch(0.195 0.048 146.672);
--destructive: oklch(0.41 0.155 31.112);
--destructive-foreground: oklch(0.883 0.059 27.036);
--ring: oklch(0.851 0.179 135.441);
--chart-1: oklch(0.851 0.179 135.441);
--chart-2: oklch(0.892 0.152 115.896);
--chart-3: oklch(0.833 0.187 146.27);
--chart-4: oklch(0.901 0.141 115.577);
--chart-5: oklch(0.856 0.185 135.528);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.014 132.574);
--foreground: oklch(1 0 180);
--muted: oklch(0.235 0.021 114.242);
--muted-foreground: oklch(0.713 0.025 113.209);
--popover: oklch(0.14 0.016 132.582);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.14 0.016 132.582);
--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.851 0.179 135.441);
--primary-foreground: oklch(0.2 0.047 134.745);
--secondary: oklch(0.892 0.152 115.896);
--secondary-foreground: oklch(0.21 0.04 115.945);
--accent: oklch(0.833 0.187 146.27);
--accent-foreground: oklch(0.195 0.048 146.672);
--destructive: oklch(0.628 0.241 30.756);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.851 0.179 135.441);
--chart-1: oklch(0.851 0.179 135.441);
--chart-2: oklch(0.892 0.152 115.896);
--chart-3: oklch(0.833 0.187 146.27);
--chart-4: oklch(0.901 0.141 115.577);
--chart-5: oklch(0.856 0.185 135.528);
}