Legume for shadcn/ui

Legume is a shadcn/ui theme built around a vivid light violet primary color (#f6ecfe) with vivid light teal accents (#ecfef6). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid light violet primary (#f6ecfe) on a violet-tinted background (#0b0410).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0b0410black
Foreground
#000000black
#f8f5fawhitesmoke
Card
#fdfcfdwhite
#0b0410black
Card foreground
#000000black
#f8f5fawhitesmoke
Popover
#fdfcfdwhite
#0b0410black
Popover foreground
#000000black
#f8f5fawhitesmoke
Primary
#f6ecfeghostwhite
#f6ecfeghostwhite
Primary foreground
#690dabrebeccapurple
#690dabrebeccapurple
Secondary
#fef6ecseashell
#fef6ecseashell
Secondary foreground
#4c2f06saddlebrown
#4c2f06saddlebrown
Muted
#f7f3edlinen
#120e08black
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#ecfef6honeydew
#ecfef6honeydew
Accent foreground
#064c2fdarkslategray
#064c2fdarkslategray
Destructive
#b3170ffirebrick
#ef463etomato
Destructive foreground
#fef6f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6ecfeghostwhite
#f6ecfeghostwhite

Contrast

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

Light mode
Text on background20.45:1AAA
Text on card20.45:1AAA
Primary button8.17:1AAA
Secondary button11.43:1AAA
Muted text6.34:1AA
Accent9.61:1AAA
Destructive6.46:1AA
Dark mode
Text on background18.68:1AAA
Text on card18.68:1AAA
Primary button8.17:1AAA
Secondary button11.43:1AAA
Muted text7.92:1AAA
Accent9.61:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 311.704);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.966 0.009 76.61);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(0.991 0.003 311.704);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.003 311.704);
  --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.956 0.026 311.508);
  --primary-foreground: oklch(0.425 0.214 303.343);
  --secondary: oklch(0.977 0.016 76.572);
  --secondary-foreground: oklch(0.332 0.067 69.386);
  --accent: oklch(0.981 0.021 169.061);
  --accent-foreground: oklch(0.368 0.082 158.717);
  --destructive: oklch(0.491 0.189 29.315);
  --destructive-foreground: oklch(0.979 0.009 21.004);
  --ring: oklch(0.956 0.026 311.508);
  --chart-1: oklch(0.956 0.026 311.508);
  --chart-2: oklch(0.977 0.016 76.572);
  --chart-3: oklch(0.981 0.021 169.061);
  --chart-4: oklch(0.994 0.004 76.634);
  --chart-5: oklch(0.956 0.027 311.501);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.032 311.764);
  --foreground: oklch(0.973 0.007 311.663);
  --muted: oklch(0.165 0.013 76.554);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.13 0.032 311.764);
  --popover-foreground: oklch(0.973 0.007 311.663);
  --card: oklch(0.13 0.032 311.764);
  --card-foreground: oklch(0.973 0.007 311.663);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.956 0.026 311.508);
  --primary-foreground: oklch(0.425 0.214 303.343);
  --secondary: oklch(0.977 0.016 76.572);
  --secondary-foreground: oklch(0.332 0.067 69.386);
  --accent: oklch(0.981 0.021 169.061);
  --accent-foreground: oklch(0.368 0.082 158.717);
  --destructive: oklch(0.639 0.207 27.646);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.956 0.026 311.508);
  --chart-1: oklch(0.956 0.026 311.508);
  --chart-2: oklch(0.977 0.016 76.572);
  --chart-3: oklch(0.981 0.021 169.061);
  --chart-4: oklch(0.994 0.004 76.634);
  --chart-5: oklch(0.956 0.027 311.501);
}