Effect is a shadcn/ui theme built around a neutral gray primary color (#433d3d) with neutral gray accents (#3d3d43). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#433d3d) on a red-tinted background (#100506).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #100506black |
| Foreground | #090102black | #fbf8f9snow |
| Card | #fefbfbsnow | #100506black |
| Card foreground | #090102black | #fbf8f9snow |
| Popover | #fefbfbsnow | #100506black |
| Popover foreground | #090102black | #fbf8f9snow |
| Primary | #433d3ddarkslategray | #433d3ddarkslategray |
| Primary foreground | #dbd7d7gainsboro | #dbd7d7gainsboro |
| Secondary | #3d433ddarkslategray | #3d433ddarkslategray |
| Secondary foreground | #d7dbd7gainsboro | #d7dbd7gainsboro |
| Muted | #e7efe6beige | #101910black |
| Muted foreground | #495b48darkslategray | #a5b7a4darkgray |
| Accent | #3d3d43darkslategray | #3d3d43darkslategray |
| Accent foreground | #d7d7dbgainsboro | #d7d7dbgainsboro |
| Destructive | #8b0a04darkred | #fa4238tomato |
| Destructive foreground | #fdc6c3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #433d3ddarkslategray | #433d3ddarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 6.23:1 | AA |
| Accent | 7.51:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 8.45:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Effect in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 11.326);
--foreground: oklch(0.099 0.026 14.174);
--muted: oklch(0.944 0.016 143.055);
--muted-foreground: oklch(0.451 0.038 142.73);
--popover: oklch(0.99 0.003 11.326);
--popover-foreground: oklch(0.099 0.026 14.174);
--card: oklch(0.99 0.003 11.326);
--card-foreground: oklch(0.099 0.026 14.174);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.365 0.009 11.782);
--primary-foreground: oklch(0.882 0.004 11.354);
--secondary: oklch(0.375 0.013 142.969);
--secondary-foreground: oklch(0.887 0.006 143.101);
--accent: oklch(0.362 0.01 281.741);
--accent-foreground: oklch(0.88 0.005 282.122);
--destructive: oklch(0.405 0.16 29.703);
--destructive-foreground: oklch(0.875 0.063 21.93);
--ring: oklch(0.365 0.009 11.782);
--chart-1: oklch(0.365 0.009 11.782);
--chart-2: oklch(0.375 0.013 142.969);
--chart-3: oklch(0.362 0.01 281.741);
--chart-4: oklch(0.404 0.015 142.966);
--chart-5: oklch(0.362 0.014 12.121);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.023 13.631);
--foreground: oklch(0.983 0.003 11.32);
--muted: oklch(0.202 0.023 142.584);
--muted-foreground: oklch(0.761 0.034 142.924);
--popover: oklch(0.133 0.023 13.631);
--popover-foreground: oklch(0.983 0.003 11.32);
--card: oklch(0.133 0.023 13.631);
--card-foreground: oklch(0.983 0.003 11.32);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.365 0.009 11.782);
--primary-foreground: oklch(0.882 0.004 11.354);
--secondary: oklch(0.375 0.013 142.969);
--secondary-foreground: oklch(0.887 0.006 143.101);
--accent: oklch(0.362 0.01 281.741);
--accent-foreground: oklch(0.88 0.005 282.122);
--destructive: oklch(0.652 0.222 28.11);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.365 0.009 11.782);
--chart-1: oklch(0.365 0.009 11.782);
--chart-2: oklch(0.375 0.013 142.969);
--chart-3: oklch(0.362 0.01 281.741);
--chart-4: oklch(0.404 0.015 142.966);
--chart-5: oklch(0.362 0.014 12.121);
}