Tinted is a shadcn/ui theme built around a vivid indigo primary color (#5427e7) with vivid violet accents (#b427e7). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid indigo primary (#5427e7) on a neutral background (#040307).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #040307black |
| Foreground | #05030cblack | #f9f9fbghostwhite |
| Card | #fcfbfewhite | #040307black |
| Card foreground | #05030cblack | #f9f9fbghostwhite |
| Popover | #fcfbfewhite | #040307black |
| Popover foreground | #05030cblack | #f9f9fbghostwhite |
| Primary | #5427e7blueviolet | #5427e7blueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #275ae7royalblue | #275ae7royalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eff1f5whitesmoke | #0a0b10black |
| Muted foreground | #414758darkslategray | #a7adbedarkgray |
| Accent | #b427e7darkorchid | #b427e7darkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #843406saddlebrown | #e55b0bchocolate |
| Destructive foreground | #fcd6c0peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5427e7blueviolet | #5427e7blueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 5.64:1 | AA |
| Muted text | 8.18:1 | AAA |
| Accent | 4.78:1 | AA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 5.64:1 | AA |
| Muted text | 8.76:1 | AAA |
| Accent | 4.78:1 | AA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Tinted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 297.012);
--foreground: oklch(0.111 0.026 296.277);
--muted: oklch(0.957 0.007 270.065);
--muted-foreground: oklch(0.4 0.03 269.363);
--popover: oklch(0.99 0.004 297.012);
--popover-foreground: oklch(0.111 0.026 296.277);
--card: oklch(0.99 0.004 297.012);
--card-foreground: oklch(0.111 0.026 296.277);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.481 0.258 281.298);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.527 0.22 264.509);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.589 0.267 314.298);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.431 0.121 44.153);
--destructive-foreground: oklch(0.902 0.052 51.842);
--ring: oklch(0.481 0.258 281.298);
--chart-1: oklch(0.481 0.258 281.298);
--chart-2: oklch(0.527 0.22 264.509);
--chart-3: oklch(0.589 0.267 314.298);
--chart-4: oklch(0.553 0.206 265.045);
--chart-5: oklch(0.48 0.264 280.43);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.017 296.646);
--foreground: oklch(0.983 0.003 297.027);
--muted: oklch(0.151 0.01 269.388);
--muted-foreground: oklch(0.749 0.025 269.815);
--popover: oklch(0.101 0.017 296.646);
--popover-foreground: oklch(0.983 0.003 297.027);
--card: oklch(0.101 0.017 296.646);
--card-foreground: oklch(0.983 0.003 297.027);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.481 0.258 281.298);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.527 0.22 264.509);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.589 0.267 314.298);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.642 0.187 42.783);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.481 0.258 281.298);
--chart-1: oklch(0.481 0.258 281.298);
--chart-2: oklch(0.527 0.22 264.509);
--chart-3: oklch(0.589 0.267 314.298);
--chart-4: oklch(0.553 0.206 265.045);
--chart-5: oklch(0.48 0.264 280.43);
}