Back is a shadcn/ui theme built around a vivid blue primary color (#52b4fa) with muted light blue accents (#e7ebef). The light mode uses a neutral background (#f7fafd). Dark mode keeps the vivid blue primary (#52b4fa) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafdghostwhite | #020608black |
| Foreground | #030e17black | #f5f8fawhitesmoke |
| Card | #f3f8fcaliceblue | #04080cblack |
| Card foreground | #020c12black | #f8fafcghostwhite |
| Popover | #f7fafdghostwhite | #020608black |
| Popover foreground | #030e17black | #f5f8fawhitesmoke |
| Primary | #52b4facornflowerblue | #52b4facornflowerblue |
| Primary foreground | #010f19black | #010f19black |
| Secondary | #e7ebeflavender | #1c1f21black |
| Secondary foreground | #415462darkslategray | #b1b9besilver |
| Muted | #eaf1f6whitesmoke | #091015black |
| Muted foreground | #424e57darkslategray | #a8b4bddarkgray |
| Accent | #e7ebeflavender | #1c1f21black |
| Accent foreground | #415462darkslategray | #b1b9besilver |
| Destructive | #c93a13firebrick | #ed623btomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #52b4facornflowerblue | #52b4facornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.62:1 | AAA |
| Text on card | 18.46:1 | AAA |
| Primary button | 8.52:1 | AAA |
| Secondary button | 6.57:1 | AA |
| Muted text | 7.46:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 5.13:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 8.52:1 | AAA |
| Secondary button | 8.32:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 8.32:1 | AAA |
| Destructive | 6.38:1 | AA |
Paste this into your globals.css to use Back in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.005 238.432);
--foreground: oklch(0.158 0.026 237.22);
--muted: oklch(0.953 0.01 238.512);
--muted-foreground: oklch(0.417 0.022 239.156);
--popover: oklch(0.984 0.005 238.432);
--popover-foreground: oklch(0.158 0.026 237.22);
--card: oklch(0.977 0.007 238.468);
--card-foreground: oklch(0.145 0.023 234.339);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.74 0.137 242.838);
--primary-foreground: oklch(0.159 0.032 236.349);
--secondary: oklch(0.938 0.007 238.466);
--secondary-foreground: oklch(0.437 0.033 239.559);
--accent: oklch(0.938 0.007 238.466);
--accent-foreground: oklch(0.437 0.033 239.559);
--destructive: oklch(0.558 0.185 34.932);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.74 0.137 242.838);
--chart-1: oklch(0.74 0.137 242.838);
--chart-2: oklch(0.938 0.007 238.466);
--chart-3: oklch(0.938 0.007 238.466);
--chart-4: oklch(0.962 0.004 238.425);
--chart-5: oklch(0.742 0.14 243.052);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.011 231.651);
--foreground: oklch(0.977 0.004 238.423);
--muted: oklch(0.17 0.015 239.791);
--muted-foreground: oklch(0.764 0.019 238.72);
--popover: oklch(0.115 0.011 231.651);
--popover-foreground: oklch(0.977 0.004 238.423);
--card: oklch(0.131 0.013 232.184);
--card-foreground: oklch(0.985 0.003 238.403);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.74 0.137 242.838);
--primary-foreground: oklch(0.159 0.032 236.349);
--secondary: oklch(0.237 0.007 238.761);
--secondary-foreground: oklch(0.78 0.011 238.569);
--accent: oklch(0.237 0.007 238.761);
--accent-foreground: oklch(0.78 0.011 238.569);
--destructive: oklch(0.665 0.181 36.197);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.74 0.137 242.838);
--chart-1: oklch(0.74 0.137 242.838);
--chart-2: oklch(0.237 0.007 238.761);
--chart-3: oklch(0.237 0.007 238.761);
--chart-4: oklch(0.269 0.008 238.789);
--chart-5: oklch(0.742 0.14 243.052);
}