Causal is a shadcn/ui theme built around a teal primary color (#72dfdf) with blue accents (#72a8df). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#72dfdf) on a neutral background (#020808).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020808black |
| Foreground | #020d0dblack | #f6f9f9whitesmoke |
| Card | #ffffffwhite | #020808black |
| Card foreground | #020d0dblack | #f6f9f9whitesmoke |
| Popover | #ffffffwhite | #020808black |
| Popover foreground | #020d0dblack | #f6f9f9whitesmoke |
| Primary | #72dfdfskyblue | #72dfdfskyblue |
| Primary foreground | #061919black | #061919black |
| Secondary | #72dfa8mediumaquamarine | #72dfa8mediumaquamarine |
| Secondary foreground | #06190fblack | #06190fblack |
| Muted | #e4ece8lavender | #131b17black |
| Muted foreground | #526059dimgray | #9fada6darkgray |
| Accent | #72a8dfcornflowerblue | #72a8dfcornflowerblue |
| Accent foreground | #060f19black | #060f19black |
| Destructive | #781d0dmaroon | #e73718orangered |
| Destructive foreground | #f8c7bepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #72dfdfskyblue | #72dfdfskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 11.47:1 | AAA |
| Secondary button | 11.11:1 | AAA |
| Muted text | 5.49:1 | AA |
| Accent | 7.70:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 11.47:1 | AAA |
| Secondary button | 11.11:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 7.70:1 | AAA |
| Destructive | 4.23:1 | AA Large |
Paste this into your globals.css to use Causal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.148 0.021 195.15);
--muted: oklch(0.936 0.01 164.867);
--muted-foreground: oklch(0.476 0.021 163.934);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.148 0.021 195.15);
--card: oklch(1 0 180);
--card-foreground: oklch(0.148 0.021 195.15);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.839 0.101 195.405);
--primary-foreground: oklch(0.197 0.026 195.273);
--secondary: oklch(0.824 0.129 159.912);
--secondary-foreground: oklch(0.193 0.033 160.034);
--accent: oklch(0.716 0.099 249.354);
--accent-foreground: oklch(0.165 0.026 247.922);
--destructive: oklch(0.38 0.128 32.337);
--destructive-foreground: oklch(0.871 0.058 29.85);
--ring: oklch(0.839 0.101 195.405);
--chart-1: oklch(0.839 0.101 195.405);
--chart-2: oklch(0.824 0.129 159.912);
--chart-3: oklch(0.716 0.099 249.354);
--chart-4: oklch(0.838 0.119 160.558);
--chart-5: oklch(0.845 0.104 195.361);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.013 195.572);
--foreground: oklch(0.979 0.003 197.11);
--muted: oklch(0.212 0.014 163.296);
--muted-foreground: oklch(0.734 0.019 164.449);
--popover: oklch(0.125 0.013 195.572);
--popover-foreground: oklch(0.979 0.003 197.11);
--card: oklch(0.125 0.013 195.572);
--card-foreground: oklch(0.979 0.003 197.11);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.839 0.101 195.405);
--primary-foreground: oklch(0.197 0.026 195.273);
--secondary: oklch(0.824 0.129 159.912);
--secondary-foreground: oklch(0.193 0.033 160.034);
--accent: oklch(0.716 0.099 249.354);
--accent-foreground: oklch(0.165 0.026 247.922);
--destructive: oklch(0.608 0.215 32.154);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.839 0.101 195.405);
--chart-1: oklch(0.839 0.101 195.405);
--chart-2: oklch(0.824 0.129 159.912);
--chart-3: oklch(0.716 0.099 249.354);
--chart-4: oklch(0.838 0.119 160.558);
--chart-5: oklch(0.845 0.104 195.361);
}