Integration is a shadcn/ui theme built around a deep purple primary color (#10040d) with deep red accents (#100407). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#10040d) on a purple-tinted background (#0c030a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c030ablack |
| Foreground | #11030eblack | #fbf8fbsnow |
| Card | #fcfcfcsnow | #10040dblack |
| Card foreground | #0d020ablack | #fdfcfdwhite |
| Popover | #fcfcfcsnow | #10040dblack |
| Popover foreground | #0d020ablack | #fdfcfdwhite |
| Primary | #10040dblack | #10040dblack |
| Primary foreground | #d770bdorchid | #d770bdorchid |
| Secondary | #0d0410black | #0d0410black |
| Secondary foreground | #bd70d7mediumorchid | #bd70d7mediumorchid |
| Muted | #ebeaeclavender | #151315black |
| Muted foreground | #504d51darkslategray | #b1aeb2darkgray |
| Accent | #100407black | #100407black |
| Accent foreground | #d77089palevioletred | #d77089palevioletred |
| Destructive | #be4809chocolate | #f46a1fchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #10040dblack | #10040dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 6.18:1 | AA |
| Muted text | 6.92:1 | AA |
| Accent | 6.28:1 | AA |
| Destructive | 5.08:1 | AA |
| Text on background | 19.26:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 6.18:1 | AA |
| Muted text | 8.40:1 | AAA |
| Accent | 6.28:1 | AA |
| Destructive | 6.93:1 | AA |
Paste this into your globals.css to use Integration in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.135 0.039 336.607);
--muted: oklch(0.938 0.003 317.758);
--muted-foreground: oklch(0.424 0.009 317.728);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.121 0.034 335.444);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.121 0.034 335.444);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.137 0.03 336.084);
--primary-foreground: oklch(0.687 0.158 337.459);
--secondary: oklch(0.134 0.031 318.358);
--secondary-foreground: oklch(0.668 0.166 317.202);
--accent: oklch(0.134 0.025 1.286);
--accent-foreground: oklch(0.669 0.131 5.358);
--destructive: oklch(0.556 0.164 41.924);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.137 0.03 336.084);
--chart-1: oklch(0.137 0.03 336.084);
--chart-2: oklch(0.134 0.031 318.358);
--chart-3: oklch(0.134 0.025 1.286);
--chart-4: oklch(0.169 0.045 317.198);
--chart-5: oklch(0.137 0.032 336.191);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.028 335.024);
--foreground: oklch(0.983 0.004 333.948);
--muted: oklch(0.191 0.005 317.723);
--muted-foreground: oklch(0.754 0.008 317.746);
--popover: oklch(0.137 0.032 336.191);
--popover-foreground: oklch(0.992 0.002 333.912);
--card: oklch(0.137 0.032 336.191);
--card-foreground: oklch(0.992 0.002 333.912);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.137 0.03 336.084);
--primary-foreground: oklch(0.687 0.158 337.459);
--secondary: oklch(0.134 0.031 318.358);
--secondary-foreground: oklch(0.668 0.166 317.202);
--accent: oklch(0.134 0.025 1.286);
--accent-foreground: oklch(0.669 0.131 5.358);
--destructive: oklch(0.686 0.188 43.814);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.137 0.03 336.084);
--chart-1: oklch(0.137 0.03 336.084);
--chart-2: oklch(0.134 0.031 318.358);
--chart-3: oklch(0.134 0.025 1.286);
--chart-4: oklch(0.169 0.045 317.198);
--chart-5: oklch(0.137 0.032 336.191);
}