Marten is a shadcn/ui theme built around a teal primary color (#6ecfc3) with yellow accents (#cfc36e). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#6ecfc3) on a teal-tinted background (#030c0b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #030c0bblack |
| Foreground | #020807black | #ffffffwhite |
| Card | #f8fcfcmintcream | #04100fblack |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #f8fcfcmintcream | #04100fblack |
| Popover foreground | #010404black | #ffffffwhite |
| Primary | #6ecfc3mediumaquamarine | #6ecfc3mediumaquamarine |
| Primary foreground | #030807black | #030807black |
| Secondary | #c36ecforchid | #c36ecforchid |
| Secondary foreground | #070308black | #070308black |
| Muted | #e8dce9gainsboro | #211623black |
| Muted foreground | #49404adarkslategray | #beb5bfsilver |
| Accent | #cfc36edarkkhaki | #cfc36edarkkhaki |
| Accent foreground | #080703black | #080703black |
| Destructive | #a73111firebrick | #e94c20chocolate |
| Destructive foreground | #fdf0ecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6ecfc3mediumaquamarine | #6ecfc3mediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 10.87:1 | AAA |
| Secondary button | 6.27:1 | AA |
| Muted text | 7.51:1 | AAA |
| Accent | 11.22:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 10.87:1 | AAA |
| Secondary button | 6.27:1 | AA |
| Muted text | 8.79:1 | AAA |
| Accent | 11.22:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Marten in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 188.85);
--foreground: oklch(0.124 0.013 188.317);
--muted: oklch(0.909 0.021 322.192);
--muted-foreground: oklch(0.384 0.02 322.284);
--popover: oklch(0.988 0.005 188.79);
--popover-foreground: oklch(0.099 0.01 188.317);
--card: oklch(0.988 0.005 188.79);
--card-foreground: oklch(0.099 0.01 188.317);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.791 0.094 185.646);
--primary-foreground: oklch(0.124 0.012 188.326);
--secondary: oklch(0.668 0.164 322.786);
--secondary-foreground: oklch(0.108 0.022 323.693);
--accent: oklch(0.809 0.108 101.817);
--accent-foreground: oklch(0.127 0.015 103.371);
--destructive: oklch(0.489 0.159 35.164);
--destructive-foreground: oklch(0.965 0.015 35.967);
--ring: oklch(0.791 0.094 185.646);
--chart-1: oklch(0.791 0.094 185.646);
--chart-2: oklch(0.668 0.164 322.786);
--chart-3: oklch(0.809 0.108 101.817);
--chart-4: oklch(0.692 0.152 322.737);
--chart-5: oklch(0.797 0.098 185.476);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.016 187.724);
--foreground: oklch(1 0 180);
--muted: oklch(0.219 0.03 322.542);
--muted-foreground: oklch(0.784 0.016 322.184);
--popover: oklch(0.161 0.019 186.705);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.161 0.019 186.705);
--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.791 0.094 185.646);
--primary-foreground: oklch(0.124 0.012 188.326);
--secondary: oklch(0.668 0.164 322.786);
--secondary-foreground: oklch(0.108 0.022 323.693);
--accent: oklch(0.809 0.108 101.817);
--accent-foreground: oklch(0.127 0.015 103.371);
--destructive: oklch(0.631 0.201 35.397);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.791 0.094 185.646);
--chart-1: oklch(0.791 0.094 185.646);
--chart-2: oklch(0.668 0.164 322.786);
--chart-3: oklch(0.809 0.108 101.817);
--chart-4: oklch(0.692 0.152 322.737);
--chart-5: oklch(0.797 0.098 185.476);
}