Transfer is a shadcn/ui theme built around a vivid deep violet primary color (#260642) with vivid deep teal accents (#064226). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid deep violet primary (#260642) on a violet-tinted background (#08040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #08040bblack |
| Foreground | #08020dblack | #fcfcfdwhite |
| Card | #fdfcfdwhite | #08040bblack |
| Card foreground | #08020dblack | #fcfcfdwhite |
| Popover | #fdfcfdwhite | #08040bblack |
| Popover foreground | #08020dblack | #fcfcfdwhite |
| Primary | #260642midnightblue | #260642midnightblue |
| Primary foreground | #c085f4orchid | #c085f4orchid |
| Secondary | #422606maroon | #422606maroon |
| Secondary foreground | #f4c085burlywood | #f4c085burlywood |
| Muted | #f4eee7linen | #18120bblack |
| Muted foreground | #454240darkslategray | #bfbdbasilver |
| Accent | #064226darkgreen | #064226darkgreen |
| Accent foreground | #27ec90mediumspringgreen | #27ec90mediumspringgreen |
| Destructive | #730602maroon | #fa170fred |
| Destructive foreground | #fdadaalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #260642midnightblue | #260642midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.96:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 6.67:1 | AA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 8.62:1 | AAA |
| Accent | 7.46:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.67:1 | AA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 9.88:1 | AAA |
| Accent | 7.46:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Transfer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 309.763);
--foreground: oklch(0.112 0.036 311.582);
--muted: oklch(0.951 0.012 71.344);
--muted-foreground: oklch(0.382 0.006 71.315);
--popover: oklch(0.991 0.002 309.763);
--popover-foreground: oklch(0.112 0.036 311.582);
--card: oklch(0.991 0.002 309.763);
--card-foreground: oklch(0.112 0.036 311.582);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.223 0.104 302.682);
--primary-foreground: oklch(0.72 0.166 307.322);
--secondary: oklch(0.297 0.061 64.558);
--secondary-foreground: oklch(0.842 0.097 69.639);
--accent: oklch(0.334 0.076 156.678);
--accent-foreground: oklch(0.833 0.195 155.883);
--destructive: oklch(0.352 0.14 29.573);
--destructive-foreground: oklch(0.824 0.095 21.516);
--ring: oklch(0.223 0.104 302.682);
--chart-1: oklch(0.223 0.104 302.682);
--chart-2: oklch(0.297 0.061 64.558);
--chart-3: oklch(0.334 0.076 156.678);
--chart-4: oklch(0.336 0.07 63.59);
--chart-5: oklch(0.223 0.107 302.359);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.021 311.016);
--foreground: oklch(0.991 0.002 309.768);
--muted: oklch(0.189 0.017 70.264);
--muted-foreground: oklch(0.799 0.005 71.398);
--popover: oklch(0.12 0.021 311.016);
--popover-foreground: oklch(0.991 0.002 309.768);
--card: oklch(0.12 0.021 311.016);
--card-foreground: oklch(0.991 0.002 309.768);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.223 0.104 302.682);
--primary-foreground: oklch(0.72 0.166 307.322);
--secondary: oklch(0.297 0.061 64.558);
--secondary-foreground: oklch(0.842 0.097 69.639);
--accent: oklch(0.334 0.076 156.678);
--accent-foreground: oklch(0.833 0.195 155.883);
--destructive: oklch(0.624 0.249 29.224);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.223 0.104 302.682);
--chart-1: oklch(0.223 0.104 302.682);
--chart-2: oklch(0.297 0.061 64.558);
--chart-3: oklch(0.334 0.076 156.678);
--chart-4: oklch(0.336 0.07 63.59);
--chart-5: oklch(0.223 0.107 302.359);
}