Direct is a shadcn/ui theme built around a vivid indigo primary color (#876beb) with muted light indigo accents (#e9e7ee). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#876beb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #060311black | #f9f9fbghostwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #05020dblack | #fcfcfdwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #05020dblack | #fcfcfdwhite |
| Primary | #876bebmediumslateblue | #876bebmediumslateblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #e9e7eelavender | #242131darkslategray |
| Secondary foreground | #4a445fdarkslategray | #bbb6cdsilver |
| Muted | #dddae7gainsboro | #1b1825black |
| Muted foreground | #47464edarkslategray | #b3b1b9darkgray |
| Accent | #e9e7eelavender | #242131darkslategray |
| Accent foreground | #4a445fdarkslategray | #bbb6cdsilver |
| Destructive | #970c07darkred | #ea120bred |
| Destructive foreground | #fdd5d3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #876bebmediumslateblue | #876bebmediumslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 5.31:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 6.77:1 | AA |
| Accent | 7.50:1 | AAA |
| Destructive | 6.59:1 | AA |
| Text on background | 19.97:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 5.31:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 8.20:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.57:1 | AA |
Paste this into your globals.css to use Direct in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.117 0.037 293.69);
--muted: oklch(0.895 0.017 295.988);
--muted-foreground: oklch(0.398 0.015 295.642);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.106 0.032 294.878);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.106 0.032 294.878);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.617 0.185 289.842);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.932 0.009 296.146);
--secondary-foreground: oklch(0.403 0.047 294.151);
--accent: oklch(0.932 0.009 296.146);
--accent-foreground: oklch(0.403 0.047 294.151);
--destructive: oklch(0.43 0.169 29.17);
--destructive-foreground: oklch(0.905 0.045 20.358);
--ring: oklch(0.617 0.185 289.842);
--chart-1: oklch(0.617 0.185 289.842);
--chart-2: oklch(0.932 0.009 296.146);
--chart-3: oklch(0.932 0.009 296.146);
--chart-4: oklch(0.957 0.006 296.219);
--chart-5: oklch(0.613 0.192 289.481);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.003 296.28);
--muted: oklch(0.22 0.024 294.288);
--muted-foreground: oklch(0.763 0.013 296.028);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.991 0.001 296.305);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.991 0.001 296.305);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.617 0.185 289.842);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.259 0.029 294.215);
--secondary-foreground: oklch(0.788 0.033 295.562);
--accent: oklch(0.259 0.029 294.215);
--accent-foreground: oklch(0.788 0.033 295.562);
--destructive: oklch(0.592 0.237 29.262);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.617 0.185 289.842);
--chart-1: oklch(0.617 0.185 289.842);
--chart-2: oklch(0.259 0.029 294.215);
--chart-3: oklch(0.259 0.029 294.215);
--chart-4: oklch(0.286 0.034 294.112);
--chart-5: oklch(0.613 0.192 289.481);
}