Both is a shadcn/ui theme built around a neutral gray primary color (#e0dcdd) with neutral gray accents (#dce0de). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the neutral gray primary (#e0dcdd) on a pink-tinted background (#0a0507).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0a0507black |
| Foreground | #090104black | #ffffffwhite |
| Card | #faf5f7whitesmoke | #0e0609black |
| Card foreground | #050102black | #ffffffwhite |
| Popover | #fcf8f9snow | #0a0507black |
| Popover foreground | #090104black | #ffffffwhite |
| Primary | #e0dcddgainsboro | #e0dcddgainsboro |
| Primary foreground | #484144darkslategray | #484144darkslategray |
| Secondary | #dce0degainsboro | #dce0degainsboro |
| Secondary foreground | #414846darkslategray | #414846darkslategray |
| Muted | #dee3e1gainsboro | #1c211fblack |
| Muted foreground | #3a4a44darkslategray | #b5c5bfsilver |
| Accent | #dce0degainsboro | #dce0degainsboro |
| Accent foreground | #414846darkslategray | #414846darkslategray |
| Destructive | #6b1b00maroon | #ff571forangered |
| Destructive foreground | #ffb69elightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0dcddgainsboro | #e0dcddgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 7.20:1 | AAA |
| Accent | 7.01:1 | AAA |
| Destructive | 6.98:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 9.08:1 | AAA |
| Accent | 7.01:1 | AAA |
| Destructive | 6.62:1 | AA |
Paste this into your globals.css to use Both in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 352.686);
--foreground: oklch(0.101 0.029 351.986);
--muted: oklch(0.911 0.006 172.39);
--muted-foreground: oklch(0.394 0.022 170.805);
--popover: oklch(0.983 0.004 352.686);
--popover-foreground: oklch(0.101 0.029 351.986);
--card: oklch(0.974 0.006 352.744);
--card-foreground: oklch(0.08 0.023 351.986);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.898 0.004 352.702);
--primary-foreground: oklch(0.385 0.01 353.326);
--secondary: oklch(0.902 0.004 172.449);
--secondary-foreground: oklch(0.396 0.01 171.83);
--accent: oklch(0.902 0.004 172.449);
--accent-foreground: oklch(0.396 0.01 171.83);
--destructive: oklch(0.352 0.118 36.9);
--destructive-foreground: oklch(0.84 0.092 39.21);
--ring: oklch(0.898 0.004 352.702);
--chart-1: oklch(0.898 0.004 352.702);
--chart-2: oklch(0.902 0.004 172.449);
--chart-3: oklch(0.902 0.004 172.449);
--chart-4: oklch(0.925 0.003 172.481);
--chart-5: oklch(0.897 0.006 352.778);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.014 352.355);
--foreground: oklch(1 0 180);
--muted: oklch(0.242 0.008 171.592);
--muted-foreground: oklch(0.808 0.019 171.871);
--popover: oklch(0.125 0.014 352.355);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.016 353.61);
--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.898 0.004 352.702);
--primary-foreground: oklch(0.385 0.01 353.326);
--secondary: oklch(0.902 0.004 172.449);
--secondary-foreground: oklch(0.396 0.01 171.83);
--accent: oklch(0.902 0.004 172.449);
--accent-foreground: oklch(0.396 0.01 171.83);
--destructive: oklch(0.679 0.213 36.896);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.898 0.004 352.702);
--chart-1: oklch(0.898 0.004 352.702);
--chart-2: oklch(0.902 0.004 172.449);
--chart-3: oklch(0.902 0.004 172.449);
--chart-4: oklch(0.925 0.003 172.481);
--chart-5: oklch(0.897 0.006 352.778);
}