Accordance for shadcn/ui

Accordance is a shadcn/ui theme built around a purple primary color (#683165) with pink accents (#68314a). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#683165) on a neutral background (#080208).

Color palette

TokenLightDark
Background
#fefbfewhite
#080208black
Foreground
#0c030cblack
#fbf9fbsnow
Card
#fefbfewhite
#080208black
Card foreground
#0c030cblack
#fbf9fbsnow
Popover
#fefbfewhite
#080208black
Popover foreground
#0c030cblack
#fbf9fbsnow
Primary
#683165darkslateblue
#683165darkslateblue
Primary foreground
#efdceelavender
#efdceelavender
Secondary
#4f3168darkslateblue
#4f3168darkslateblue
Secondary foreground
#e6dceflavender
#e6dceflavender
Muted
#e9e3eelavender
#18111cblack
Muted foreground
#675c70dimgray
#9a8fa3darkgray
Accent
#68314adimgray
#68314adimgray
Accent foreground
#efdce5mistyrose
#efdce5mistyrose
Destructive
#a64811saddlebrown
#e9702bchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#683165darkslateblue
#683165darkslateblue

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button7.28:1AAA
Secondary button8.03:1AAA
Muted text4.97:1AA
Accent7.54:1AAA
Destructive5.89:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button7.28:1AAA
Secondary button8.03:1AAA
Muted text6.00:1AA
Accent7.54:1AAA
Destructive6.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 327.082);
  --foreground: oklch(0.124 0.03 328.643);
  --muted: oklch(0.922 0.016 310.275);
  --muted-foreground: oklch(0.492 0.035 309.782);
  --popover: oklch(0.991 0.005 327.082);
  --popover-foreground: oklch(0.124 0.03 328.643);
  --card: oklch(0.991 0.005 327.082);
  --card-foreground: oklch(0.124 0.03 328.643);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.407 0.107 329.215);
  --primary-foreground: oklch(0.915 0.031 327.342);
  --secondary: oklch(0.376 0.096 307.809);
  --secondary-foreground: oklch(0.909 0.027 310.163);
  --accent: oklch(0.394 0.085 353.372);
  --accent-foreground: oklch(0.913 0.023 348.486);
  --destructive: oklch(0.517 0.139 45.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.407 0.107 329.215);
  --chart-1: oklch(0.407 0.107 329.215);
  --chart-2: oklch(0.376 0.096 307.809);
  --chart-3: oklch(0.394 0.085 353.372);
  --chart-4: oklch(0.4 0.104 307.762);
  --chart-5: oklch(0.408 0.115 329.357);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.026 328.507);
  --foreground: oklch(0.984 0.004 327.071);
  --muted: oklch(0.193 0.024 309.289);
  --muted-foreground: oklch(0.666 0.032 309.988);
  --popover: oklch(0.108 0.026 328.507);
  --popover-foreground: oklch(0.984 0.004 327.071);
  --card: oklch(0.108 0.026 328.507);
  --card-foreground: oklch(0.984 0.004 327.071);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.407 0.107 329.215);
  --primary-foreground: oklch(0.915 0.031 327.342);
  --secondary: oklch(0.376 0.096 307.809);
  --secondary-foreground: oklch(0.909 0.027 310.163);
  --accent: oklch(0.394 0.085 353.372);
  --accent-foreground: oklch(0.913 0.023 348.486);
  --destructive: oklch(0.679 0.169 46.636);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.407 0.107 329.215);
  --chart-1: oklch(0.407 0.107 329.215);
  --chart-2: oklch(0.376 0.096 307.809);
  --chart-3: oklch(0.394 0.085 353.372);
  --chart-4: oklch(0.4 0.104 307.762);
  --chart-5: oklch(0.408 0.115 329.357);
}