Accordance for shadcn/ui

Accordance is a shadcn/ui theme built around a deep teal primary color (#051a10) with deep orange accents (#1a1005). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep teal primary (#051a10) on a neutral background (#040705).

Color palette

TokenLightDark
Background
#fbfefcwhite
#040705black
Foreground
#020905black
#f9fbfamintcream
Card
#f7fdfamintcream
#050a08black
Card foreground
#010403black
#fcfdfcwhite
Popover
#fbfefcwhite
#040705black
Popover foreground
#020905black
#f9fbfamintcream
Primary
#051a10black
#051a10black
Primary foreground
#27c478mediumseagreen
#27c478mediumseagreen
Secondary
#10051ablack
#10051ablack
Secondary foreground
#dcc3f3thistle
#dcc3f3thistle
Muted
#edeaf0lavender
#120f15black
Muted foreground
#4d4653darkslategray
#b3acb9darkgray
Accent
#1a1005black
#1a1005black
Accent foreground
#e2aa6esandybrown
#e2aa6esandybrown
Destructive
#7e2e0csaddlebrown
#e55315chocolate
Destructive foreground
#f9d3c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#051a10black
#051a10black

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.96:1AAA
Primary button7.99:1AAA
Secondary button12.42:1AAA
Muted text7.61:1AAA
Accent9.13:1AAA
Destructive6.62:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.54:1AAA
Primary button7.99:1AAA
Secondary button12.42:1AAA
Muted text8.63:1AAA
Accent9.13:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 165.92);
  --foreground: oklch(0.126 0.02 166.231);
  --muted: oklch(0.941 0.009 309.022);
  --muted-foreground: oklch(0.405 0.024 308.493);
  --popover: oklch(0.994 0.004 165.92);
  --popover-foreground: oklch(0.126 0.02 166.231);
  --card: oklch(0.988 0.007 165.82);
  --card-foreground: oklch(0.1 0.016 166.231);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.195 0.034 160.635);
  --primary-foreground: oklch(0.725 0.167 155.842);
  --secondary: oklch(0.148 0.046 306.451);
  --secondary-foreground: oklch(0.854 0.07 308.261);
  --accent: oklch(0.181 0.027 69.106);
  --accent-foreground: oklch(0.778 0.101 67.267);
  --destructive: oklch(0.413 0.119 40.374);
  --destructive-foreground: oklch(0.895 0.049 44.513);
  --ring: oklch(0.195 0.034 160.635);
  --chart-1: oklch(0.195 0.034 160.635);
  --chart-2: oklch(0.148 0.046 306.451);
  --chart-3: oklch(0.181 0.027 69.106);
  --chart-4: oklch(0.178 0.062 304.775);
  --chart-5: oklch(0.196 0.036 160.474);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.009 166.117);
  --foreground: oklch(0.986 0.002 165.973);
  --muted: oklch(0.174 0.014 308.276);
  --muted-foreground: oklch(0.753 0.021 308.834);
  --popover: oklch(0.12 0.009 166.117);
  --popover-foreground: oklch(0.986 0.002 165.973);
  --card: oklch(0.138 0.01 166.117);
  --card-foreground: oklch(0.993 0.001 165.996);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.195 0.034 160.635);
  --primary-foreground: oklch(0.725 0.167 155.842);
  --secondary: oklch(0.148 0.046 306.451);
  --secondary-foreground: oklch(0.854 0.07 308.261);
  --accent: oklch(0.181 0.027 69.106);
  --accent-foreground: oklch(0.778 0.101 67.267);
  --destructive: oklch(0.632 0.192 39.471);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.195 0.034 160.635);
  --chart-1: oklch(0.195 0.034 160.635);
  --chart-2: oklch(0.148 0.046 306.451);
  --chart-3: oklch(0.181 0.027 69.106);
  --chart-4: oklch(0.178 0.062 304.775);
  --chart-5: oklch(0.196 0.036 160.474);
}