Maldives Mastodon is a shadcn/ui theme built around a vivid cyan primary color (#11b7d4) with muted deep blue accents (#324257). The light mode uses a blue-tinted background (#161d27). Dark mode keeps the vivid cyan primary (#11b7d4) on a blue-tinted background (#161d27).
| Token | Light | Dark |
|---|---|---|
| Background | #161d27black | #161d27black |
| Foreground | #cad1d8lightgrey | #cad1d8lightgrey |
| Card | #131920black | #131920black |
| Card foreground | #d9dde3gainsboro | #d9dde3gainsboro |
| Popover | #11161dblack | #11161dblack |
| Popover foreground | #e7eaeelavender | #e7eaeelavender |
| Primary | #11b7d4darkturquoise | #11b7d4darkturquoise |
| Primary foreground | #021418black | #021418black |
| Secondary | #2d4d53darkslategray | #2d4d53darkslategray |
| Secondary foreground | #cde1e4gainsboro | #cde1e4gainsboro |
| Muted | #24282edarkslategray | #24282edarkslategray |
| Muted foreground | #9ea7b3darkgray | #9ea7b3darkgray |
| Accent | #324257darkslategray | #324257darkslategray |
| Accent foreground | #d5dde7gainsboro | #d5dde7gainsboro |
| Destructive | #fb4632tomato | #fb4632tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #242a33darkslategray | #242a33darkslategray |
| Input | #2a323cdarkslategray | #2a323cdarkslategray |
| Ring | #11b7d4darkturquoise | #11b7d4darkturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.94:1 | AAA |
| Text on card | 13.01:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 6.73:1 | AA |
| Muted text | 6.08:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 3.48:1 | AA Large |
| Text on background | 10.94:1 | AAA |
| Text on card | 13.01:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 6.73:1 | AA |
| Muted text | 6.08:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Maldives Mastodon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.23 0.021 255.29);
--foreground: oklch(0.857 0.013 251.573);
--muted: oklch(0.276 0.012 255.145);
--muted-foreground: oklch(0.725 0.02 255.086);
--popover: oklch(0.199 0.016 255.265);
--popover-foreground: oklch(0.937 0.006 251.5);
--card: oklch(0.209 0.018 255.274);
--card-foreground: oklch(0.897 0.009 251.535);
--border: oklch(0.284 0.018 255.208);
--input: oklch(0.314 0.021 255.215);
--primary: oklch(0.718 0.125 214.875);
--primary-foreground: oklch(0.178 0.027 209.278);
--secondary: oklch(0.398 0.039 209.934);
--secondary-foreground: oklch(0.896 0.021 209.43);
--accent: oklch(0.376 0.042 255.348);
--accent-foreground: oklch(0.894 0.016 255.046);
--destructive: oklch(0.657 0.22 30.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.718 0.125 214.875);
--chart-1: oklch(0.718 0.125 214.875);
--chart-2: oklch(0.398 0.039 209.934);
--chart-3: oklch(0.376 0.042 255.348);
--chart-4: oklch(0.43 0.043 209.959);
--chart-5: oklch(0.725 0.127 215.21);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.23 0.021 255.29);
--foreground: oklch(0.857 0.013 251.573);
--muted: oklch(0.276 0.012 255.145);
--muted-foreground: oklch(0.725 0.02 255.086);
--popover: oklch(0.199 0.016 255.265);
--popover-foreground: oklch(0.937 0.006 251.5);
--card: oklch(0.209 0.018 255.274);
--card-foreground: oklch(0.897 0.009 251.535);
--border: oklch(0.284 0.018 255.208);
--input: oklch(0.314 0.021 255.215);
--primary: oklch(0.718 0.125 214.875);
--primary-foreground: oklch(0.178 0.027 209.278);
--secondary: oklch(0.398 0.039 209.934);
--secondary-foreground: oklch(0.896 0.021 209.43);
--accent: oklch(0.376 0.042 255.348);
--accent-foreground: oklch(0.894 0.016 255.046);
--destructive: oklch(0.657 0.22 30.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.718 0.125 214.875);
--chart-1: oklch(0.718 0.125 214.875);
--chart-2: oklch(0.398 0.039 209.934);
--chart-3: oklch(0.376 0.042 255.348);
--chart-4: oklch(0.43 0.043 209.959);
--chart-5: oklch(0.725 0.127 215.21);
}