Messenger is a shadcn/ui theme built around a deep violet primary color (#241334) with deep teal accents (#133424). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#241334) on a violet-tinted background (#08030c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #08030cblack |
| Foreground | #08040cblack | #fcfcfdwhite |
| Card | #ffffffwhite | #08030cblack |
| Card foreground | #08040cblack | #fcfcfdwhite |
| Popover | #ffffffwhite | #08030cblack |
| Popover foreground | #08040cblack | #fcfcfdwhite |
| Primary | #241334midnightblue | #241334midnightblue |
| Primary foreground | #bd9edbplum | #bd9edbplum |
| Secondary | #342413black | #342413black |
| Secondary foreground | #dbbd9etan | #dbbd9etan |
| Muted | #eee8e2linen | #1d1711black |
| Muted foreground | #555453dimgray | #acabaadarkgray |
| Accent | #133424darkslategray | #133424darkslategray |
| Accent foreground | #9edbbdsilver | #9edbbdsilver |
| Destructive | #ca3912firebrick | #ec4e22chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #241334midnightblue | #241334midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.32:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 6.21:1 | AA |
| Accent | 8.61:1 | AAA |
| Destructive | 5.11:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 8.61:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Messenger in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.118 0.023 309.693);
--muted: oklch(0.934 0.01 67.705);
--muted-foreground: oklch(0.447 0.002 67.779);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.118 0.023 309.693);
--card: oklch(1 0 180);
--card-foreground: oklch(0.118 0.023 309.693);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.229 0.064 304.995);
--primary-foreground: oklch(0.748 0.092 307.085);
--secondary: oklch(0.275 0.037 65.235);
--secondary-foreground: oklch(0.816 0.054 66.947);
--accent: oklch(0.295 0.049 159.387);
--accent-foreground: oklch(0.842 0.076 162.508);
--destructive: oklch(0.559 0.187 34.844);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.229 0.064 304.995);
--chart-1: oklch(0.229 0.064 304.995);
--chart-2: oklch(0.275 0.037 65.235);
--chart-3: oklch(0.295 0.049 159.387);
--chart-4: oklch(0.309 0.043 65.016);
--chart-5: oklch(0.228 0.067 304.698);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.027 309.838);
--foreground: oklch(0.991 0.002 308.436);
--muted: oklch(0.209 0.014 66.913);
--muted-foreground: oklch(0.741 0.002 67.799);
--popover: oklch(0.116 0.027 309.838);
--popover-foreground: oklch(0.991 0.002 308.436);
--card: oklch(0.116 0.027 309.838);
--card-foreground: oklch(0.991 0.002 308.436);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.229 0.064 304.995);
--primary-foreground: oklch(0.748 0.092 307.085);
--secondary: oklch(0.275 0.037 65.235);
--secondary-foreground: oklch(0.816 0.054 66.947);
--accent: oklch(0.295 0.049 159.387);
--accent-foreground: oklch(0.842 0.076 162.508);
--destructive: oklch(0.639 0.201 35.475);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.229 0.064 304.995);
--chart-1: oklch(0.229 0.064 304.995);
--chart-2: oklch(0.275 0.037 65.235);
--chart-3: oklch(0.295 0.049 159.387);
--chart-4: oklch(0.309 0.043 65.016);
--chart-5: oklch(0.228 0.067 304.698);
}