Cliff is a shadcn/ui theme built around a violet primary color (#bc91e3) with purple accents (#e391e2). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#bc91e3) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #050307black |
| Foreground | #050208black | #ffffffwhite |
| Card | #faf7fdghostwhite | #08050bblack |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #fdfbfewhite | #050307black |
| Popover foreground | #050208black | #ffffffwhite |
| Primary | #bc91e3plum | #bc91e3plum |
| Primary foreground | #220d35midnightblue | #220d35midnightblue |
| Secondary | #9291e3mediumpurple | #9291e3mediumpurple |
| Secondary foreground | #0e0d35black | #0e0d35black |
| Muted | #d6d6dcgainsboro | #232329darkslategray |
| Muted foreground | #56556ddimgray | #9392aadarkgray |
| Accent | #e391e2plum | #e391e2plum |
| Accent foreground | #350d34midnightblue | #350d34midnightblue |
| Destructive | #66140bmaroon | #e22c18crimson |
| Destructive foreground | #f6b3aclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bc91e3plum | #bc91e3plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 4.96:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 7.19:1 | AAA |
| Text on background | 20.53:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.14:1 | AA |
| Accent | 7.48:1 | AAA |
| Destructive | 4.55:1 | AA |
Paste this into your globals.css to use Cliff in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 309.077);
--foreground: oklch(0.102 0.024 310.874);
--muted: oklch(0.877 0.008 286.995);
--muted-foreground: oklch(0.46 0.038 285.587);
--popover: oklch(0.99 0.005 309.077);
--popover-foreground: oklch(0.102 0.024 310.874);
--card: oklch(0.98 0.009 309.027);
--card-foreground: oklch(0.081 0.019 310.874);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.727 0.125 307.266);
--primary-foreground: oklch(0.216 0.076 304.577);
--secondary: oklch(0.691 0.12 283.551);
--secondary-foreground: oklch(0.192 0.076 277.321);
--accent: oklch(0.767 0.144 327.439);
--accent-foreground: oklch(0.246 0.085 328.451);
--destructive: oklch(0.335 0.116 30.373);
--destructive-foreground: oklch(0.828 0.079 26.055);
--ring: oklch(0.727 0.125 307.266);
--chart-1: oklch(0.727 0.125 307.266);
--chart-2: oklch(0.691 0.12 283.551);
--chart-3: oklch(0.767 0.144 327.439);
--chart-4: oklch(0.726 0.106 284.203);
--chart-5: oklch(0.724 0.131 307.159);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.016 310.26);
--foreground: oklch(1 0 180);
--muted: oklch(0.26 0.011 286.344);
--muted-foreground: oklch(0.67 0.034 286.204);
--popover: oklch(0.106 0.016 310.26);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.018 310.211);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.727 0.125 307.266);
--primary-foreground: oklch(0.216 0.076 304.577);
--secondary: oklch(0.691 0.12 283.551);
--secondary-foreground: oklch(0.192 0.076 277.321);
--accent: oklch(0.767 0.144 327.439);
--accent-foreground: oklch(0.246 0.085 328.451);
--destructive: oklch(0.591 0.219 30.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.727 0.125 307.266);
--chart-1: oklch(0.727 0.125 307.266);
--chart-2: oklch(0.691 0.12 283.551);
--chart-3: oklch(0.767 0.144 327.439);
--chart-4: oklch(0.726 0.106 284.203);
--chart-5: oklch(0.724 0.131 307.159);
}