Sole is a shadcn/ui theme built around a blue primary color (#869dcb) with green accents (#9dcb86). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#869dcb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #869dcbcornflowerblue | #869dcbcornflowerblue |
| Primary foreground | #090d15black | #090d15black |
| Secondary | #cb869drosybrown | #cb869drosybrown |
| Secondary foreground | #15090dblack | #15090dblack |
| Muted | #eee7ealinen | #181113black |
| Muted foreground | #5d4b51dimgray | #b4a2a8darkgray |
| Accent | #9dcb86darkseagreen | #9dcb86darkseagreen |
| Accent foreground | #0d1509black | #0d1509black |
| Destructive | #a73801saddlebrown | #fe6d25tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #869dcbcornflowerblue | #869dcbcornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 6.88:1 | AA |
| Muted text | 6.67:1 | AA |
| Accent | 10.02:1 | AAA |
| Destructive | 6.50:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 6.88:1 | AA |
| Muted text | 7.68:1 | AAA |
| Accent | 10.02:1 | AAA |
| Destructive | 7.43:1 | AAA |
Paste this into your globals.css to use Sole in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.935 0.008 354.822);
--muted-foreground: oklch(0.434 0.027 356.297);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--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.695 0.073 263.919);
--primary-foreground: oklch(0.16 0.019 263.748);
--secondary: oklch(0.696 0.09 358.113);
--secondary-foreground: oklch(0.161 0.023 358.419);
--accent: oklch(0.792 0.106 135.604);
--accent-foreground: oklch(0.185 0.027 135.657);
--destructive: oklch(0.498 0.156 40.036);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.695 0.073 263.919);
--chart-1: oklch(0.695 0.073 263.919);
--chart-2: oklch(0.696 0.09 358.113);
--chart-3: oklch(0.792 0.106 135.604);
--chart-4: oklch(0.723 0.081 357.653);
--chart-5: oklch(0.692 0.079 263.851);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 264.547);
--muted: oklch(0.187 0.012 356.306);
--muted-foreground: oklch(0.729 0.023 355.488);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.695 0.073 263.919);
--primary-foreground: oklch(0.16 0.019 263.748);
--secondary: oklch(0.696 0.09 358.113);
--secondary-foreground: oklch(0.161 0.023 358.419);
--accent: oklch(0.792 0.106 135.604);
--accent-foreground: oklch(0.185 0.027 135.657);
--destructive: oklch(0.705 0.193 42.932);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.695 0.073 263.919);
--chart-1: oklch(0.695 0.073 263.919);
--chart-2: oklch(0.696 0.09 358.113);
--chart-3: oklch(0.792 0.106 135.604);
--chart-4: oklch(0.723 0.081 357.653);
--chart-5: oklch(0.692 0.079 263.851);
}