Bit is a shadcn/ui theme built around a vivid purple primary color (#e940fc) with vivid green accents (#53fc40). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#e940fc) on a purple-tinted background (#0a050b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a050bblack |
| Foreground | #040104black | #faf4faghostwhite |
| Card | #fcfcfcsnow | #0d060eblack |
| Card foreground | #000000black | #fbf8fcghostwhite |
| Popover | #ffffffwhite | #0a050bblack |
| Popover foreground | #040104black | #faf4faghostwhite |
| Primary | #e940fcorchid | #e940fcorchid |
| Primary foreground | #09000ablack | #09000ablack |
| Secondary | #53fc40limegreen | #53fc40limegreen |
| Secondary foreground | #010a00black | #010a00black |
| Muted | #d4dfd2lightgrey | #212d20darkslategray |
| Muted foreground | #596558dimgray | #9ba79adarkgray |
| Accent | #53fc40limegreen | #53fc40limegreen |
| Accent foreground | #010a00black | #010a00black |
| Destructive | #c00b02firebrick | #fd1d12red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e940fcorchid | #e940fcorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.76:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 14.71:1 | AAA |
| Muted text | 4.46:1 | AA Large |
| Accent | 14.71:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 18.67:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 14.71:1 | AAA |
| Muted text | 5.75:1 | AA |
| Accent | 14.71:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Bit in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.086 0.017 324.184);
--muted: oklch(0.892 0.022 142.529);
--muted-foreground: oklch(0.492 0.025 142.416);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.086 0.017 324.184);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.692 0.282 323.513);
--primary-foreground: oklch(0.1 0.045 325.741);
--secondary: oklch(0.871 0.262 141.715);
--secondary-foreground: oklch(0.128 0.04 139.595);
--accent: oklch(0.871 0.262 141.715);
--accent-foreground: oklch(0.128 0.04 139.595);
--destructive: oklch(0.51 0.205 29.697);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.692 0.282 323.513);
--chart-1: oklch(0.692 0.282 323.513);
--chart-2: oklch(0.871 0.262 141.715);
--chart-3: oklch(0.871 0.262 141.715);
--chart-4: oklch(0.876 0.249 141.683);
--chart-5: oklch(0.695 0.287 323.491);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.019 323.799);
--foreground: oklch(0.974 0.009 322.666);
--muted: oklch(0.281 0.028 142.211);
--muted-foreground: oklch(0.716 0.023 142.495);
--popover: oklch(0.126 0.019 323.799);
--popover-foreground: oklch(0.974 0.009 322.666);
--card: oklch(0.139 0.022 323.432);
--card-foreground: oklch(0.983 0.006 322.653);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.692 0.282 323.513);
--primary-foreground: oklch(0.1 0.045 325.741);
--secondary: oklch(0.871 0.262 141.715);
--secondary-foreground: oklch(0.128 0.04 139.595);
--accent: oklch(0.871 0.262 141.715);
--accent-foreground: oklch(0.128 0.04 139.595);
--destructive: oklch(0.631 0.248 29.446);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.692 0.282 323.513);
--chart-1: oklch(0.692 0.282 323.513);
--chart-2: oklch(0.871 0.262 141.715);
--chart-3: oklch(0.871 0.262 141.715);
--chart-4: oklch(0.876 0.249 141.683);
--chart-5: oklch(0.695 0.287 323.491);
}