Overclocking is a shadcn/ui theme built around a vivid indigo primary color (#3628fb) with vivid green accents (#28fb36). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid indigo primary (#3628fb) on a neutral background (#010104).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #010104black |
| Foreground | #010104black | #fcfcfdwhite |
| Card | #f8f7fdghostwhite | #030208black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #010104black |
| Popover foreground | #010104black | #fcfcfdwhite |
| Primary | #3628fbblue | #3628fbblue |
| Primary foreground | #f1f0ffaliceblue | #f1f0ffaliceblue |
| Secondary | #fb3628orangered | #fb3628orangered |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eddfdegainsboro | #211312black |
| Muted foreground | #514948darkslategray | #b7afaedarkgray |
| Accent | #28fb36limegreen | #28fb36limegreen |
| Accent foreground | #025507darkgreen | #025507darkgreen |
| Destructive | #a52d09firebrick | #f4592atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3628fbblue | #3628fbblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 3.71:1 | AA Large |
| Muted text | 6.77:1 | AA |
| Accent | 6.46:1 | AA |
| Destructive | 7.05:1 | AAA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 6.54:1 | AA |
| Secondary button | 3.71:1 | AA Large |
| Muted text | 8.35:1 | AAA |
| Accent | 6.46:1 | AA |
| Destructive | 6.29:1 | AA |
Paste this into your globals.css to use Overclocking in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 289.412);
--foreground: oklch(0.072 0.021 284.884);
--muted: oklch(0.915 0.015 22.399);
--muted-foreground: oklch(0.412 0.012 22.549);
--popover: oklch(0.989 0.004 289.412);
--popover-foreground: oklch(0.072 0.021 284.884);
--card: oklch(0.979 0.007 289.344);
--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.483 0.285 271.077);
--primary-foreground: oklch(0.96 0.02 289.093);
--secondary: oklch(0.642 0.232 29.333);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.859 0.275 143.251);
--accent-foreground: oklch(0.39 0.128 143.218);
--destructive: oklch(0.48 0.161 35.316);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.483 0.285 271.077);
--chart-1: oklch(0.483 0.285 271.077);
--chart-2: oklch(0.642 0.232 29.333);
--chart-3: oklch(0.859 0.275 143.251);
--chart-4: oklch(0.655 0.221 28.772);
--chart-5: oklch(0.483 0.291 270.384);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.078 0.015 286.572);
--foreground: oklch(0.991 0.001 289.45);
--muted: oklch(0.206 0.022 23.742);
--muted-foreground: oklch(0.759 0.01 22.363);
--popover: oklch(0.078 0.015 286.572);
--popover-foreground: oklch(0.991 0.001 289.45);
--card: oklch(0.098 0.019 286.572);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.483 0.285 271.077);
--primary-foreground: oklch(0.96 0.02 289.093);
--secondary: oklch(0.642 0.232 29.333);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.859 0.275 143.251);
--accent-foreground: oklch(0.39 0.128 143.218);
--destructive: oklch(0.664 0.199 36.663);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.483 0.285 271.077);
--chart-1: oklch(0.483 0.285 271.077);
--chart-2: oklch(0.642 0.232 29.333);
--chart-3: oklch(0.859 0.275 143.251);
--chart-4: oklch(0.655 0.221 28.772);
--chart-5: oklch(0.483 0.291 270.384);
}