Local for shadcn/ui

Local is a shadcn/ui theme built around a deep violet primary color (#3e0c50) with deep teal accents (#0c503e). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the deep violet primary (#3e0c50) on a neutral background (#060407).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#060407black
Foreground
#000000black
#fdfcfdwhite
Card
#fbf7fdghostwhite
#060407black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fbf7fdghostwhite
#060407black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#3e0c50midnightblue
#3e0c50midnightblue
Primary foreground
#da9df0plum
#da9df0plum
Secondary
#503e0cdarkolivegreen
#503e0cdarkolivegreen
Secondary foreground
#f0da9dpalegoldenrod
#f0da9dpalegoldenrod
Muted
#eeece8linen
#171611black
Muted foreground
#64625edimgray
#a19f9bdarkgray
Accent
#0c503edarkslategray
#0c503edarkslategray
Accent foreground
#9df0dapaleturquoise
#9df0dapaleturquoise
Destructive
#691a07maroon
#d8360eorangered
Destructive foreground
#f9b9a9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3e0c50midnightblue
#3e0c50midnightblue

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button7.33:1AAA
Secondary button7.50:1AAA
Muted text5.15:1AA
Accent7.14:1AAA
Destructive7.11:1AAA
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button7.33:1AAA
Secondary button7.50:1AAA
Muted text6.85:1AA
Accent7.14:1AAA
Destructive4.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.01 317.166);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.943 0.006 90.171);
  --muted-foreground: oklch(0.497 0.007 90.223);
  --popover: oklch(0.981 0.01 317.166);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.01 317.166);
  --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.28 0.119 314.911);
  --primary-foreground: oklch(0.784 0.131 316.771);
  --secondary: oklch(0.373 0.069 87.523);
  --secondary-foreground: oklch(0.893 0.082 90.385);
  --accent: oklch(0.386 0.071 169.781);
  --accent-foreground: oklch(0.897 0.087 175.558);
  --destructive: oklch(0.349 0.115 34.521);
  --destructive-foreground: oklch(0.841 0.079 34.494);
  --ring: oklch(0.28 0.119 314.911);
  --chart-1: oklch(0.28 0.119 314.911);
  --chart-2: oklch(0.373 0.069 87.523);
  --chart-3: oklch(0.386 0.071 169.781);
  --chart-4: oklch(0.413 0.077 87.258);
  --chart-5: oklch(0.281 0.122 314.733);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.013 318.213);
  --foreground: oklch(0.992 0.001 317.188);
  --muted: oklch(0.2 0.009 90.387);
  --muted-foreground: oklch(0.704 0.006 90.189);
  --popover: oklch(0.11 0.013 318.213);
  --popover-foreground: oklch(0.992 0.001 317.188);
  --card: oklch(0.11 0.013 318.213);
  --card-foreground: oklch(0.992 0.001 317.188);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.28 0.119 314.911);
  --primary-foreground: oklch(0.784 0.131 316.771);
  --secondary: oklch(0.373 0.069 87.523);
  --secondary-foreground: oklch(0.893 0.082 90.385);
  --accent: oklch(0.386 0.071 169.781);
  --accent-foreground: oklch(0.897 0.087 175.558);
  --destructive: oklch(0.58 0.203 33.716);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.28 0.119 314.911);
  --chart-1: oklch(0.28 0.119 314.911);
  --chart-2: oklch(0.373 0.069 87.523);
  --chart-3: oklch(0.386 0.071 169.781);
  --chart-4: oklch(0.413 0.077 87.258);
  --chart-5: oklch(0.281 0.122 314.733);
}