Voyage is a shadcn/ui theme built around an indigo primary color (#756ede) with violet accents (#ad6ede). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#756ede) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020104black |
| Foreground | #040311black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #030307black |
| Card foreground | #03020dblack | #ffffffwhite |
| Popover | #ffffffwhite | #020104black |
| Popover foreground | #040311black | #fcfcfdwhite |
| Primary | #756edemediumslateblue | #756edemediumslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6e9edecornflowerblue | #6e9edecornflowerblue |
| Secondary foreground | #050c15black | #050c15black |
| Muted | #eff2f5whitesmoke | #0a0c10black |
| Muted foreground | #4e5156darkslategray | #a9adb1darkgray |
| Accent | #ad6edemediumpurple | #ad6edemediumpurple |
| Accent foreground | #000000black | #000000black |
| Destructive | #8f1c05darkred | #f73d18orangered |
| Destructive foreground | #fdd2c9peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #756edemediumslateblue | #756edemediumslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.46:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 4.18:1 | AA Large |
| Secondary button | 7.12:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 6.04:1 | AA |
| Destructive | 6.53:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 4.18:1 | AA Large |
| Secondary button | 7.12:1 | AAA |
| Muted text | 8.65:1 | AAA |
| Accent | 6.04:1 | AA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Voyage in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.113 0.037 283.606);
--muted: oklch(0.96 0.005 254.985);
--muted-foreground: oklch(0.434 0.009 255.056);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.113 0.037 283.606);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.102 0.032 284.282);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.599 0.166 283.181);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.692 0.108 255.51);
--secondary-foreground: oklch(0.15 0.023 252.168);
--accent: oklch(0.651 0.171 308.535);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.423 0.153 32.593);
--destructive-foreground: oklch(0.897 0.051 31.261);
--ring: oklch(0.599 0.166 283.181);
--chart-1: oklch(0.599 0.166 283.181);
--chart-2: oklch(0.692 0.108 255.51);
--chart-3: oklch(0.651 0.171 308.535);
--chart-4: oklch(0.718 0.098 255.432);
--chart-5: oklch(0.594 0.173 282.752);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.079 0.014 286.905);
--foreground: oklch(0.991 0.002 289.448);
--muted: oklch(0.155 0.009 255.179);
--muted-foreground: oklch(0.746 0.008 255.009);
--popover: oklch(0.079 0.014 286.905);
--popover-foreground: oklch(0.991 0.002 289.448);
--card: oklch(0.099 0.017 286.905);
--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.599 0.166 283.181);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.692 0.108 255.51);
--secondary-foreground: oklch(0.15 0.023 252.168);
--accent: oklch(0.651 0.171 308.535);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.64 0.226 32.689);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.599 0.166 283.181);
--chart-1: oklch(0.599 0.166 283.181);
--chart-2: oklch(0.692 0.108 255.51);
--chart-3: oklch(0.651 0.171 308.535);
--chart-4: oklch(0.718 0.098 255.432);
--chart-5: oklch(0.594 0.173 282.752);
}