Luminous for shadcn/ui

Luminous is a shadcn/ui theme built around a muted purple primary color (#9e8ca1) with neutral gray accents (#cfc8d0). The light mode uses a neutral background (#fcf6fd). Dark mode keeps the muted purple primary (#9e8ca1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf6fdghostwhite
#000000black
Foreground
#140317black
#ffffffwhite
Card
#fcf6fdghostwhite
#000000black
Card foreground
#140317black
#ffffffwhite
Popover
#fcf6fdghostwhite
#000000black
Popover foreground
#140317black
#ffffffwhite
Primary
#9e8ca1darkgray
#9e8ca1darkgray
Primary foreground
#000000black
#000000black
Secondary
#e1e0e1gainsboro
#241e24black
Secondary foreground
#484649darkslategray
#bfb3c1silver
Muted
#efe5f0lavender
#180f1ablack
Muted foreground
#625f63dimgray
#a09ca0darkgray
Accent
#cfc8d0lightgrey
#433046darkslategray
Accent foreground
#362f37darkslategray
#dacbdcthistle
Destructive
#632103maroon
#f86520chocolate
Destructive foreground
#fcba9cburlywood
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9e8ca1darkgray
#9e8ca1darkgray

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button6.72:1AA
Secondary button7.08:1AAA
Muted text5.13:1AA
Accent7.93:1AAA
Destructive7.21:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.72:1AA
Secondary button8.12:1AAA
Muted text6.91:1AA
Accent7.79:1AAA
Destructive6.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.011 321.624);
  --foreground: oklch(0.146 0.052 322.802);
  --muted: oklch(0.933 0.018 321.646);
  --muted-foreground: oklch(0.49 0.007 321.634);
  --popover: oklch(0.981 0.011 321.624);
  --popover-foreground: oklch(0.146 0.052 322.802);
  --card: oklch(0.981 0.011 321.624);
  --card-foreground: oklch(0.146 0.052 322.802);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.663 0.037 321.744);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.907 0.002 321.598);
  --secondary-foreground: oklch(0.397 0.006 321.633);
  --accent: oklch(0.841 0.012 321.632);
  --accent-foreground: oklch(0.316 0.015 321.724);
  --destructive: oklch(0.346 0.102 41.294);
  --destructive-foreground: oklch(0.843 0.087 45.916);
  --ring: oklch(0.663 0.037 321.744);
  --chart-1: oklch(0.663 0.037 321.744);
  --chart-2: oklch(0.907 0.002 321.598);
  --chart-3: oklch(0.841 0.012 321.632);
  --chart-4: oklch(0.931 0.001 321.597);
  --chart-5: oklch(0.66 0.048 321.789);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.026 321.952);
  --muted-foreground: oklch(0.697 0.007 321.619);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.663 0.037 321.744);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.244 0.015 321.76);
  --secondary-foreground: oklch(0.782 0.023 321.675);
  --accent: oklch(0.339 0.046 321.939);
  --accent-foreground: oklch(0.86 0.027 321.68);
  --destructive: oklch(0.685 0.195 41.39);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.663 0.037 321.744);
  --chart-1: oklch(0.663 0.037 321.744);
  --chart-2: oklch(0.244 0.015 321.76);
  --chart-3: oklch(0.339 0.046 321.939);
  --chart-4: oklch(0.275 0.018 321.77);
  --chart-5: oklch(0.66 0.048 321.789);
}