Marksman is a shadcn/ui theme built around a near-black primary color (#060909) with near-black accents (#090906). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the near-black primary (#060909) on a teal-tinted background (#040b0b).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #040b0bblack |
| Foreground | #021211black | #fbfdfdwhite |
| Card | #f3fbfbmintcream | #050f0eblack |
| Card foreground | #020e0dblack | #ffffffwhite |
| Popover | #f3fbfbmintcream | #050f0eblack |
| Popover foreground | #020e0dblack | #ffffffwhite |
| Primary | #060909black | #060909black |
| Primary foreground | #8ab7b4darkgray | #8ab7b4darkgray |
| Secondary | #090609black | #090609black |
| Secondary foreground | #b48ab7darkgray | #b48ab7darkgray |
| Muted | #ecd8eelavender | #251127black |
| Muted foreground | #504851darkslategray | #b6aeb7darkgray |
| Accent | #090906black | #090906black |
| Accent foreground | #b7b48atan | #b7b48atan |
| Destructive | #962b0dsaddlebrown | #ed5d35tomato |
| Destructive foreground | #fce1d9mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #060909black | #060909black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.55:1 | AAA |
| Text on card | 18.71:1 | AAA |
| Primary button | 9.03:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 6.53:1 | AA |
| Accent | 9.39:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 9.03:1 | AAA |
| Secondary button | 6.97:1 | AA |
| Muted text | 8.18:1 | AAA |
| Accent | 9.39:1 | AAA |
| Destructive | 6.23:1 | AA |
Paste this into your globals.css to use Marksman in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 191.128);
--foreground: oklch(0.167 0.024 188.628);
--muted: oklch(0.905 0.037 323.322);
--muted-foreground: oklch(0.413 0.019 323.339);
--popover: oklch(0.983 0.008 191.065);
--popover-foreground: oklch(0.148 0.021 189.394);
--card: oklch(0.983 0.008 191.065);
--card-foreground: oklch(0.148 0.021 189.394);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.137 0.007 190.812);
--primary-foreground: oklch(0.747 0.048 189.791);
--secondary: oklch(0.129 0.012 323.865);
--secondary-foreground: oklch(0.688 0.08 323.642);
--accent: oklch(0.139 0.008 103.678);
--accent-foreground: oklch(0.761 0.057 103.314);
--destructive: oklch(0.452 0.148 35.114);
--destructive-foreground: oklch(0.929 0.031 35.945);
--ring: oklch(0.137 0.007 190.812);
--chart-1: oklch(0.137 0.007 190.812);
--chart-2: oklch(0.129 0.012 323.865);
--chart-3: oklch(0.139 0.008 103.678);
--chart-4: oklch(0.165 0.019 323.626);
--chart-5: oklch(0.138 0.008 190.764);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.014 190.191);
--foreground: oklch(0.994 0.002 191.203);
--muted: oklch(0.218 0.051 324.065);
--muted-foreground: oklch(0.76 0.016 323.231);
--popover: oklch(0.158 0.016 189.445);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.158 0.016 189.445);
--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.137 0.007 190.812);
--primary-foreground: oklch(0.747 0.048 189.791);
--secondary: oklch(0.129 0.012 323.865);
--secondary-foreground: oklch(0.688 0.08 323.642);
--accent: oklch(0.139 0.008 103.678);
--accent-foreground: oklch(0.761 0.057 103.314);
--destructive: oklch(0.66 0.187 36.081);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.137 0.007 190.812);
--chart-1: oklch(0.137 0.007 190.812);
--chart-2: oklch(0.129 0.012 323.865);
--chart-3: oklch(0.139 0.008 103.678);
--chart-4: oklch(0.165 0.019 323.626);
--chart-5: oklch(0.138 0.008 190.764);
}