Colors is a shadcn/ui theme built around a vivid indigo primary color (#5533ff) with vivid violet accents (#bb33ff). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid indigo primary (#5533ff) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #000000black |
| Foreground | #020104black | #fcfcfdwhite |
| Card | #fcfcfdwhite | #000000black |
| Card foreground | #020104black | #fcfcfdwhite |
| Popover | #fcfcfdwhite | #000000black |
| Popover foreground | #020104black | #fcfcfdwhite |
| Primary | #5533ffblueviolet | #5533ffblueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3377ffdodgerblue | #3377ffdodgerblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dce2eflavender | #101623black |
| Muted foreground | #3c3e44darkslategray | #bbbec3silver |
| Accent | #bb33ffmediumorchid | #bb33ffmediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #aa2713firebrick | #e6391eorangered |
| Destructive foreground | #fdf3f1seashell | #ffffffwhite |
| Border | #e3e2e9gainsboro | #211f28black |
| Input | #e3e2e9gainsboro | #211f28black |
| Ring | #5533ffblueviolet | #5533ffblueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 4.02:1 | AA Large |
| Muted text | 8.23:1 | AAA |
| Accent | 4.17:1 | AA Large |
| Destructive | 6.41:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 4.02:1 | AA Large |
| Muted text | 9.69:1 | AAA |
| Accent | 4.17:1 | AA Large |
| Destructive | 4.23:1 | AA Large |
Paste this into your globals.css to use Colors in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 294.028);
--foreground: oklch(0.077 0.017 292.545);
--muted: oklch(0.912 0.019 264.472);
--muted-foreground: oklch(0.365 0.009 264.451);
--popover: oklch(0.991 0.002 294.028);
--popover-foreground: oklch(0.077 0.017 292.545);
--card: oklch(0.991 0.002 294.028);
--card-foreground: oklch(0.077 0.017 292.545);
--border: oklch(0.917 0.008 293.897);
--input: oklch(0.917 0.008 293.897);
--primary: oklch(0.517 0.275 278.316);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.214 262.15);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.623 0.28 310.693);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.484 0.17 31.633);
--destructive-foreground: oklch(0.972 0.012 27.996);
--ring: oklch(0.517 0.275 278.316);
--chart-1: oklch(0.517 0.275 278.316);
--chart-2: oklch(0.605 0.214 262.15);
--chart-3: oklch(0.623 0.28 310.693);
--chart-4: oklch(0.63 0.199 262.294);
--chart-5: oklch(0.516 0.281 277.631);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 294.048);
--muted: oklch(0.201 0.029 263.614);
--muted-foreground: oklch(0.801 0.008 264.52);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 294.048);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 294.048);
--border: oklch(0.246 0.016 292.812);
--input: oklch(0.246 0.016 292.812);
--primary: oklch(0.517 0.275 278.316);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.214 262.15);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.623 0.28 310.693);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.608 0.213 31.637);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.517 0.275 278.316);
--chart-1: oklch(0.517 0.275 278.316);
--chart-2: oklch(0.605 0.214 262.15);
--chart-3: oklch(0.623 0.28 310.693);
--chart-4: oklch(0.63 0.199 262.294);
--chart-5: oklch(0.516 0.281 277.631);
}