Lap for shadcn/ui

Lap is a shadcn/ui theme built around a deep red primary color (#623332) with deep indigo accents (#333262). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the deep red primary (#623332) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7f7snow
#000000black
Foreground
#000000black
#faf5f5whitesmoke
Card
#fcf3f3lavenderblush
#030303black
Card foreground
#000000black
#fcf8f8snow
Popover
#fcf3f3lavenderblush
#030303black
Popover foreground
#000000black
#fcf8f8snow
Primary
#623332saddlebrown
#623332saddlebrown
Primary foreground
#ecdadagainsboro
#ecdadagainsboro
Secondary
#326233darkslategray
#326233darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9f1e9honeydew
#0e160eblack
Muted foreground
#545f54dimgray
#a0aba1darkgray
Accent
#333262darkslategray
#333262darkslategray
Accent foreground
#dadaecgainsboro
#dadaecgainsboro
Destructive
#aa4408saddlebrown
#f67d37coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#623332saddlebrown
#623332saddlebrown

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.25:1AAA
Primary button7.66:1AAA
Secondary button7.19:1AAA
Muted text5.81:1AA
Accent8.56:1AAA
Destructive5.93:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.61:1AAA
Primary button7.66:1AAA
Secondary button7.19:1AAA
Muted text7.75:1AAA
Accent8.56:1AAA
Destructive7.89:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 18.459);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.95 0.014 145.935);
  --muted-foreground: oklch(0.471 0.021 145.677);
  --popover: oklch(0.971 0.009 18.51);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.971 0.009 18.51);
  --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.381 0.067 21.733);
  --primary-foreground: oklch(0.903 0.02 18.698);
  --secondary: oklch(0.448 0.09 144.218);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.344 0.081 282.011);
  --accent-foreground: oklch(0.894 0.024 286.661);
  --destructive: oklch(0.518 0.148 43.419);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.381 0.067 21.733);
  --chart-1: oklch(0.381 0.067 21.733);
  --chart-2: oklch(0.448 0.09 144.218);
  --chart-3: oklch(0.344 0.081 282.011);
  --chart-4: oklch(0.48 0.098 144.194);
  --chart-5: oklch(0.38 0.074 22.153);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.973 0.006 18.453);
  --muted: oklch(0.189 0.02 145.127);
  --muted-foreground: oklch(0.73 0.019 145.837);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.982 0.004 18.422);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.982 0.004 18.422);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.381 0.067 21.733);
  --primary-foreground: oklch(0.903 0.02 18.698);
  --secondary: oklch(0.448 0.09 144.218);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.344 0.081 282.011);
  --accent-foreground: oklch(0.894 0.024 286.661);
  --destructive: oklch(0.717 0.168 47.46);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.381 0.067 21.733);
  --chart-1: oklch(0.381 0.067 21.733);
  --chart-2: oklch(0.448 0.09 144.218);
  --chart-3: oklch(0.344 0.081 282.011);
  --chart-4: oklch(0.48 0.098 144.194);
  --chart-5: oklch(0.38 0.074 22.153);
}