Sore is a shadcn/ui theme built around a muted yellow primary color (#a9a189) with muted green accents (#a2a989). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#a9a189) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #000000black | #fcfbf8snow |
| Card | #fcfcfcsnow | #080702black |
| Card foreground | #000000black | #fdfdfbsnow |
| Popover | #fcfcfcsnow | #080702black |
| Popover foreground | #000000black | #fdfdfbsnow |
| Primary | #a9a189rosybrown | #a9a189rosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #a99089rosybrown | #a99089rosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #eadfdcgainsboro | #231815black |
| Muted foreground | #4a4645darkslategray | #bab6b5silver |
| Accent | #a2a989darkseagreen | #a2a989darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #820b03maroon | #fb3123orangered |
| Destructive foreground | #febeb9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a9a189rosybrown | #a9a189rosybrown |
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 | 8.12:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 8.58:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 8.59:1 | AAA |
| Accent | 8.58:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Sore in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.912 0.013 37.68);
--muted-foreground: oklch(0.398 0.005 37.687);
--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.709 0.035 90.4);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.675 0.032 37.6);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.721 0.046 118.245);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.386 0.151 30.119);
--destructive-foreground: oklch(0.857 0.075 23.387);
--ring: oklch(0.709 0.035 90.4);
--chart-1: oklch(0.709 0.035 90.4);
--chart-2: oklch(0.675 0.032 37.6);
--chart-3: oklch(0.721 0.046 118.245);
--chart-4: oklch(0.7 0.029 37.607);
--chart-5: oklch(0.714 0.041 90.42);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.013 95.548);
--foreground: oklch(0.988 0.004 90.151);
--muted: oklch(0.223 0.019 37.599);
--muted-foreground: oklch(0.78 0.004 37.717);
--popover: oklch(0.126 0.016 95.548);
--popover-foreground: oklch(0.994 0.002 90.136);
--card: oklch(0.126 0.016 95.548);
--card-foreground: oklch(0.994 0.002 90.136);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.709 0.035 90.4);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.675 0.032 37.6);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.721 0.046 118.245);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.639 0.236 29.475);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.709 0.035 90.4);
--chart-1: oklch(0.709 0.035 90.4);
--chart-2: oklch(0.675 0.032 37.6);
--chart-3: oklch(0.721 0.046 118.245);
--chart-4: oklch(0.7 0.029 37.607);
--chart-5: oklch(0.714 0.041 90.42);
}