Keep is a shadcn/ui theme built around a light violet primary color (#f6f1f9) with muted light violet accents (#c6bacf). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the light violet primary (#f6f1f9) on a violet-tinted background (#08050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #08050bblack |
| Foreground | #060208black | #fdfcfdwhite |
| Card | #faf8fcghostwhite | #0b060eblack |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #fdfcfdwhite | #08050bblack |
| Popover foreground | #060208black | #fdfcfdwhite |
| Primary | #f6f1f9whitesmoke | #f6f1f9whitesmoke |
| Primary foreground | #633681rebeccapurple | #633681rebeccapurple |
| Secondary | #dcd8dfgainsboro | #1c1c1cblack |
| Secondary foreground | #433c48darkslategray | #b5b4b6silver |
| Muted | #e4dfe7gainsboro | #1d1820black |
| Muted foreground | #443a4adarkslategray | #beb5c5silver |
| Accent | #c6bacfsilver | #2f2b31darkslategray |
| Accent foreground | #2d2433darkslategray | #c8c3cbsilver |
| Destructive | #941105darkred | #dd1a08red |
| Destructive foreground | #fdd2cepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6f1f9whitesmoke | #f6f1f9whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 8.21:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 8.79:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 4.95:1 | AA |
Paste this into your globals.css to use Keep in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 312.339);
--foreground: oklch(0.103 0.023 314.245);
--muted: oklch(0.91 0.011 312.269);
--muted-foreground: oklch(0.366 0.03 311.758);
--popover: oklch(0.991 0.003 312.339);
--popover-foreground: oklch(0.103 0.023 314.245);
--card: oklch(0.982 0.005 312.319);
--card-foreground: oklch(0.082 0.018 314.245);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.963 0.012 312.263);
--primary-foreground: oklch(0.425 0.127 309.754);
--secondary: oklch(0.887 0.01 312.277);
--secondary-foreground: oklch(0.369 0.022 311.913);
--accent: oklch(0.805 0.032 312.06);
--accent-foreground: oklch(0.276 0.031 311.518);
--destructive: oklch(0.425 0.164 30.202);
--destructive-foreground: oklch(0.899 0.049 24.202);
--ring: oklch(0.963 0.012 312.263);
--chart-1: oklch(0.963 0.012 312.263);
--chart-2: oklch(0.887 0.01 312.277);
--chart-3: oklch(0.805 0.032 312.06);
--chart-4: oklch(0.912 0.008 312.297);
--chart-5: oklch(0.963 0.013 312.256);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.018 313.551);
--foreground: oklch(0.991 0.003 312.339);
--muted: oklch(0.219 0.015 311.836);
--muted-foreground: oklch(0.785 0.025 312.126);
--popover: oklch(0.123 0.018 313.551);
--popover-foreground: oklch(0.991 0.003 312.339);
--card: oklch(0.136 0.02 312.312);
--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.963 0.012 312.263);
--primary-foreground: oklch(0.425 0.127 309.754);
--secondary: oklch(0.226 0.001 312.319);
--secondary-foreground: oklch(0.772 0.002 312.336);
--accent: oklch(0.294 0.013 312.039);
--accent-foreground: oklch(0.823 0.012 312.25);
--destructive: oklch(0.572 0.225 30.048);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.963 0.012 312.263);
--chart-1: oklch(0.963 0.012 312.263);
--chart-2: oklch(0.226 0.001 312.319);
--chart-3: oklch(0.294 0.013 312.039);
--chart-4: oklch(0.258 0.001 312.316);
--chart-5: oklch(0.963 0.013 312.256);
}