Real is a shadcn/ui theme built around a muted deep green primary color (#252c25) with muted deep purple accents (#2c252c). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted deep green primary (#252c25) on a green-tinted background (#051005).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #051005black |
| Foreground | #020d02black | #f9fbf9mintcream |
| Card | #f7fdf7mintcream | #061406black |
| Card foreground | #010902black | #fcfdfcwhite |
| Popover | #fbfefbwhite | #051005black |
| Popover foreground | #020d02black | #f9fbf9mintcream |
| Primary | #252c25darkslategray | #252c25darkslategray |
| Primary foreground | #bcc7bdsilver | #bcc7bdsilver |
| Secondary | #2c252cdarkslategray | #2c252cdarkslategray |
| Secondary foreground | #c7bcc7silver | #c7bcc7silver |
| Muted | #e9e2e8gainsboro | #1d161cblack |
| Muted foreground | #564d56dimgray | #b2a9b2darkgray |
| Accent | #2c252cdarkslategray | #2c252cdarkslategray |
| Accent foreground | #c7bcc7silver | #c7bcc7silver |
| Destructive | #aa3803saddlebrown | #fb6723tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #252c25darkslategray | #252c25darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 6.38:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 18.67:1 | AAA |
| Text on card | 18.57:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 7.76:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 7.06:1 | AAA |
Paste this into your globals.css to use Real in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 146.503);
--foreground: oklch(0.143 0.035 144.489);
--muted: oklch(0.921 0.01 326.637);
--muted-foreground: oklch(0.432 0.02 326.931);
--popover: oklch(0.994 0.004 146.503);
--popover-foreground: oklch(0.143 0.035 144.489);
--card: oklch(0.987 0.009 146.465);
--card-foreground: oklch(0.124 0.03 144.535);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.285 0.016 146.025);
--primary-foreground: oklch(0.819 0.019 146.337);
--secondary: oklch(0.276 0.017 327.049);
--secondary-foreground: oklch(0.808 0.019 326.744);
--accent: oklch(0.276 0.017 327.049);
--accent-foreground: oklch(0.808 0.019 326.744);
--destructive: oklch(0.502 0.158 39.252);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.285 0.016 146.025);
--chart-1: oklch(0.285 0.016 146.025);
--chart-2: oklch(0.276 0.017 327.049);
--chart-3: oklch(0.276 0.017 327.049);
--chart-4: oklch(0.306 0.019 327.07);
--chart-5: oklch(0.287 0.022 145.854);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.03 144.898);
--foreground: oklch(0.985 0.002 146.522);
--muted: oklch(0.212 0.015 327.126);
--muted-foreground: oklch(0.744 0.017 326.741);
--popover: oklch(0.156 0.03 144.898);
--popover-foreground: oklch(0.985 0.002 146.522);
--card: oklch(0.172 0.035 144.727);
--card-foreground: oklch(0.993 0.001 146.531);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.285 0.016 146.025);
--primary-foreground: oklch(0.819 0.019 146.337);
--secondary: oklch(0.276 0.017 327.049);
--secondary-foreground: oklch(0.808 0.019 326.744);
--accent: oklch(0.276 0.017 327.049);
--accent-foreground: oklch(0.808 0.019 326.744);
--destructive: oklch(0.692 0.195 41.594);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.285 0.016 146.025);
--chart-1: oklch(0.285 0.016 146.025);
--chart-2: oklch(0.276 0.017 327.049);
--chart-3: oklch(0.276 0.017 327.049);
--chart-4: oklch(0.306 0.019 327.07);
--chart-5: oklch(0.287 0.022 145.854);
}