Shareholder is a shadcn/ui theme built around a muted teal primary color (#729d8e) with muted yellow accents (#9d8e72). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#729d8e) on a teal-tinted background (#050a09).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a09black |
| Foreground | #010403black | #ffffffwhite |
| Card | #fcfcfcsnow | #070e0bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #050a09black |
| Popover foreground | #010403black | #ffffffwhite |
| Primary | #729d8elightslategray | #729d8elightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #8e729dlightslategray | #8e729dlightslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #efe9f2lavender | #130d16black |
| Muted foreground | #594f5fdimgray | #aba0b0darkgray |
| Accent | #9d8e72gray | #9d8e72gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #8d2401darkred | #fc4103orangered |
| Destructive foreground | #fed1c2peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #729d8elightslategray | #729d8elightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 4.17:1 | AA Large |
| Muted text | 6.47:1 | AA |
| Accent | 6.55:1 | AA |
| Destructive | 6.30:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 4.17:1 | AA Large |
| Muted text | 7.63:1 | AAA |
| Accent | 6.55:1 | AA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Shareholder in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.011 174.815);
--muted: oklch(0.94 0.014 314.754);
--muted-foreground: oklch(0.443 0.028 314.517);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.011 174.815);
--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.659 0.052 172.044);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.594 0.072 314.228);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.653 0.044 84.482);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.428 0.146 35.936);
--destructive-foreground: oklch(0.897 0.055 39.26);
--ring: oklch(0.659 0.052 172.044);
--chart-1: oklch(0.659 0.052 172.044);
--chart-2: oklch(0.594 0.072 314.228);
--chart-3: oklch(0.653 0.044 84.482);
--chart-4: oklch(0.621 0.067 314.299);
--chart-5: oklch(0.666 0.059 171.626);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.011 174.742);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.021 314.223);
--muted-foreground: oklch(0.721 0.025 314.658);
--popover: oklch(0.139 0.011 174.742);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.154 0.013 172.972);
--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.659 0.052 172.044);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.594 0.072 314.228);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.653 0.044 84.482);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.652 0.23 34.686);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.659 0.052 172.044);
--chart-1: oklch(0.659 0.052 172.044);
--chart-2: oklch(0.594 0.072 314.228);
--chart-3: oklch(0.653 0.044 84.482);
--chart-4: oklch(0.621 0.067 314.299);
--chart-5: oklch(0.666 0.059 171.626);
}