Causeway is a shadcn/ui theme built around a purple primary color (#a12fc1) with teal accents (#2fc1a1). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the purple primary (#a12fc1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #0e0311black | #ffffffwhite |
| Card | #fdfbfewhite | #000000black |
| Card foreground | #0e0311black | #ffffffwhite |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #0e0311black | #ffffffwhite |
| Primary | #a12fc1darkorchid | #a12fc1darkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c1a12fgoldenrod | #c1a12fgoldenrod |
| Secondary foreground | #1d1807black | #1d1807black |
| Muted | #e7e4dagainsboro | #252218black |
| Muted foreground | #4b4944darkslategray | #bbbab4silver |
| Accent | #2fc1a1lightseagreen | #2fc1a1lightseagreen |
| Accent foreground | #071d18black | #071d18black |
| Destructive | #dd0f08red | #f72d26crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a12fc1darkorchid | #a12fc1darkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 7.73:1 | AAA |
| Destructive | 5.04:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 7.10:1 | AAA |
| Muted text | 8.13:1 | AAA |
| Accent | 7.73:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Causeway in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 318.889);
--foreground: oklch(0.132 0.038 319.816);
--muted: oklch(0.919 0.014 94.03);
--muted-foreground: oklch(0.407 0.009 94.101);
--popover: oklch(0.991 0.005 318.889);
--popover-foreground: oklch(0.132 0.038 319.816);
--card: oklch(0.991 0.005 318.889);
--card-foreground: oklch(0.132 0.038 319.816);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.542 0.224 317.712);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.719 0.132 92.751);
--secondary-foreground: oklch(0.21 0.031 94.427);
--accent: oklch(0.729 0.128 174.112);
--accent-foreground: oklch(0.21 0.03 177.094);
--destructive: oklch(0.568 0.228 29.296);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.542 0.224 317.712);
--chart-1: oklch(0.542 0.224 317.712);
--chart-2: oklch(0.719 0.132 92.751);
--chart-3: oklch(0.729 0.128 174.112);
--chart-4: oklch(0.752 0.138 92.718);
--chart-5: oklch(0.544 0.231 317.565);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.253 0.019 94.457);
--muted-foreground: oklch(0.787 0.008 93.973);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.542 0.224 317.712);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.719 0.132 92.751);
--secondary-foreground: oklch(0.21 0.031 94.427);
--accent: oklch(0.729 0.128 174.112);
--accent-foreground: oklch(0.21 0.03 177.094);
--destructive: oklch(0.63 0.235 28.452);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.542 0.224 317.712);
--chart-1: oklch(0.542 0.224 317.712);
--chart-2: oklch(0.719 0.132 92.751);
--chart-3: oklch(0.729 0.128 174.112);
--chart-4: oklch(0.752 0.138 92.718);
--chart-5: oklch(0.544 0.231 317.565);
}