Real is a shadcn/ui theme built around a deep blue primary color (#0c0e27) with muted light blue accents (#cacbd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#0c0e27) on a blue-tinted background (#03040c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #03040cblack |
| Foreground | #010209black | #fcfcfdwhite |
| Card | #ffffffwhite | #03040cblack |
| Card foreground | #010209black | #fcfcfdwhite |
| Popover | #ffffffwhite | #03040cblack |
| Popover foreground | #010209black | #fcfcfdwhite |
| Primary | #0c0e27black | #0c0e27black |
| Primary foreground | #8991dcmediumpurple | #8991dcmediumpurple |
| Secondary | #cacbd3lightgrey | #1d1d20black |
| Secondary foreground | #31323adarkslategray | #b3b4bcsilver |
| Muted | #d1d3e5gainsboro | #1a1c2eblack |
| Muted foreground | #404144darkslategray | #bbbbbfsilver |
| Accent | #cacbd3lightgrey | #1d1d20black |
| Accent foreground | #31323adarkslategray | #b3b4bcsilver |
| Destructive | #8a0c0adarkred | #f13a37crimson |
| Destructive foreground | #fbcbcbpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c0e27black | #0c0e27black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.71:1 | AAA |
| Text on card | 20.71:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 7.89:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 8.81:1 | AAA |
| Accent | 8.13:1 | AAA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Real in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.089 0.028 270.212);
--muted: oklch(0.872 0.025 280.815);
--muted-foreground: oklch(0.375 0.006 281.022);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.089 0.028 270.212);
--card: oklch(1 0 180);
--card-foreground: oklch(0.089 0.028 270.212);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.18 0.05 275.367);
--primary-foreground: oklch(0.681 0.11 278.207);
--secondary: oklch(0.844 0.011 281.077);
--secondary-foreground: oklch(0.318 0.015 280.463);
--accent: oklch(0.844 0.011 281.077);
--accent-foreground: oklch(0.318 0.015 280.463);
--destructive: oklch(0.404 0.158 28.625);
--destructive-foreground: oklch(0.885 0.055 19.374);
--ring: oklch(0.18 0.05 275.367);
--chart-1: oklch(0.18 0.05 275.367);
--chart-2: oklch(0.844 0.011 281.077);
--chart-3: oklch(0.844 0.011 281.077);
--chart-4: oklch(0.869 0.009 281.117);
--chart-5: oklch(0.178 0.053 274.904);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.023 274.678);
--foreground: oklch(0.991 0.002 281.259);
--muted: oklch(0.232 0.035 278.456);
--muted-foreground: oklch(0.793 0.005 281.185);
--popover: oklch(0.111 0.023 274.678);
--popover-foreground: oklch(0.991 0.002 281.259);
--card: oklch(0.111 0.023 274.678);
--card-foreground: oklch(0.991 0.002 281.259);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.18 0.05 275.367);
--primary-foreground: oklch(0.681 0.11 278.207);
--secondary: oklch(0.232 0.006 280.835);
--secondary-foreground: oklch(0.772 0.011 281.056);
--accent: oklch(0.232 0.006 280.835);
--accent-foreground: oklch(0.772 0.011 281.056);
--destructive: oklch(0.63 0.219 26.943);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.18 0.05 275.367);
--chart-1: oklch(0.18 0.05 275.367);
--chart-2: oklch(0.232 0.006 280.835);
--chart-3: oklch(0.232 0.006 280.835);
--chart-4: oklch(0.263 0.008 280.802);
--chart-5: oklch(0.178 0.053 274.904);
}