Stump is a shadcn/ui theme built around an indigo primary color (#6a5fce) with near-white accents (#eaeaeb). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#6a5fce) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #060415black | #ffffffwhite |
| Card | #fbfbfeghostwhite | #000000black |
| Card foreground | #060415black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #000000black |
| Popover foreground | #060415black | #ffffffwhite |
| Primary | #6a5fceslateblue | #6a5fceslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eaeaeblavender | #2f2f32darkslategray |
| Secondary foreground | #515152darkslategray | #c8c8cbsilver |
| Muted | #d6d4e8gainsboro | #19172bblack |
| Muted foreground | #454356darkslategray | #aba9bcdarkgray |
| Accent | #eaeaeblavender | #2f2f32darkslategray |
| Accent foreground | #515152darkslategray | #c8c8cbsilver |
| Destructive | #ca1807firebrick | #f11c09red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6a5fceslateblue | #6a5fceslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 5.06:1 | AA |
| Secondary button | 6.61:1 | AA |
| Muted text | 6.56:1 | AA |
| Accent | 6.61:1 | AA |
| Destructive | 5.77:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.06:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 7.62:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.27:1 | AA Large |
Paste this into your globals.css to use Stump in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 290.924);
--foreground: oklch(0.126 0.041 285.312);
--muted: oklch(0.876 0.028 290.401);
--muted-foreground: oklch(0.393 0.031 289.481);
--popover: oklch(0.988 0.005 290.924);
--popover-foreground: oklch(0.126 0.041 285.312);
--card: oklch(0.988 0.005 290.924);
--card-foreground: oklch(0.126 0.041 285.312);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.553 0.165 284.122);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.938 0.001 291.003);
--secondary-foreground: oklch(0.435 0.003 290.899);
--accent: oklch(0.938 0.001 291.003);
--accent-foreground: oklch(0.435 0.003 290.899);
--destructive: oklch(0.534 0.209 30.073);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.553 0.165 284.122);
--chart-1: oklch(0.553 0.165 284.122);
--chart-2: oklch(0.938 0.001 291.003);
--chart-3: oklch(0.938 0.001 291.003);
--chart-4: oklch(0.962 0 291.007);
--chart-5: oklch(0.548 0.174 283.557);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.218 0.04 287.19);
--muted-foreground: oklch(0.743 0.026 290.34);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.553 0.165 284.122);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.307 0.005 290.695);
--secondary-foreground: oklch(0.834 0.004 290.913);
--accent: oklch(0.307 0.005 290.695);
--accent-foreground: oklch(0.834 0.004 290.913);
--destructive: oklch(0.609 0.24 30.028);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.553 0.165 284.122);
--chart-1: oklch(0.553 0.165 284.122);
--chart-2: oklch(0.307 0.005 290.695);
--chart-3: oklch(0.307 0.005 290.695);
--chart-4: oklch(0.336 0.006 290.684);
--chart-5: oklch(0.548 0.174 283.557);
}