Lace for shadcn/ui

Lace is a shadcn/ui theme built around a muted indigo primary color (#44445a) with muted green accents (#445a44). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the muted indigo primary (#44445a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#000000black
Foreground
#010104black
#f8f8fbghostwhite
Card
#f5f5fawhitesmoke
#030303black
Card foreground
#000000black
#fcfcfdwhite
Popover
#f8f8fcghostwhite
#000000black
Popover foreground
#010104black
#f8f8fbghostwhite
Primary
#44445adarkslategray
#44445adarkslategray
Primary foreground
#e5e5eblavender
#e5e5eblavender
Secondary
#5a4444darkolivegreen
#5a4444darkolivegreen
Secondary foreground
#ebe5e5linen
#ebe5e5linen
Muted
#ddd9d9gainsboro
#262222black
Muted foreground
#656261dimgray
#9e9a9adarkgray
Accent
#445a44darkslategray
#445a44darkslategray
Accent foreground
#e5ebe5gainsboro
#e5ebe5gainsboro
Destructive
#a41e0afirebrick
#e32a0dorangered
Destructive foreground
#fde6e2mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#44445adarkslategray
#44445adarkslategray

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.30:1AAA
Primary button7.53:1AAA
Secondary button7.16:1AAA
Muted text4.33:1AA Large
Accent6.20:1AA
Destructive6.35:1AA
Dark mode
Text on background19.81:1AAA
Text on card20.16:1AAA
Primary button7.53:1AAA
Secondary button7.16:1AAA
Muted text5.67:1AA
Accent6.20:1AA
Destructive4.58:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.004 287.089);
  --foreground: oklch(0.073 0.019 281.833);
  --muted: oklch(0.889 0.005 18.441);
  --muted-foreground: oklch(0.498 0.005 18.515);
  --popover: oklch(0.981 0.004 287.089);
  --popover-foreground: oklch(0.073 0.019 281.833);
  --card: oklch(0.971 0.006 287.047);
  --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.396 0.037 285.336);
  --primary-foreground: oklch(0.923 0.009 286.997);
  --secondary: oklch(0.411 0.03 19.582);
  --secondary-foreground: oklch(0.927 0.007 18.475);
  --accent: oklch(0.443 0.044 145.196);
  --accent-foreground: oklch(0.934 0.011 145.959);
  --destructive: oklch(0.465 0.171 31.446);
  --destructive-foreground: oklch(0.942 0.026 28.099);
  --ring: oklch(0.396 0.037 285.336);
  --chart-1: oklch(0.396 0.037 285.336);
  --chart-2: oklch(0.411 0.03 19.582);
  --chart-3: oklch(0.443 0.044 145.196);
  --chart-4: oklch(0.438 0.033 19.601);
  --chart-5: oklch(0.39 0.045 284.858);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.004 287.094);
  --muted: oklch(0.255 0.006 18.755);
  --muted-foreground: oklch(0.688 0.005 18.464);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.981 0.004 287.094);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 287.132);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.396 0.037 285.336);
  --primary-foreground: oklch(0.923 0.009 286.997);
  --secondary: oklch(0.411 0.03 19.582);
  --secondary-foreground: oklch(0.927 0.007 18.475);
  --accent: oklch(0.443 0.044 145.196);
  --accent-foreground: oklch(0.934 0.011 145.959);
  --destructive: oklch(0.59 0.221 31.313);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.396 0.037 285.336);
  --chart-1: oklch(0.396 0.037 285.336);
  --chart-2: oklch(0.411 0.03 19.582);
  --chart-3: oklch(0.443 0.044 145.196);
  --chart-4: oklch(0.438 0.033 19.601);
  --chart-5: oklch(0.39 0.045 284.858);
}