Accordance is a shadcn/ui theme built around a purple primary color (#683165) with pink accents (#68314a). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#683165) on a neutral background (#080208).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #080208black |
| Foreground | #0c030cblack | #fbf9fbsnow |
| Card | #fefbfewhite | #080208black |
| Card foreground | #0c030cblack | #fbf9fbsnow |
| Popover | #fefbfewhite | #080208black |
| Popover foreground | #0c030cblack | #fbf9fbsnow |
| Primary | #683165darkslateblue | #683165darkslateblue |
| Primary foreground | #efdceelavender | #efdceelavender |
| Secondary | #4f3168darkslateblue | #4f3168darkslateblue |
| Secondary foreground | #e6dceflavender | #e6dceflavender |
| Muted | #e9e3eelavender | #18111cblack |
| Muted foreground | #675c70dimgray | #9a8fa3darkgray |
| Accent | #68314adimgray | #68314adimgray |
| Accent foreground | #efdce5mistyrose | #efdce5mistyrose |
| Destructive | #a64811saddlebrown | #e9702bchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #683165darkslateblue | #683165darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 4.97:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 5.89:1 | AA |
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 6.82:1 | AA |
Paste this into your globals.css to use Accordance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 327.082);
--foreground: oklch(0.124 0.03 328.643);
--muted: oklch(0.922 0.016 310.275);
--muted-foreground: oklch(0.492 0.035 309.782);
--popover: oklch(0.991 0.005 327.082);
--popover-foreground: oklch(0.124 0.03 328.643);
--card: oklch(0.991 0.005 327.082);
--card-foreground: oklch(0.124 0.03 328.643);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.407 0.107 329.215);
--primary-foreground: oklch(0.915 0.031 327.342);
--secondary: oklch(0.376 0.096 307.809);
--secondary-foreground: oklch(0.909 0.027 310.163);
--accent: oklch(0.394 0.085 353.372);
--accent-foreground: oklch(0.913 0.023 348.486);
--destructive: oklch(0.517 0.139 45.172);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.407 0.107 329.215);
--chart-1: oklch(0.407 0.107 329.215);
--chart-2: oklch(0.376 0.096 307.809);
--chart-3: oklch(0.394 0.085 353.372);
--chart-4: oklch(0.4 0.104 307.762);
--chart-5: oklch(0.408 0.115 329.357);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.026 328.507);
--foreground: oklch(0.984 0.004 327.071);
--muted: oklch(0.193 0.024 309.289);
--muted-foreground: oklch(0.666 0.032 309.988);
--popover: oklch(0.108 0.026 328.507);
--popover-foreground: oklch(0.984 0.004 327.071);
--card: oklch(0.108 0.026 328.507);
--card-foreground: oklch(0.984 0.004 327.071);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.407 0.107 329.215);
--primary-foreground: oklch(0.915 0.031 327.342);
--secondary: oklch(0.376 0.096 307.809);
--secondary-foreground: oklch(0.909 0.027 310.163);
--accent: oklch(0.394 0.085 353.372);
--accent-foreground: oklch(0.913 0.023 348.486);
--destructive: oklch(0.679 0.169 46.636);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.407 0.107 329.215);
--chart-1: oklch(0.407 0.107 329.215);
--chart-2: oklch(0.376 0.096 307.809);
--chart-3: oklch(0.394 0.085 353.372);
--chart-4: oklch(0.4 0.104 307.762);
--chart-5: oklch(0.408 0.115 329.357);
}