Serene is a shadcn/ui theme built around a vivid violet primary color (#7004be) with vivid green accents (#51be04). The light mode uses a neutral background (#faf6fd). Dark mode keeps the vivid violet primary (#7004be) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #faf6fdghostwhite | #050307black |
| Foreground | #08030cblack | #f8f6f8whitesmoke |
| Card | #faf6fdghostwhite | #050307black |
| Card foreground | #08030cblack | #f8f6f8whitesmoke |
| Popover | #faf6fdghostwhite | #050307black |
| Popover foreground | #08030cblack | #f8f6f8whitesmoke |
| Primary | #7004bedarkviolet | #7004bedarkviolet |
| Primary foreground | #fbf5ffghostwhite | #fbf5ffghostwhite |
| Secondary | #51be04limegreen | #51be04limegreen |
| Secondary foreground | #000000black | #000000black |
| Muted | #edefeblinen | #121410black |
| Muted foreground | #5a6751dimgray | #a1ae98darkgray |
| Accent | #51be04limegreen | #51be04limegreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #b61911firebrick | #ec3f36tomato |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7004bedarkviolet | #7004bedarkviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 8.71:1 | AAA |
| Muted text | 5.19:1 | AA |
| Accent | 8.71:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 8.71:1 | AAA |
| Muted text | 7.98:1 | AAA |
| Accent | 8.71:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Serene in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.01 311.641);
--foreground: oklch(0.117 0.028 313.352);
--muted: oklch(0.949 0.005 131.769);
--muted-foreground: oklch(0.496 0.038 132.373);
--popover: oklch(0.98 0.01 311.641);
--popover-foreground: oklch(0.117 0.028 313.352);
--card: oklch(0.98 0.01 311.641);
--card-foreground: oklch(0.117 0.028 313.352);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.449 0.236 301.717);
--primary-foreground: oklch(0.977 0.014 311.607);
--secondary: oklch(0.709 0.217 137.672);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.709 0.217 137.672);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.497 0.19 29.252);
--destructive-foreground: oklch(0.99 0.004 20.944);
--ring: oklch(0.449 0.236 301.717);
--chart-1: oklch(0.449 0.236 301.717);
--chart-2: oklch(0.709 0.217 137.672);
--chart-3: oklch(0.709 0.217 137.672);
--chart-4: oklch(0.75 0.23 137.735);
--chart-5: oklch(0.452 0.239 301.274);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.016 312.995);
--foreground: oklch(0.976 0.003 311.699);
--muted: oklch(0.186 0.008 132.075);
--muted-foreground: oklch(0.735 0.034 132.113);
--popover: oklch(0.107 0.016 312.995);
--popover-foreground: oklch(0.976 0.003 311.699);
--card: oklch(0.107 0.016 312.995);
--card-foreground: oklch(0.976 0.003 311.699);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.449 0.236 301.717);
--primary-foreground: oklch(0.977 0.014 311.607);
--secondary: oklch(0.709 0.217 137.672);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.709 0.217 137.672);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.627 0.211 28.009);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.449 0.236 301.717);
--chart-1: oklch(0.449 0.236 301.717);
--chart-2: oklch(0.709 0.217 137.672);
--chart-3: oklch(0.709 0.217 137.672);
--chart-4: oklch(0.75 0.23 137.735);
--chart-5: oklch(0.452 0.239 301.274);
}