Agreeable for shadcn/ui

Agreeable is a shadcn/ui theme built around a near-black primary color (#121311) with muted light red accents (#d3caca). The light mode uses a neutral background (#fdfefb). Dark mode keeps the near-black primary (#121311) on a neutral background (#060703).

Color palette

TokenLightDark
Background
#fdfefbwhite
#060703black
Foreground
#060802black
#f8faf5whitesmoke
Card
#fdfefbwhite
#060703black
Card foreground
#060802black
#f8faf5whitesmoke
Popover
#fdfefbwhite
#060703black
Popover foreground
#060802black
#f8faf5whitesmoke
Primary
#121311black
#121311black
Primary foreground
#acaea7darkgray
#acaea7darkgray
Secondary
#e0e0e0gainsboro
#292c21darkslategray
Secondary foreground
#474747darkslategray
#c3c9b6silver
Muted
#f2eeeewhitesmoke
#10110dblack
Muted foreground
#6b5757dimgray
#a2a894darkgray
Accent
#d3cacalightgrey
#3e452bdarkslategray
Accent foreground
#3a3131darkslategray
#d6dcc7lightgrey
Destructive
#a3310afirebrick
#f15a27chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#121311black
#121311black

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button8.33:1AAA
Secondary button7.06:1AAA
Muted text5.81:1AA
Accent7.86:1AAA
Destructive7.01:1AAA
Dark mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button8.33:1AAA
Secondary button8.37:1AAA
Muted text7.71:1AAA
Accent7.14:1AAA
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 119.381);
  --foreground: oklch(0.128 0.018 119.279);
  --muted: oklch(0.951 0.004 17.232);
  --muted-foreground: oklch(0.477 0.026 18.087);
  --popover: oklch(0.996 0.004 119.381);
  --popover-foreground: oklch(0.128 0.018 119.279);
  --card: oklch(0.996 0.004 119.381);
  --card-foreground: oklch(0.128 0.018 119.279);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.184 0.003 119.578);
  --primary-foreground: oklch(0.748 0.01 119.527);
  --secondary: oklch(0.908 0 180);
  --secondary-foreground: oklch(0.399 0 180);
  --accent: oklch(0.847 0.01 17.348);
  --accent-foreground: oklch(0.323 0.014 17.899);
  --destructive: oklch(0.481 0.157 36.37);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.184 0.003 119.578);
  --chart-1: oklch(0.184 0.003 119.578);
  --chart-2: oklch(0.908 0 180);
  --chart-3: oklch(0.847 0.01 17.348);
  --chart-4: oklch(0.931 0 180);
  --chart-5: oklch(0.185 0.005 119.777);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.012 119.287);
  --foreground: oklch(0.982 0.007 119.423);
  --muted: oklch(0.176 0.008 120.106);
  --muted-foreground: oklch(0.721 0.028 119.975);
  --popover: oklch(0.124 0.012 119.287);
  --popover-foreground: oklch(0.982 0.007 119.423);
  --card: oklch(0.124 0.012 119.287);
  --card-foreground: oklch(0.982 0.007 119.423);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.184 0.003 119.578);
  --primary-foreground: oklch(0.748 0.01 119.527);
  --secondary: oklch(0.286 0.021 120.568);
  --secondary-foreground: oklch(0.826 0.027 119.863);
  --accent: oklch(0.376 0.043 121.334);
  --accent-foreground: oklch(0.883 0.029 119.872);
  --destructive: oklch(0.661 0.196 37.569);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.184 0.003 119.578);
  --chart-1: oklch(0.184 0.003 119.578);
  --chart-2: oklch(0.286 0.021 120.568);
  --chart-3: oklch(0.376 0.043 121.334);
  --chart-4: oklch(0.32 0.024 120.623);
  --chart-5: oklch(0.185 0.005 119.777);
}