Realistic is a shadcn/ui theme built around a vivid deep violet primary color (#090113) with vivid deep green accents (#011309). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid deep violet primary (#090113) on a violet-tinted background (#0a050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #0a050fblack |
| Foreground | #07030cblack | #ffffffwhite |
| Card | #faf7fdghostwhite | #0c0613black |
| Card foreground | #050208black | #ffffffwhite |
| Popover | #fcfbfewhite | #0a050fblack |
| Popover foreground | #07030cblack | #ffffffwhite |
| Primary | #090113black | #090113black |
| Primary foreground | #d3b2faplum | #d3b2faplum |
| Secondary | #130901black | #130901black |
| Secondary foreground | #f49b52sandybrown | #f49b52sandybrown |
| Muted | #f5efealinen | #150f0ablack |
| Muted foreground | #5f5953dimgray | #aca5a0darkgray |
| Accent | #011309black | #011309black |
| Accent foreground | #0dd366springgreen | #0dd366springgreen |
| Destructive | #8f2800saddlebrown | #ff692etomato |
| Destructive foreground | #ffd3c2peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #090113black | #090113black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.83:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 11.21:1 | AAA |
| Secondary button | 9.03:1 | AAA |
| Muted text | 6.06:1 | AA |
| Accent | 9.56:1 | AAA |
| Destructive | 6.20:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 11.21:1 | AAA |
| Secondary button | 9.03:1 | AAA |
| Muted text | 7.84:1 | AAA |
| Accent | 9.56:1 | AAA |
| Destructive | 7.31:1 | AAA |
Paste this into your globals.css to use Realistic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 306.376);
--foreground: oklch(0.115 0.026 307.569);
--muted: oklch(0.956 0.009 62.068);
--muted-foreground: oklch(0.467 0.013 61.829);
--popover: oklch(0.99 0.004 306.376);
--popover-foreground: oklch(0.115 0.026 307.569);
--card: oklch(0.98 0.008 306.322);
--card-foreground: oklch(0.101 0.023 307.846);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.116 0.049 306.118);
--primary-foreground: oklch(0.817 0.104 304.771);
--secondary: oklch(0.152 0.028 70.247);
--secondary-foreground: oklch(0.767 0.138 57.853);
--accent: oklch(0.167 0.035 159.743);
--accent-foreground: oklch(0.759 0.204 150.52);
--destructive: oklch(0.435 0.144 37.515);
--destructive-foreground: oklch(0.9 0.055 42.701);
--ring: oklch(0.116 0.049 306.118);
--chart-1: oklch(0.116 0.049 306.118);
--chart-2: oklch(0.152 0.028 70.247);
--chart-3: oklch(0.167 0.035 159.743);
--chart-4: oklch(0.195 0.04 61.568);
--chart-5: oklch(0.115 0.051 306.134);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.026 306.076);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.014 60.98);
--muted-foreground: oklch(0.726 0.011 61.986);
--popover: oklch(0.13 0.026 306.076);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.03 304.56);
--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.116 0.049 306.118);
--primary-foreground: oklch(0.817 0.104 304.771);
--secondary: oklch(0.152 0.028 70.247);
--secondary-foreground: oklch(0.767 0.138 57.853);
--accent: oklch(0.167 0.035 159.743);
--accent-foreground: oklch(0.759 0.204 150.52);
--destructive: oklch(0.702 0.196 39.962);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.116 0.049 306.118);
--chart-1: oklch(0.116 0.049 306.118);
--chart-2: oklch(0.152 0.028 70.247);
--chart-3: oklch(0.167 0.035 159.743);
--chart-4: oklch(0.195 0.04 61.568);
--chart-5: oklch(0.115 0.051 306.134);
}