Landform for shadcn/ui

Landform is a shadcn/ui theme built around a near-white primary color (#f7fff5) with near-white accents (#f5fff7). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f7fff5) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#ffffffwhite
#020401black
Foreground
#081604black
#f9fbf9mintcream
Card
#fcfcfcsnow
#040802black
Card foreground
#071103black
#fcfdfcwhite
Popover
#fcfcfcsnow
#040802black
Popover foreground
#071103black
#fcfdfcwhite
Primary
#f7fff5mintcream
#f7fff5mintcream
Primary foreground
#175b00darkgreen
#175b00darkgreen
Secondary
#fcfff5ivory
#fcfff5ivory
Secondary foreground
#455b00darkolivegreen
#455b00darkolivegreen
Muted
#e8ebe0beige
#1c1f14black
Muted foreground
#5e6057dimgray
#a5a89fdarkgray
Accent
#f5fff7mintcream
#f5fff7mintcream
Accent foreground
#005b17darkgreen
#005b17darkgreen
Destructive
#721f08maroon
#ea3f10orangered
Destructive foreground
#fac2b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7fff5mintcream
#f7fff5mintcream

Contrast

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

Light mode
Text on background18.63:1AAA
Text on card18.84:1AAA
Primary button8.12:1AAA
Secondary button7.55:1AAA
Muted text5.27:1AA
Accent8.18:1AAA
Destructive6.99:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button8.12:1AAA
Secondary button7.55:1AAA
Muted text6.95:1AA
Accent8.18:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.18 0.041 137.093);
  --muted: oklch(0.934 0.014 118.087);
  --muted-foreground: oklch(0.485 0.015 118.359);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.163 0.036 136.436);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.163 0.036 136.436);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.991 0.015 137.789);
  --primary-foreground: oklch(0.414 0.133 140.083);
  --secondary: oklch(0.995 0.013 118.065);
  --secondary-foreground: oklch(0.438 0.109 124.654);
  --accent: oklch(0.99 0.015 153.626);
  --accent-foreground: oklch(0.411 0.127 145.562);
  --destructive: oklch(0.372 0.121 35.233);
  --destructive-foreground: oklch(0.86 0.068 35.994);
  --ring: oklch(0.991 0.015 137.789);
  --chart-1: oklch(0.991 0.015 137.789);
  --chart-2: oklch(0.995 0.013 118.065);
  --chart-3: oklch(0.99 0.015 153.626);
  --chart-4: oklch(1.002 0.007 297.705);
  --chart-5: oklch(0.992 0.016 137.79);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.016 136.159);
  --foreground: oklch(0.986 0.003 137.768);
  --muted: oklch(0.231 0.019 119.32);
  --muted-foreground: oklch(0.726 0.013 118.148);
  --popover: oklch(0.124 0.02 136.159);
  --popover-foreground: oklch(0.993 0.001 137.765);
  --card: oklch(0.124 0.02 136.159);
  --card-foreground: oklch(0.993 0.001 137.765);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.991 0.015 137.789);
  --primary-foreground: oklch(0.414 0.133 140.083);
  --secondary: oklch(0.995 0.013 118.065);
  --secondary-foreground: oklch(0.438 0.109 124.654);
  --accent: oklch(0.99 0.015 153.626);
  --accent-foreground: oklch(0.411 0.127 145.562);
  --destructive: oklch(0.619 0.213 34.449);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.991 0.015 137.789);
  --chart-1: oklch(0.991 0.015 137.789);
  --chart-2: oklch(0.995 0.013 118.065);
  --chart-3: oklch(0.99 0.015 153.626);
  --chart-4: oklch(1.002 0.007 297.705);
  --chart-5: oklch(0.992 0.016 137.79);
}