Sore is a shadcn/ui theme built around a deep green primary color (#0e270c) with deep green accents (#0c2717). The light mode uses a neutral background (#fbfefb). Dark mode keeps the deep green primary (#0e270c) on a green-tinted background (#070e07).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #070e07black |
| Foreground | #041103black | #f9fbf9mintcream |
| Card | #f8fdf7mintcream | #091109black |
| Card foreground | #030d02black | #fcfdfcwhite |
| Popover | #f8fdf7mintcream | #091109black |
| Popover foreground | #030d02black | #fcfdfcwhite |
| Primary | #0e270cblack | #0e270cblack |
| Primary foreground | #48c23dlimegreen | #48c23dlimegreen |
| Secondary | #1c270cblack | #1c270cblack |
| Secondary foreground | #8bc23dyellowgreen | #8bc23dyellowgreen |
| Muted | #e1e7dagainsboro | #202518black |
| Muted foreground | #666864dimgray | #999b97darkgray |
| Accent | #0c2717black | #0c2717black |
| Accent foreground | #3dc274mediumseagreen | #3dc274mediumseagreen |
| Destructive | #6f0d06maroon | #f22f21orangered |
| Destructive foreground | #fab2adlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e270cblack | #0e270cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.01:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 4.45:1 | AA Large |
| Accent | 6.96:1 | AA |
| Destructive | 6.93:1 | AA |
| Text on background | 18.82:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 5.61:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Sore in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 143.113);
--foreground: oklch(0.161 0.039 141.142);
--muted: oklch(0.919 0.017 125.306);
--muted-foreground: oklch(0.515 0.007 125.224);
--popover: oklch(0.988 0.009 143.092);
--popover-foreground: oklch(0.143 0.034 140.995);
--card: oklch(0.988 0.009 143.092);
--card-foreground: oklch(0.143 0.034 140.995);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.244 0.056 142.067);
--primary-foreground: oklch(0.719 0.202 141.93);
--secondary: oklch(0.254 0.047 128.181);
--secondary-foreground: oklch(0.749 0.171 129.384);
--accent: oklch(0.246 0.044 155.521);
--accent-foreground: oklch(0.723 0.16 153.477);
--destructive: oklch(0.348 0.131 29.724);
--destructive-foreground: oklch(0.831 0.085 23.638);
--ring: oklch(0.244 0.056 142.067);
--chart-1: oklch(0.244 0.056 142.067);
--chart-2: oklch(0.254 0.047 128.181);
--chart-3: oklch(0.246 0.044 155.521);
--chart-4: oklch(0.297 0.059 128.451);
--chart-5: oklch(0.246 0.059 142.036);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.018 142.227);
--foreground: oklch(0.986 0.002 143.123);
--muted: oklch(0.254 0.023 126.379);
--muted-foreground: oklch(0.687 0.006 125.17);
--popover: oklch(0.166 0.021 142.395);
--popover-foreground: oklch(0.993 0.001 143.129);
--card: oklch(0.166 0.021 142.395);
--card-foreground: oklch(0.993 0.001 143.129);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.244 0.056 142.067);
--primary-foreground: oklch(0.719 0.202 141.93);
--secondary: oklch(0.254 0.047 128.181);
--secondary-foreground: oklch(0.749 0.171 129.384);
--accent: oklch(0.246 0.044 155.521);
--accent-foreground: oklch(0.723 0.16 153.477);
--destructive: oklch(0.622 0.23 29.481);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.244 0.056 142.067);
--chart-1: oklch(0.244 0.056 142.067);
--chart-2: oklch(0.254 0.047 128.181);
--chart-3: oklch(0.246 0.044 155.521);
--chart-4: oklch(0.297 0.059 128.451);
--chart-5: oklch(0.246 0.059 142.036);
}