Sail is a shadcn/ui theme built around a muted deep green primary color (#334332) with muted deep green accents (#32433a). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the muted deep green primary (#334332) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #000000black |
| Foreground | #020901black | #f8fcf8mintcream |
| Card | #f5faf5whitesmoke | #030303black |
| Card foreground | #010401black | #fcfdfcwhite |
| Popover | #f8fcf8mintcream | #000000black |
| Popover foreground | #020901black | #f8fcf8mintcream |
| Primary | #334332darkslategray | #334332darkslategray |
| Primary foreground | #cedacelightgrey | #cedacelightgrey |
| Secondary | #3b4332darkslategray | #3b4332darkslategray |
| Secondary foreground | #d4dacelightgrey | #d4dacelightgrey |
| Muted | #edf2e9linen | #12160dblack |
| Muted foreground | #595e55dimgray | #a6aaa1darkgray |
| Accent | #32433adarkslategray | #32433adarkslategray |
| Accent foreground | #cedad3lightgrey | #cedad3lightgrey |
| Destructive | #6d2308maroon | #ef5b25chocolate |
| Destructive foreground | #f9c2aelightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #334332darkslategray | #334332darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 7.29:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 7.73:1 | AAA |
| Accent | 7.29:1 | AAA |
| Destructive | 6.16:1 | AA |
Paste this into your globals.css to use Sail in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.006 145.06);
--foreground: oklch(0.124 0.031 142.933);
--muted: oklch(0.954 0.013 127.945);
--muted-foreground: oklch(0.474 0.015 128.166);
--popover: oklch(0.986 0.006 145.06);
--popover-foreground: oklch(0.124 0.031 142.933);
--card: oklch(0.98 0.008 145.04);
--card-foreground: oklch(0.098 0.024 142.933);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.363 0.035 144.4);
--primary-foreground: oklch(0.875 0.021 144.932);
--secondary: oklch(0.37 0.029 128.755);
--secondary-foreground: oklch(0.88 0.018 128.025);
--accent: oklch(0.365 0.026 162.326);
--accent-foreground: oklch(0.876 0.016 163.821);
--destructive: oklch(0.367 0.111 38.173);
--destructive-foreground: oklch(0.859 0.069 40.903);
--ring: oklch(0.363 0.035 144.4);
--chart-1: oklch(0.363 0.035 144.4);
--chart-2: oklch(0.37 0.029 128.755);
--chart-3: oklch(0.365 0.026 162.326);
--chart-4: oklch(0.401 0.032 128.777);
--chart-5: oklch(0.366 0.042 144.256);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.005 145.062);
--muted: oklch(0.194 0.019 128.98);
--muted-foreground: oklch(0.733 0.014 128.007);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.005 145.062);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.003 145.081);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.363 0.035 144.4);
--primary-foreground: oklch(0.875 0.021 144.932);
--secondary: oklch(0.37 0.029 128.755);
--secondary-foreground: oklch(0.88 0.018 128.025);
--accent: oklch(0.365 0.026 162.326);
--accent-foreground: oklch(0.876 0.016 163.821);
--destructive: oklch(0.658 0.193 38.499);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.363 0.035 144.4);
--chart-1: oklch(0.363 0.035 144.4);
--chart-2: oklch(0.37 0.029 128.755);
--chart-3: oklch(0.365 0.026 162.326);
--chart-4: oklch(0.401 0.032 128.777);
--chart-5: oklch(0.366 0.042 144.256);
}