Accountability for shadcn/ui

Accountability is a shadcn/ui theme built around a light cyan primary color (#eef8fc) with light blue accents (#eef1fc). The light mode uses a neutral background (#ffffff). Dark mode keeps the light cyan primary (#eef8fc) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#031117black
#fcfdfdwhite
Card
#ffffffwhite
#000000black
Card foreground
#031117black
#fcfdfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#031117black
#fcfdfdwhite
Primary
#eef8fcaliceblue
#eef8fcaliceblue
Primary foreground
#0c3545darkslategray
#0c3545darkslategray
Secondary
#eefcf9azure
#eefcf9azure
Secondary foreground
#0c4539darkslategray
#0c4539darkslategray
Muted
#cae8e1gainsboro
#17352fdarkslategray
Muted foreground
#3d514ddarkslategray
#aec2bdsilver
Accent
#eef1fcaliceblue
#eef1fcaliceblue
Accent foreground
#1c379cdarkslateblue
#1c379cdarkslateblue
Destructive
#d94602orangered
#fd631corangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eef8fcaliceblue
#eef8fcaliceblue

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button12.07:1AAA
Secondary button10.33:1AAA
Muted text6.48:1AA
Accent8.95:1AAA
Destructive4.34:1AA Large
Dark mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button12.07:1AAA
Secondary button10.33:1AAA
Muted text7.07:1AAA
Accent8.95:1AAA
Destructive6.96:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.167 0.025 223.42);
  --muted: oklch(0.906 0.033 181.037);
  --muted-foreground: oklch(0.418 0.026 180.231);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.167 0.025 223.42);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.167 0.025 223.42);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.972 0.012 223.26);
  --primary-foreground: oklch(0.31 0.053 228.759);
  --secondary: oklch(0.979 0.016 181.622);
  --secondary-foreground: oklch(0.353 0.061 174.453);
  --accent: oklch(0.958 0.015 273.679);
  --accent-foreground: oklch(0.389 0.167 266.31);
  --destructive: oklch(0.598 0.193 38.409);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.972 0.012 223.26);
  --chart-1: oklch(0.972 0.012 223.26);
  --chart-2: oklch(0.979 0.016 181.622);
  --chart-3: oklch(0.958 0.015 273.679);
  --chart-4: oklch(0.995 0.004 181.958);
  --chart-5: oklch(0.972 0.013 223.265);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 223.14);
  --muted: oklch(0.304 0.038 177.749);
  --muted-foreground: oklch(0.796 0.023 181.258);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 223.14);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 223.14);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.972 0.012 223.26);
  --primary-foreground: oklch(0.31 0.053 228.759);
  --secondary: oklch(0.979 0.016 181.622);
  --secondary-foreground: oklch(0.353 0.061 174.453);
  --accent: oklch(0.958 0.015 273.679);
  --accent-foreground: oklch(0.389 0.167 266.31);
  --destructive: oklch(0.689 0.202 40.882);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.972 0.012 223.26);
  --chart-1: oklch(0.972 0.012 223.26);
  --chart-2: oklch(0.979 0.016 181.622);
  --chart-3: oklch(0.958 0.015 273.679);
  --chart-4: oklch(0.995 0.004 181.958);
  --chart-5: oklch(0.972 0.013 223.265);
}