Dolman is a shadcn/ui theme built around a green primary color (#48e572) with near-white accents (#ebebeb). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#48e572) on a neutral background (#040704).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #040704black |
| Foreground | #020804black | #f5f9f6whitesmoke |
| Card | #fbfefcwhite | #040704black |
| Card foreground | #020804black | #f5f9f6whitesmoke |
| Popover | #fbfefcwhite | #040704black |
| Popover foreground | #020804black | #f5f9f6whitesmoke |
| Primary | #48e572mediumseagreen | #48e572mediumseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #ebebeblinen | #1a231cblack |
| Secondary foreground | #525252darkslategray | #acc3b2silver |
| Muted | #eee7e7linen | #111813black |
| Muted foreground | #4a4545darkslategray | #b5bab6silver |
| Accent | #ebebeblinen | #1a231cblack |
| Accent foreground | #525252darkslategray | #acc3b2silver |
| Destructive | #bd0a0afirebrick | #f43434crimson |
| Destructive foreground | #fffafasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #48e572mediumseagreen | #48e572mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 12.71:1 | AAA |
| Secondary button | 6.53:1 | AA |
| Muted text | 7.74:1 | AAA |
| Accent | 6.53:1 | AA |
| Destructive | 6.32:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 12.71:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 9.18:1 | AAA |
| Accent | 8.57:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Dolman in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 154.473);
--foreground: oklch(0.123 0.02 153.889);
--muted: oklch(0.934 0.007 17.283);
--muted-foreground: oklch(0.394 0.008 17.486);
--popover: oklch(0.994 0.003 154.473);
--popover-foreground: oklch(0.123 0.02 153.889);
--card: oklch(0.994 0.003 154.473);
--card-foreground: oklch(0.123 0.02 153.889);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.815 0.204 148.377);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.939 0 180);
--secondary-foreground: oklch(0.437 0 180);
--accent: oklch(0.939 0 180);
--accent-foreground: oklch(0.437 0 180);
--destructive: oklch(0.504 0.203 28.762);
--destructive-foreground: oklch(0.989 0.005 17.24);
--ring: oklch(0.815 0.204 148.377);
--chart-1: oklch(0.815 0.204 148.377);
--chart-2: oklch(0.939 0 180);
--chart-3: oklch(0.939 0 180);
--chart-4: oklch(0.962 0 180);
--chart-5: oklch(0.822 0.21 148.165);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.011 154.19);
--foreground: oklch(0.979 0.006 154.425);
--muted: oklch(0.199 0.014 153.242);
--muted-foreground: oklch(0.785 0.009 154.332);
--popover: oklch(0.12 0.011 154.19);
--popover-foreground: oklch(0.979 0.006 154.425);
--card: oklch(0.12 0.011 154.19);
--card-foreground: oklch(0.979 0.006 154.425);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.815 0.204 148.377);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.246 0.019 153.039);
--secondary-foreground: oklch(0.795 0.034 153.745);
--accent: oklch(0.246 0.019 153.039);
--accent-foreground: oklch(0.795 0.034 153.745);
--destructive: oklch(0.631 0.227 26.746);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.815 0.204 148.377);
--chart-1: oklch(0.815 0.204 148.377);
--chart-2: oklch(0.246 0.019 153.039);
--chart-3: oklch(0.246 0.019 153.039);
--chart-4: oklch(0.28 0.023 152.939);
--chart-5: oklch(0.822 0.21 148.165);
}