Mainland for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.59:1AAA
Text on card19.45:1AAA
Primary button7.86:1AAA
Secondary button7.83:1AAA
Muted text7.26:1AAA
Accent7.57:1AAA
Destructive6.14:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.31:1AAA
Primary button7.86:1AAA
Secondary button7.83:1AAA
Muted text8.74:1AAA
Accent7.57:1AAA
Destructive6.21:1AA

CSS variables

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);
}