Sore is a shadcn/ui theme built around a muted light green primary color (#d3d8c5) with muted light violet accents (#cac5d8). The light mode uses a neutral background (#fbfcf7). Dark mode keeps the muted light green primary (#d3d8c5) on a green-tinted background (#0d0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf7snow | #0d0f05black |
| Foreground | #060802black | #f8f8f6whitesmoke |
| Card | #f9fbf4whitesmoke | #101307black |
| Card foreground | #030401black | #fafbf9snow |
| Popover | #fbfcf7snow | #0d0f05black |
| Popover foreground | #060802black | #f8f8f6whitesmoke |
| Primary | #d3d8c5lightgrey | #d3d8c5lightgrey |
| Primary foreground | #3b402bdarkslategray | #3b402bdarkslategray |
| Secondary | #cac5d8thistle | #cac5d8thistle |
| Secondary foreground | #312b40darkslategray | #312b40darkslategray |
| Muted | #e8e6eflavender | #121019black |
| Muted foreground | #474158darkslategray | #ada7bedarkgray |
| Accent | #cac5d8thistle | #cac5d8thistle |
| Accent foreground | #312b40darkslategray | #312b40darkslategray |
| Destructive | #772c04saddlebrown | #f9762ftomato |
| Destructive foreground | #fdcbb0peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d3d8c5lightgrey | #d3d8c5lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 18.14:1 | AAA |
| Text on card | 18.10:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.13:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 7.63:1 | AAA |
Paste this into your globals.css to use Sore in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 118.687);
--foreground: oklch(0.128 0.017 118.645);
--muted: oklch(0.929 0.013 298.325);
--muted-foreground: oklch(0.391 0.039 296.783);
--popover: oklch(0.99 0.007 118.687);
--popover-foreground: oklch(0.128 0.017 118.645);
--card: oklch(0.985 0.01 118.749);
--card-foreground: oklch(0.102 0.014 118.645);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.874 0.027 119.101);
--primary-foreground: oklch(0.361 0.036 120.355);
--secondary: oklch(0.833 0.027 297.993);
--secondary-foreground: oklch(0.304 0.039 296.268);
--accent: oklch(0.833 0.027 297.993);
--accent-foreground: oklch(0.304 0.039 296.268);
--destructive: oklch(0.397 0.115 42.914);
--destructive-foreground: oklch(0.878 0.067 49.757);
--ring: oklch(0.874 0.027 119.101);
--chart-1: oklch(0.874 0.027 119.101);
--chart-2: oklch(0.833 0.027 297.993);
--chart-3: oklch(0.833 0.027 297.993);
--chart-4: oklch(0.86 0.023 298.103);
--chart-5: oklch(0.877 0.031 119.179);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.022 120.066);
--foreground: oklch(0.98 0.003 118.621);
--muted: oklch(0.179 0.019 296.632);
--muted-foreground: oklch(0.741 0.033 297.777);
--popover: oklch(0.163 0.022 120.066);
--popover-foreground: oklch(0.98 0.003 118.621);
--card: oklch(0.179 0.025 120.792);
--card-foreground: oklch(0.986 0.002 118.603);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.874 0.027 119.101);
--primary-foreground: oklch(0.361 0.036 120.355);
--secondary: oklch(0.833 0.027 297.993);
--secondary-foreground: oklch(0.304 0.039 296.268);
--accent: oklch(0.833 0.027 297.993);
--accent-foreground: oklch(0.304 0.039 296.268);
--destructive: oklch(0.709 0.179 45.287);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.874 0.027 119.101);
--chart-1: oklch(0.874 0.027 119.101);
--chart-2: oklch(0.833 0.027 297.993);
--chart-3: oklch(0.833 0.027 297.993);
--chart-4: oklch(0.86 0.023 298.103);
--chart-5: oklch(0.877 0.031 119.179);
}