Mainland is a shadcn/ui theme built around a light orange primary color (#e1ccad) with light green accents (#dce1ad). The light mode uses a neutral background (#ffffff). Dark mode keeps the light orange primary (#e1ccad) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030302black |
| Foreground | #100b04black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #070503black |
| Card foreground | #0c0903black | #ffffffwhite |
| Popover | #fcfcfcsnow | #070503black |
| Popover foreground | #0c0903black | #ffffffwhite |
| Primary | #e1ccadwheat | #e1ccadwheat |
| Primary foreground | #433219darkolivegreen | #433219darkolivegreen |
| Secondary | #e1b2adlightpink | #e1b2adlightpink |
| Secondary foreground | #431d19maroon | #431d19maroon |
| Muted | #ebe6e5linen | #1a1514black |
| Muted foreground | #4d4847darkslategray | #b8b3b2darkgray |
| Accent | #dce1adpalegoldenrod | #dce1adpalegoldenrod |
| Accent foreground | #3f4319darkolivegreen | #3f4319darkolivegreen |
| Destructive | #a02f0dbrown | #ee5c2ftomato |
| Destructive foreground | #fde9e3mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e1ccadwheat | #e1ccadwheat |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 7.26:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 8.74:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 6.21:1 | AA |
Paste this into your globals.css to use Mainland in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.155 0.019 81.506);
--muted: oklch(0.928 0.006 25.042);
--muted-foreground: oklch(0.405 0.007 25.144);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.14 0.016 84.823);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.14 0.016 84.823);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.855 0.047 77.986);
--primary-foreground: oklch(0.33 0.046 76.158);
--secondary: oklch(0.805 0.055 25.692);
--secondary-foreground: oklch(0.285 0.06 27.932);
--accent: oklch(0.892 0.068 112.418);
--accent-foreground: oklch(0.369 0.063 114.265);
--destructive: oklch(0.475 0.155 35.809);
--destructive-foreground: oklch(0.948 0.023 37.644);
--ring: oklch(0.855 0.047 77.986);
--chart-1: oklch(0.855 0.047 77.986);
--chart-2: oklch(0.805 0.055 25.692);
--chart-3: oklch(0.892 0.068 112.418);
--chart-4: oklch(0.831 0.047 25.547);
--chart-5: oklch(0.856 0.05 77.952);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.006 82.351);
--foreground: oklch(0.993 0.002 78.308);
--muted: oklch(0.2 0.009 25.412);
--muted-foreground: oklch(0.77 0.006 25.055);
--popover: oklch(0.119 0.008 82.351);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.119 0.008 82.351);
--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.855 0.047 77.986);
--primary-foreground: oklch(0.33 0.046 76.158);
--secondary: oklch(0.805 0.055 25.692);
--secondary-foreground: oklch(0.285 0.06 27.932);
--accent: oklch(0.892 0.068 112.418);
--accent-foreground: oklch(0.369 0.063 114.265);
--destructive: oklch(0.659 0.19 36.938);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.855 0.047 77.986);
--chart-1: oklch(0.855 0.047 77.986);
--chart-2: oklch(0.805 0.055 25.692);
--chart-3: oklch(0.892 0.068 112.418);
--chart-4: oklch(0.831 0.047 25.547);
--chart-5: oklch(0.856 0.05 77.952);
}