Sail is a shadcn/ui theme built around a vivid red primary color (#ea6b66) with vivid indigo accents (#6b66ea). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#ea6b66) on a red-tinted background (#0b0504).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0504black |
| Foreground | #080302black | #ffffffwhite |
| Card | #ffffffwhite | #0b0504black |
| Card foreground | #080302black | #ffffffwhite |
| Popover | #ffffffwhite | #0b0504black |
| Popover foreground | #080302black | #ffffffwhite |
| Primary | #ea6b66salmon | #ea6b66salmon |
| Primary foreground | #1b0404black | #1b0404black |
| Secondary | #66ea6blightgreen | #66ea6blightgreen |
| Secondary foreground | #041b04black | #041b04black |
| Muted | #e0ebe0gainsboro | #141f14black |
| Muted foreground | #405441darkslategray | #abbfacdarkgray |
| Accent | #6b66eamediumslateblue | #6b66eamediumslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #930601darkred | #fe1810red |
| Destructive foreground | #ffc9c7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ea6b66salmon | #ea6b66salmon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 11.66:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 4.44:1 | AA Large |
| Destructive | 6.36:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 11.66:1 | AAA |
| Muted text | 8.71:1 | AAA |
| Accent | 4.44:1 | AA Large |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Sail in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.106 0.015 23.041);
--muted: oklch(0.929 0.019 146.364);
--muted-foreground: oklch(0.422 0.039 145.703);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.106 0.015 23.041);
--card: oklch(1 0 180);
--card-foreground: oklch(0.106 0.015 23.041);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.68 0.159 24.19);
--primary-foreground: oklch(0.155 0.043 26.422);
--secondary: oklch(0.836 0.205 144.036);
--secondary-foreground: oklch(0.196 0.054 143.956);
--accent: oklch(0.587 0.193 280.115);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.419 0.169 29.68);
--destructive-foreground: oklch(0.883 0.061 20.68);
--ring: oklch(0.68 0.159 24.19);
--chart-1: oklch(0.68 0.159 24.19);
--chart-2: oklch(0.836 0.205 144.036);
--chart-3: oklch(0.587 0.193 280.115);
--chart-4: oklch(0.847 0.19 144.289);
--chart-5: oklch(0.68 0.165 24.425);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.014 22.299);
--foreground: oklch(1 0 180);
--muted: oklch(0.225 0.026 145.458);
--muted-foreground: oklch(0.784 0.033 146.161);
--popover: oklch(0.123 0.014 22.299);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.014 22.299);
--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.68 0.159 24.19);
--primary-foreground: oklch(0.155 0.043 26.422);
--secondary: oklch(0.836 0.205 144.036);
--secondary-foreground: oklch(0.196 0.054 143.956);
--accent: oklch(0.587 0.193 280.115);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.632 0.251 29.207);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.68 0.159 24.19);
--chart-1: oklch(0.68 0.159 24.19);
--chart-2: oklch(0.836 0.205 144.036);
--chart-3: oklch(0.587 0.193 280.115);
--chart-4: oklch(0.847 0.19 144.289);
--chart-5: oklch(0.68 0.165 24.425);
}