Mobster is a shadcn/ui theme built around a muted blue primary color (#6d7797) with muted yellow accents (#978d6d). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the muted blue primary (#6d7797) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #000000black |
| Foreground | #020408black | #ffffffwhite |
| Card | #f2f5fcaliceblue | #030303black |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #f7f8fdghostwhite | #000000black |
| Popover foreground | #020408black | #ffffffwhite |
| Primary | #6d7797slategray | #6d7797slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #978d6dgray | #978d6dgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #ecece9linen | #161513black |
| Muted foreground | #514f48darkslategray | #b7b5aedarkgray |
| Accent | #978d6dgray | #978d6dgray |
| Accent foreground | #000000black | #000000black |
| Destructive | #a33c0fsaddlebrown | #d24d14chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d7797slategray | #6d7797slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 4.41:1 | AA Large |
| Secondary button | 6.33:1 | AA |
| Muted text | 6.90:1 | AA |
| Accent | 6.33:1 | AA |
| Destructive | 6.54:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 4.41:1 | AA Large |
| Secondary button | 6.33:1 | AA |
| Muted text | 8.87:1 | AAA |
| Accent | 6.33:1 | AA |
| Destructive | 4.37:1 | AA Large |
Paste this into your globals.css to use Mobster in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 271.344);
--foreground: oklch(0.103 0.017 263.093);
--muted: oklch(0.942 0.004 91.445);
--muted-foreground: oklch(0.427 0.012 91.623);
--popover: oklch(0.98 0.007 271.344);
--popover-foreground: oklch(0.103 0.017 263.093);
--card: oklch(0.97 0.01 271.309);
--card-foreground: oklch(0.082 0.013 263.093);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.574 0.051 270.377);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.643 0.047 91.813);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.643 0.047 91.813);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.495 0.147 39.943);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.574 0.051 270.377);
--chart-1: oklch(0.574 0.051 270.377);
--chart-2: oklch(0.643 0.047 91.813);
--chart-3: oklch(0.643 0.047 91.813);
--chart-4: oklch(0.666 0.044 91.802);
--chart-5: oklch(0.569 0.06 270.139);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.006 91.632);
--muted-foreground: oklch(0.772 0.01 91.519);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.574 0.051 270.377);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.643 0.047 91.813);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.643 0.047 91.813);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.594 0.179 39.581);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.574 0.051 270.377);
--chart-1: oklch(0.574 0.051 270.377);
--chart-2: oklch(0.643 0.047 91.813);
--chart-3: oklch(0.643 0.047 91.813);
--chart-4: oklch(0.666 0.044 91.802);
--chart-5: oklch(0.569 0.06 270.139);
}