Famous is a shadcn/ui theme built around a deep blue primary color (#26336d) with deep violet accents (#3d266d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#26336d) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #02040eblack | #f6f6f9whitesmoke |
| Card | #ffffffwhite | #020203black |
| Card foreground | #02040eblack | #f6f6f9whitesmoke |
| Popover | #ffffffwhite | #020203black |
| Popover foreground | #02040eblack | #f6f6f9whitesmoke |
| Primary | #26336dmidnightblue | #26336dmidnightblue |
| Primary foreground | #d5daf0gainsboro | #d5daf0gainsboro |
| Secondary | #26576ddarkslategray | #26576ddarkslategray |
| Secondary foreground | #d5e8f0lavender | #d5e8f0lavender |
| Muted | #e1e4e5gainsboro | #1a1d1eblack |
| Muted foreground | #5b666bdimgray | #949ea4darkgray |
| Accent | #3d266dmidnightblue | #3d266dmidnightblue |
| Accent foreground | #ded5f0gainsboro | #ded5f0gainsboro |
| Destructive | #b02203firebrick | #fb3e13orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #26336dmidnightblue | #26336dmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.46:1 | AAA |
| Text on card | 20.46:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 6.23:1 | AA |
| Muted text | 4.60:1 | AA |
| Accent | 8.73:1 | AAA |
| Destructive | 6.82:1 | AA |
| Text on background | 19.22:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 6.23:1 | AA |
| Muted text | 6.21:1 | AA |
| Accent | 8.73:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Famous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.109 0.028 265.167);
--muted: oklch(0.916 0.003 226.902);
--muted-foreground: oklch(0.504 0.016 227.275);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.109 0.028 265.167);
--card: oklch(1 0 180);
--card-foreground: oklch(0.109 0.028 265.167);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.346 0.102 270.736);
--primary-foreground: oklch(0.893 0.031 275.694);
--secondary: oklch(0.433 0.064 230.839);
--secondary-foreground: oklch(0.92 0.023 227.183);
--accent: oklch(0.34 0.118 293.792);
--accent-foreground: oklch(0.89 0.038 300.07);
--destructive: oklch(0.491 0.18 32.758);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.346 0.102 270.736);
--chart-1: oklch(0.346 0.102 270.736);
--chart-2: oklch(0.433 0.064 230.839);
--chart-3: oklch(0.34 0.118 293.792);
--chart-4: oklch(0.464 0.069 230.931);
--chart-5: oklch(0.343 0.108 270.283);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.007 273.046);
--foreground: oklch(0.974 0.004 276.114);
--muted: oklch(0.227 0.005 227.125);
--muted-foreground: oklch(0.694 0.014 227.127);
--popover: oklch(0.086 0.007 273.046);
--popover-foreground: oklch(0.974 0.004 276.114);
--card: oklch(0.086 0.007 273.046);
--card-foreground: oklch(0.974 0.004 276.114);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.346 0.102 270.736);
--primary-foreground: oklch(0.893 0.031 275.694);
--secondary: oklch(0.433 0.064 230.839);
--secondary-foreground: oklch(0.92 0.023 227.183);
--accent: oklch(0.34 0.118 293.792);
--accent-foreground: oklch(0.89 0.038 300.07);
--destructive: oklch(0.648 0.23 33.096);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.346 0.102 270.736);
--chart-1: oklch(0.346 0.102 270.736);
--chart-2: oklch(0.433 0.064 230.839);
--chart-3: oklch(0.34 0.118 293.792);
--chart-4: oklch(0.464 0.069 230.931);
--chart-5: oklch(0.343 0.108 270.283);
}