Land for shadcn/ui

Land is a shadcn/ui theme built around a vivid red primary color (#fb3254) with muted light red accents (#e1dbdc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#fb3254) on a red-tinted background (#100507).

Color palette

TokenLightDark
Background
#ffffffwhite
#100507black
Foreground
#000000black
#fdfcfcsnow
Card
#ffffffwhite
#100507black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#100507black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#fb3254crimson
#fb3254crimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e1dbdcgainsboro
#181112black
Secondary foreground
#4a3f41darkslategray
#bba0a4darkgray
Muted
#ede8e9linen
#171213black
Muted foreground
#605759dimgray
#a89fa0darkgray
Accent
#e1dbdcgainsboro
#181112black
Accent foreground
#4a3f41darkslategray
#bba0a4darkgray
Destructive
#aa300efirebrick
#ec4213orangered
Destructive foreground
#fdf0ecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fb3254crimson
#fb3254crimson

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button3.69:1AA Large
Secondary button7.39:1AAA
Muted text5.76:1AA
Accent7.39:1AAA
Destructive6.02:1AA
Dark mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button3.69:1AA Large
Secondary button7.69:1AAA
Muted text7.19:1AAA
Accent7.69:1AAA
Destructive3.92:1AA Large

CSS variables

Paste this into your globals.css to use Land in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.935 0.006 5.611);
  --muted-foreground: oklch(0.467 0.012 6.119);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.645 0.232 18.545);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.896 0.006 5.62);
  --secondary-foreground: oklch(0.381 0.016 6.489);
  --accent: oklch(0.896 0.006 5.62);
  --accent-foreground: oklch(0.381 0.016 6.489);
  --destructive: oklch(0.492 0.164 34.918);
  --destructive-foreground: oklch(0.964 0.016 35.966);
  --ring: oklch(0.645 0.232 18.545);
  --chart-1: oklch(0.645 0.232 18.545);
  --chart-2: oklch(0.896 0.006 5.62);
  --chart-3: oklch(0.896 0.006 5.62);
  --chart-4: oklch(0.921 0.005 5.576);
  --chart-5: oklch(0.648 0.236 19.038);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.022 7.032);
  --foreground: oklch(0.992 0.001 5.475);
  --muted: oklch(0.188 0.009 6.661);
  --muted-foreground: oklch(0.709 0.011 5.845);
  --popover: oklch(0.134 0.022 7.032);
  --popover-foreground: oklch(0.992 0.001 5.475);
  --card: oklch(0.134 0.022 7.032);
  --card-foreground: oklch(0.992 0.001 5.475);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.645 0.232 18.545);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.187 0.012 7.057);
  --secondary-foreground: oklch(0.73 0.033 6.612);
  --accent: oklch(0.187 0.012 7.057);
  --accent-foreground: oklch(0.73 0.033 6.612);
  --destructive: oklch(0.626 0.213 34.626);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.645 0.232 18.545);
  --chart-1: oklch(0.645 0.232 18.545);
  --chart-2: oklch(0.187 0.012 7.057);
  --chart-3: oklch(0.187 0.012 7.057);
  --chart-4: oklch(0.218 0.016 7.271);
  --chart-5: oklch(0.648 0.236 19.038);
}