Overshoot is a shadcn/ui theme built around a muted deep violet primary color (#423852) with muted deep purple accents (#4f3852). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep violet primary (#423852) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #050307black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #fcfbfewhite | #050307black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fcfbfewhite | #050307black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #423852darkslategray | #423852darkslategray |
| Primary foreground | #dcd8e4gainsboro | #dcd8e4gainsboro |
| Secondary | #383b52darkslategray | #383b52darkslategray |
| Secondary foreground | #d8d9e4gainsboro | #d8d9e4gainsboro |
| Muted | #e0e2f0lavender | #0f111fblack |
| Muted foreground | #565658dimgray | #a7a8a9darkgray |
| Accent | #4f3852darkslategray | #4f3852darkslategray |
| Accent foreground | #e3d8e4gainsboro | #e3d8e4gainsboro |
| Destructive | #5e1c08maroon | #ee5c2ftomato |
| Destructive foreground | #f7b5a1lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #423852darkslategray | #423852darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 7.32:1 | AAA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 7.87:1 | AAA |
| Accent | 7.55:1 | AAA |
| Destructive | 6.21:1 | AA |
Paste this into your globals.css to use Overshoot in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 303.575);
--foreground: oklch(0 0 0);
--muted: oklch(0.916 0.019 280.003);
--muted-foreground: oklch(0.454 0.002 280.245);
--popover: oklch(0.99 0.004 303.575);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.004 303.575);
--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.362 0.046 301.717);
--primary-foreground: oklch(0.888 0.018 303.343);
--secondary: oklch(0.359 0.04 278.335);
--secondary-foreground: oklch(0.888 0.015 280.057);
--accent: oklch(0.376 0.053 322.553);
--accent-foreground: oklch(0.893 0.021 322.192);
--destructive: oklch(0.33 0.101 36.537);
--destructive-foreground: oklch(0.829 0.083 37.617);
--ring: oklch(0.362 0.046 301.717);
--chart-1: oklch(0.362 0.046 301.717);
--chart-2: oklch(0.359 0.04 278.335);
--chart-3: oklch(0.376 0.053 322.553);
--chart-4: oklch(0.385 0.044 278.293);
--chart-5: oklch(0.357 0.053 301.369);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.013 304.151);
--foreground: oklch(0.991 0.002 303.607);
--muted: oklch(0.183 0.028 277.45);
--muted-foreground: oklch(0.731 0.002 280.283);
--popover: oklch(0.107 0.013 304.151);
--popover-foreground: oklch(0.991 0.002 303.607);
--card: oklch(0.107 0.013 304.151);
--card-foreground: oklch(0.991 0.002 303.607);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.362 0.046 301.717);
--primary-foreground: oklch(0.888 0.018 303.343);
--secondary: oklch(0.359 0.04 278.335);
--secondary-foreground: oklch(0.888 0.015 280.057);
--accent: oklch(0.376 0.053 322.553);
--accent-foreground: oklch(0.893 0.021 322.192);
--destructive: oklch(0.659 0.19 36.938);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.362 0.046 301.717);
--chart-1: oklch(0.362 0.046 301.717);
--chart-2: oklch(0.359 0.04 278.335);
--chart-3: oklch(0.376 0.053 322.553);
--chart-4: oklch(0.385 0.044 278.293);
--chart-5: oklch(0.357 0.053 301.369);
}