Insert is a shadcn/ui theme built around a vivid indigo primary color (#745cf0) with vivid violet accents (#be5cf0). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid indigo primary (#745cf0) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #020104black |
| Foreground | #010105black | #f6f6f9whitesmoke |
| Card | #fbfbfeghostwhite | #020104black |
| Card foreground | #010105black | #f6f6f9whitesmoke |
| Popover | #fbfbfeghostwhite | #020104black |
| Popover foreground | #010105black | #f6f6f9whitesmoke |
| Primary | #745cf0mediumslateblue | #745cf0mediumslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5c8df0cornflowerblue | #5c8df0cornflowerblue |
| Secondary foreground | #020917black | #020917black |
| Muted | #d1daebgainsboro | #141d2eblack |
| Muted foreground | #393f4cdarkslategray | #b3bac6silver |
| Accent | #be5cf0mediumorchid | #be5cf0mediumorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #a20901darkred | #ef0d01red |
| Destructive foreground | #ffd8d6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #745cf0mediumslateblue | #745cf0mediumslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 4.64:1 | AA |
| Secondary button | 6.18:1 | AA |
| Muted text | 7.48:1 | AAA |
| Accent | 5.97:1 | AA |
| Destructive | 6.21:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 4.64:1 | AA |
| Secondary button | 6.18:1 | AA |
| Muted text | 8.64:1 | AAA |
| Accent | 5.97:1 | AA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Insert in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 293.981);
--foreground: oklch(0.069 0.025 291.24);
--muted: oklch(0.886 0.025 264.437);
--muted-foreground: oklch(0.368 0.023 264.24);
--popover: oklch(0.989 0.004 293.981);
--popover-foreground: oklch(0.069 0.025 291.24);
--card: oklch(0.989 0.004 293.981);
--card-foreground: oklch(0.069 0.025 291.24);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.581 0.213 285.291);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.655 0.157 262.788);
--secondary-foreground: oklch(0.141 0.035 256.597);
--accent: oklch(0.656 0.223 312.609);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.451 0.181 29.857);
--destructive-foreground: oklch(0.915 0.043 21.534);
--ring: oklch(0.581 0.213 285.291);
--chart-1: oklch(0.581 0.213 285.291);
--chart-2: oklch(0.655 0.157 262.788);
--chart-3: oklch(0.656 0.223 312.609);
--chart-4: oklch(0.684 0.143 263.039);
--chart-5: oklch(0.577 0.219 284.821);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.076 0.018 292.418);
--foreground: oklch(0.973 0.005 293.976);
--muted: oklch(0.231 0.036 263.497);
--muted-foreground: oklch(0.787 0.019 264.46);
--popover: oklch(0.076 0.018 292.418);
--popover-foreground: oklch(0.973 0.005 293.976);
--card: oklch(0.076 0.018 292.418);
--card-foreground: oklch(0.973 0.005 293.976);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.581 0.213 285.291);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.655 0.157 262.788);
--secondary-foreground: oklch(0.141 0.035 256.597);
--accent: oklch(0.656 0.223 312.609);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.6 0.242 29.63);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.581 0.213 285.291);
--chart-1: oklch(0.581 0.213 285.291);
--chart-2: oklch(0.655 0.157 262.788);
--chart-3: oklch(0.656 0.223 312.609);
--chart-4: oklch(0.684 0.143 263.039);
--chart-5: oklch(0.577 0.219 284.821);
}