Fast is a shadcn/ui theme built around a vivid violet primary color (#8c1efa) with vivid purple accents (#fa1efa). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid violet primary (#8c1efa) on a violet-tinted background (#08050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #08050ablack |
| Foreground | #0a0411black | #faf9fbghostwhite |
| Card | #faf7fdghostwhite | #0a070eblack |
| Card foreground | #08030dblack | #fcfcfdwhite |
| Popover | #faf7fdghostwhite | #0a070eblack |
| Popover foreground | #08030dblack | #fcfcfdwhite |
| Primary | #8c1efablueviolet | #8c1efablueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1e1efablue | #1e1efablue |
| Secondary foreground | #e6e6felavender | #e6e6felavender |
| Muted | #dedee3gainsboro | #1c1c21black |
| Muted foreground | #3e3e4cdarkslategray | #b3b3c1silver |
| Accent | #fa1efamagenta | #fa1efamagenta |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #87230dsaddlebrown | #ed5f40tomato |
| Destructive foreground | #fad4ccbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8c1efablueviolet | #8c1efablueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 6.51:1 | AA |
| Muted text | 7.81:1 | AAA |
| Accent | 3.15:1 | AA Large |
| Destructive | 6.72:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 5.68:1 | AA |
| Secondary button | 6.51:1 | AA |
| Muted text | 8.20:1 | AAA |
| Accent | 3.15:1 | AA Large |
| Destructive | 6.33:1 | AA |
Paste this into your globals.css to use Fast in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 308.412);
--foreground: oklch(0.127 0.034 308.261);
--muted: oklch(0.901 0.007 286.249);
--muted-foreground: oklch(0.369 0.023 285.193);
--popover: oklch(0.98 0.009 308.362);
--popover-foreground: oklch(0.114 0.03 309.93);
--card: oklch(0.98 0.009 308.362);
--card-foreground: oklch(0.114 0.03 309.93);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.55 0.281 298.018);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.465 0.295 266.858);
--secondary-foreground: oklch(0.932 0.033 285.742);
--accent: oklch(0.698 0.31 328.288);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.416 0.139 33.677);
--destructive-foreground: oklch(0.9 0.044 32.757);
--ring: oklch(0.55 0.281 298.018);
--chart-1: oklch(0.55 0.281 298.018);
--chart-2: oklch(0.465 0.295 266.858);
--chart-3: oklch(0.698 0.31 328.288);
--chart-4: oklch(0.484 0.284 269.064);
--chart-5: oklch(0.551 0.285 297.518);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.015 309.369);
--foreground: oklch(0.983 0.002 308.434);
--muted: oklch(0.228 0.011 285.532);
--muted-foreground: oklch(0.772 0.019 285.936);
--popover: oklch(0.136 0.018 308.225);
--popover-foreground: oklch(0.992 0.001 308.448);
--card: oklch(0.136 0.018 308.225);
--card-foreground: oklch(0.992 0.001 308.448);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.55 0.281 298.018);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.465 0.295 266.858);
--secondary-foreground: oklch(0.932 0.033 285.742);
--accent: oklch(0.698 0.31 328.288);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.664 0.182 34.152);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.55 0.281 298.018);
--chart-1: oklch(0.55 0.281 298.018);
--chart-2: oklch(0.465 0.295 266.858);
--chart-3: oklch(0.698 0.31 328.288);
--chart-4: oklch(0.484 0.284 269.064);
--chart-5: oklch(0.551 0.285 297.518);
}