soft era is a shadcn/ui theme built around a muted blue primary color (#808693) with muted light red accents (#ddc6c6). The light mode uses a red-tinted background (#f9f5f5). Dark mode keeps the muted blue primary (#808693) on a red-tinted background (#f9f5f5).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f5f5whitesmoke | #f9f5f5whitesmoke |
| Foreground | #764747dimgray | #764747dimgray |
| Card | #f5efefwhitesmoke | #f5efefwhitesmoke |
| Card foreground | #663d3ddarkolivegreen | #663d3ddarkolivegreen |
| Popover | #f4ececlinen | #f4ececlinen |
| Popover foreground | #563434darkslategray | #563434darkslategray |
| Primary | #808693lightslategray | #808693lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #ddc6c6thistle | #ddc6c6thistle |
| Accent foreground | #462a2adarkslategray | #462a2adarkslategray |
| Destructive | #d4130cfirebrick | #d4130cfirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #eee8e8linen | #eee8e8linen |
| Input | #e7dfdfgainsboro | #e7dfdfgainsboro |
| Ring | #808693lightslategray | #808693lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.04:1 | AAA |
| Text on card | 8.04:1 | AAA |
| Primary button | 5.75:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 5.38:1 | AA |
| Text on background | 7.04:1 | AAA |
| Text on card | 8.04:1 | AAA |
| Primary button | 5.75:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 5.38:1 | AA |
Paste this into your globals.css to use soft era in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.974 0.004 17.227);
--foreground: oklch(0.452 0.065 19.92);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.949 0.008 17.302);
--popover-foreground: oklch(0.366 0.05 19.761);
--card: oklch(0.957 0.007 17.277);
--card-foreground: oklch(0.409 0.058 19.851);
--border: oklch(0.934 0.007 17.275);
--input: oklch(0.91 0.009 17.326);
--primary: oklch(0.62 0.021 267.192);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.845 0.026 17.677);
--accent-foreground: oklch(0.32 0.042 19.641);
--destructive: oklch(0.552 0.219 29.193);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.62 0.021 267.192);
--chart-1: oklch(0.62 0.021 267.192);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.845 0.026 17.677);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.615 0.029 267.084);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.974 0.004 17.227);
--foreground: oklch(0.452 0.065 19.92);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.949 0.008 17.302);
--popover-foreground: oklch(0.366 0.05 19.761);
--card: oklch(0.957 0.007 17.277);
--card-foreground: oklch(0.409 0.058 19.851);
--border: oklch(0.934 0.007 17.275);
--input: oklch(0.91 0.009 17.326);
--primary: oklch(0.62 0.021 267.192);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.845 0.026 17.677);
--accent-foreground: oklch(0.32 0.042 19.641);
--destructive: oklch(0.552 0.219 29.193);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.62 0.021 267.192);
--chart-1: oklch(0.62 0.021 267.192);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.845 0.026 17.677);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.615 0.029 267.084);
}