Excursion is a shadcn/ui theme built around a violet primary color (#9570eb) with green accents (#c6eb70). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#9570eb) on a violet-tinted background (#06040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #06040cblack |
| Foreground | #020104black | #ffffffwhite |
| Card | #fcfbfewhite | #06040cblack |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #fcfbfewhite | #06040cblack |
| Popover foreground | #020104black | #ffffffwhite |
| Primary | #9570ebmediumpurple | #9570ebmediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #c6eb70khaki | #c6eb70khaki |
| Secondary foreground | #1b2405black | #1b2405black |
| Muted | #eeefecwhitesmoke | #121310black |
| Muted foreground | #5b5e55dimgray | #a8aaa1darkgray |
| Accent | #c6eb70khaki | #c6eb70khaki |
| Accent foreground | #1b2405black | #1b2405black |
| Destructive | #911a08darkred | #f33012orangered |
| Destructive foreground | #fcd5cfbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9570ebmediumpurple | #9570ebmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 11.88:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 11.88:1 | AAA |
| Destructive | 6.58:1 | AA |
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 5.79:1 | AA |
| Secondary button | 11.88:1 | AAA |
| Muted text | 7.90:1 | AAA |
| Accent | 11.88:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Excursion in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 299.983);
--foreground: oklch(0.074 0.022 300.351);
--muted: oklch(0.949 0.004 120.107);
--muted-foreground: oklch(0.476 0.014 120.55);
--popover: oklch(0.99 0.003 299.983);
--popover-foreground: oklch(0.074 0.022 300.351);
--card: oklch(0.99 0.003 299.983);
--card-foreground: oklch(0.074 0.022 300.351);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.638 0.178 294.676);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.887 0.155 123.404);
--secondary-foreground: oklch(0.242 0.052 124.25);
--accent: oklch(0.887 0.155 123.404);
--accent-foreground: oklch(0.242 0.052 124.25);
--destructive: oklch(0.427 0.157 31.496);
--destructive-foreground: oklch(0.904 0.046 28.274);
--ring: oklch(0.638 0.178 294.676);
--chart-1: oklch(0.638 0.178 294.676);
--chart-2: oklch(0.887 0.155 123.404);
--chart-3: oklch(0.887 0.155 123.404);
--chart-4: oklch(0.897 0.143 123.013);
--chart-5: oklch(0.635 0.184 294.385);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.023 300.093);
--foreground: oklch(1 0 180);
--muted: oklch(0.186 0.006 120.568);
--muted-foreground: oklch(0.734 0.013 120.336);
--popover: oklch(0.115 0.023 300.093);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.115 0.023 300.093);
--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.638 0.178 294.676);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.887 0.155 123.404);
--secondary-foreground: oklch(0.242 0.052 124.25);
--accent: oklch(0.887 0.155 123.404);
--accent-foreground: oklch(0.242 0.052 124.25);
--destructive: oklch(0.622 0.231 31.386);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.638 0.178 294.676);
--chart-1: oklch(0.638 0.178 294.676);
--chart-2: oklch(0.887 0.155 123.404);
--chart-3: oklch(0.887 0.155 123.404);
--chart-4: oklch(0.897 0.143 123.013);
--chart-5: oklch(0.635 0.184 294.385);
}