Dinghy is a shadcn/ui theme built around a green primary color (#3dd530) with near-white accents (#e7eae6). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the green primary (#3dd530) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf7mintcream | #010401black |
| Foreground | #030802black | #f9fbf8mintcream |
| Card | #f4fcf3honeydew | #030802black |
| Card foreground | #010401black | #fcfdfcwhite |
| Popover | #f4fcf3honeydew | #030802black |
| Popover foreground | #010401black | #fcfdfcwhite |
| Primary | #3dd530limegreen | #3dd530limegreen |
| Primary foreground | #0d2f0ablack | #0d2f0ablack |
| Secondary | #e7eae6linen | #283027darkslategray |
| Secondary foreground | #4a554adarkslategray | #bfcabesilver |
| Muted | #daedd9gainsboro | #132612black |
| Muted foreground | #5e705cdimgray | #91a38fdarkseagreen |
| Accent | #e7eae6linen | #283027darkslategray |
| Accent foreground | #4a554adarkslategray | #bfcabesilver |
| Destructive | #d34f12chocolate | #ed7035tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3dd530limegreen | #3dd530limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.57:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 6.41:1 | AA |
| Muted text | 4.34:1 | AA Large |
| Accent | 6.41:1 | AA |
| Destructive | 4.27:1 | AA Large |
| Text on background | 19.80:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 6.96:1 | AA |
Paste this into your globals.css to use Dinghy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.01 143.088);
--foreground: oklch(0.123 0.024 141.327);
--muted: oklch(0.927 0.034 142.961);
--muted-foreground: oklch(0.524 0.039 142.785);
--popover: oklch(0.982 0.015 143.064);
--popover-foreground: oklch(0.098 0.019 141.327);
--card: oklch(0.982 0.015 143.064);
--card-foreground: oklch(0.098 0.019 141.327);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.764 0.235 141.936);
--primary-foreground: oklch(0.269 0.073 141.943);
--secondary: oklch(0.933 0.005 143.108);
--secondary-foreground: oklch(0.435 0.022 142.896);
--accent: oklch(0.933 0.005 143.108);
--accent-foreground: oklch(0.435 0.022 142.896);
--destructive: oklch(0.599 0.178 40.536);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.764 0.235 141.936);
--chart-1: oklch(0.764 0.235 141.936);
--chart-2: oklch(0.933 0.005 143.108);
--chart-3: oklch(0.933 0.005 143.108);
--chart-4: oklch(0.955 0.004 143.117);
--chart-5: oklch(0.773 0.241 141.95);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.017 141.545);
--foreground: oklch(0.986 0.005 143.11);
--muted: oklch(0.247 0.046 142.26);
--muted-foreground: oklch(0.696 0.036 142.889);
--popover: oklch(0.122 0.021 141.545);
--popover-foreground: oklch(0.993 0.003 143.122);
--card: oklch(0.122 0.021 141.545);
--card-foreground: oklch(0.993 0.003 143.122);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.764 0.235 141.936);
--primary-foreground: oklch(0.269 0.073 141.943);
--secondary: oklch(0.297 0.019 142.833);
--secondary-foreground: oklch(0.828 0.02 143.022);
--accent: oklch(0.297 0.019 142.833);
--accent-foreground: oklch(0.828 0.02 143.022);
--destructive: oklch(0.685 0.171 43.193);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.764 0.235 141.936);
--chart-1: oklch(0.764 0.235 141.936);
--chart-2: oklch(0.297 0.019 142.833);
--chart-3: oklch(0.297 0.019 142.833);
--chart-4: oklch(0.329 0.022 142.821);
--chart-5: oklch(0.773 0.241 141.95);
}