Accordance is a shadcn/ui theme built around a deep teal primary color (#051a10) with deep orange accents (#1a1005). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep teal primary (#051a10) on a neutral background (#040705).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #040705black |
| Foreground | #020905black | #f9fbfamintcream |
| Card | #f7fdfamintcream | #050a08black |
| Card foreground | #010403black | #fcfdfcwhite |
| Popover | #fbfefcwhite | #040705black |
| Popover foreground | #020905black | #f9fbfamintcream |
| Primary | #051a10black | #051a10black |
| Primary foreground | #27c478mediumseagreen | #27c478mediumseagreen |
| Secondary | #10051ablack | #10051ablack |
| Secondary foreground | #dcc3f3thistle | #dcc3f3thistle |
| Muted | #edeaf0lavender | #120f15black |
| Muted foreground | #4d4653darkslategray | #b3acb9darkgray |
| Accent | #1a1005black | #1a1005black |
| Accent foreground | #e2aa6esandybrown | #e2aa6esandybrown |
| Destructive | #7e2e0csaddlebrown | #e55315chocolate |
| Destructive foreground | #f9d3c2peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #051a10black | #051a10black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 12.42:1 | AAA |
| Muted text | 7.61:1 | AAA |
| Accent | 9.13:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 12.42:1 | AAA |
| Muted text | 8.63:1 | AAA |
| Accent | 9.13:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Accordance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 165.92);
--foreground: oklch(0.126 0.02 166.231);
--muted: oklch(0.941 0.009 309.022);
--muted-foreground: oklch(0.405 0.024 308.493);
--popover: oklch(0.994 0.004 165.92);
--popover-foreground: oklch(0.126 0.02 166.231);
--card: oklch(0.988 0.007 165.82);
--card-foreground: oklch(0.1 0.016 166.231);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.195 0.034 160.635);
--primary-foreground: oklch(0.725 0.167 155.842);
--secondary: oklch(0.148 0.046 306.451);
--secondary-foreground: oklch(0.854 0.07 308.261);
--accent: oklch(0.181 0.027 69.106);
--accent-foreground: oklch(0.778 0.101 67.267);
--destructive: oklch(0.413 0.119 40.374);
--destructive-foreground: oklch(0.895 0.049 44.513);
--ring: oklch(0.195 0.034 160.635);
--chart-1: oklch(0.195 0.034 160.635);
--chart-2: oklch(0.148 0.046 306.451);
--chart-3: oklch(0.181 0.027 69.106);
--chart-4: oklch(0.178 0.062 304.775);
--chart-5: oklch(0.196 0.036 160.474);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.009 166.117);
--foreground: oklch(0.986 0.002 165.973);
--muted: oklch(0.174 0.014 308.276);
--muted-foreground: oklch(0.753 0.021 308.834);
--popover: oklch(0.12 0.009 166.117);
--popover-foreground: oklch(0.986 0.002 165.973);
--card: oklch(0.138 0.01 166.117);
--card-foreground: oklch(0.993 0.001 165.996);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.195 0.034 160.635);
--primary-foreground: oklch(0.725 0.167 155.842);
--secondary: oklch(0.148 0.046 306.451);
--secondary-foreground: oklch(0.854 0.07 308.261);
--accent: oklch(0.181 0.027 69.106);
--accent-foreground: oklch(0.778 0.101 67.267);
--destructive: oklch(0.632 0.192 39.471);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.195 0.034 160.635);
--chart-1: oklch(0.195 0.034 160.635);
--chart-2: oklch(0.148 0.046 306.451);
--chart-3: oklch(0.181 0.027 69.106);
--chart-4: oklch(0.178 0.062 304.775);
--chart-5: oklch(0.196 0.036 160.474);
}