Lute for shadcn/ui

Lute is a shadcn/ui theme built around a vivid light indigo primary color (#9598f4) with muted light indigo accents (#cfd0d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light indigo primary (#9598f4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020308black
#f5f5f9whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#010104black
#f9f9fbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020308black
#f5f5f9whitesmoke
Primary
#9598f4mediumpurple
#9598f4mediumpurple
Primary foreground
#080b4emidnightblue
#080b4emidnightblue
Secondary
#cfd0d8lightgrey
#16161dblack
Secondary foreground
#353541darkslategray
#a8a9bddarkgray
Muted
#cccde5lightgrey
#1a1a33midnightblue
Muted foreground
#53535adimgray
#a5a5acdarkgray
Accent
#cfd0d8lightgrey
#16161dblack
Accent foreground
#353541darkslategray
#a8a9bddarkgray
Destructive
#cb5515chocolate
#e96d2bchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9598f4mediumpurple
#9598f4mediumpurple

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.39:1AAA
Primary button6.90:1AA
Secondary button7.85:1AAA
Muted text4.88:1AA
Accent7.85:1AAA
Destructive4.32:1AA Large
Dark mode
Text on background19.31:1AAA
Text on card19.66:1AAA
Primary button6.90:1AA
Secondary button7.77:1AAA
Muted text6.90:1AA
Accent7.77:1AAA
Destructive6.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.019 280.148);
  --muted: oklch(0.855 0.034 284.091);
  --muted-foreground: oklch(0.446 0.011 284.371);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.019 280.148);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.077 0.015 280.148);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.715 0.133 280.979);
  --primary-foreground: oklch(0.215 0.118 269.451);
  --secondary: oklch(0.859 0.011 284.57);
  --secondary-foreground: oklch(0.334 0.02 283.706);
  --accent: oklch(0.859 0.011 284.57);
  --accent-foreground: oklch(0.334 0.02 283.706);
  --destructive: oklch(0.594 0.165 43.495);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.715 0.133 280.979);
  --chart-1: oklch(0.715 0.133 280.979);
  --chart-2: oklch(0.859 0.011 284.57);
  --chart-3: oklch(0.859 0.011 284.57);
  --chart-4: oklch(0.884 0.009 284.619);
  --chart-5: oklch(0.712 0.138 280.789);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.972 0.005 284.712);
  --muted: oklch(0.233 0.047 280.621);
  --muted-foreground: oklch(0.724 0.01 284.572);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.972 0.005 284.712);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.982 0.004 284.745);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.715 0.133 280.979);
  --primary-foreground: oklch(0.215 0.118 269.451);
  --secondary: oklch(0.204 0.014 283.557);
  --secondary-foreground: oklch(0.739 0.03 284.078);
  --accent: oklch(0.204 0.014 283.557);
  --accent-foreground: oklch(0.739 0.03 284.078);
  --destructive: oklch(0.674 0.171 45.211);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.715 0.133 280.979);
  --chart-1: oklch(0.715 0.133 280.979);
  --chart-2: oklch(0.204 0.014 283.557);
  --chart-3: oklch(0.204 0.014 283.557);
  --chart-4: oklch(0.234 0.017 283.428);
  --chart-5: oklch(0.712 0.138 280.789);
}