Sore for shadcn/ui

Sore is a shadcn/ui theme built around a deep indigo primary color (#110830) with muted light indigo accents (#d1cfd8). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the deep indigo primary (#110830) on a neutral background (#040407).

Color palette

TokenLightDark
Background
#fcfbfewhite
#040407black
Foreground
#000000black
#faf9fbghostwhite
Card
#fcfbfewhite
#040407black
Card foreground
#000000black
#faf9fbghostwhite
Popover
#fcfbfewhite
#040407black
Popover foreground
#000000black
#faf9fbghostwhite
Primary
#110830black
#110830black
Primary foreground
#9980eamediumpurple
#9980eamediumpurple
Secondary
#d1cfd8lightgrey
#231f2ddarkslategray
Secondary foreground
#383541darkslategray
#b9b4cbsilver
Muted
#ded9edgainsboro
#171226black
Muted foreground
#48464edarkslategray
#b3b1b9darkgray
Accent
#d1cfd8lightgrey
#231f2ddarkslategray
Accent foreground
#383541darkslategray
#b9b4cbsilver
Destructive
#822203maroon
#fa4e14orangered
Destructive foreground
#fecab9peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#110830black
#110830black

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button6.01:1AA
Secondary button7.79:1AAA
Muted text6.74:1AA
Accent7.79:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button6.01:1AA
Secondary button7.99:1AAA
Muted text8.60:1AAA
Accent7.99:1AAA
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 297.023);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.895 0.027 296.534);
  --muted-foreground: oklch(0.398 0.015 296.398);
  --popover: oklch(0.99 0.003 297.023);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.003 297.023);
  --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.18 0.076 286.963);
  --primary-foreground: oklch(0.668 0.155 292.449);
  --secondary: oklch(0.86 0.012 296.827);
  --secondary-foreground: oklch(0.336 0.021 295.958);
  --accent: oklch(0.86 0.012 296.827);
  --accent-foreground: oklch(0.336 0.021 295.958);
  --destructive: oklch(0.405 0.135 36.263);
  --destructive-foreground: oklch(0.88 0.063 39.243);
  --ring: oklch(0.18 0.076 286.963);
  --chart-1: oklch(0.18 0.076 286.963);
  --chart-2: oklch(0.86 0.012 296.827);
  --chart-3: oklch(0.86 0.012 296.827);
  --chart-4: oklch(0.885 0.01 296.879);
  --chart-5: oklch(0.179 0.078 286.393);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.011 296.832);
  --foreground: oklch(0.984 0.002 297.049);
  --muted: oklch(0.2 0.039 293.288);
  --muted-foreground: oklch(0.764 0.013 296.78);
  --popover: oklch(0.107 0.011 296.832);
  --popover-foreground: oklch(0.984 0.002 297.049);
  --card: oklch(0.107 0.011 296.832);
  --card-foreground: oklch(0.984 0.002 297.049);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.18 0.076 286.963);
  --primary-foreground: oklch(0.668 0.155 292.449);
  --secondary: oklch(0.251 0.026 295.156);
  --secondary-foreground: oklch(0.781 0.033 296.321);
  --accent: oklch(0.251 0.026 295.156);
  --accent-foreground: oklch(0.781 0.033 296.321);
  --destructive: oklch(0.661 0.217 36.188);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.18 0.076 286.963);
  --chart-1: oklch(0.18 0.076 286.963);
  --chart-2: oklch(0.251 0.026 295.156);
  --chart-3: oklch(0.251 0.026 295.156);
  --chart-4: oklch(0.279 0.03 295.053);
  --chart-5: oklch(0.179 0.078 286.393);
}