Appropriate for shadcn/ui

Appropriate is a shadcn/ui theme built around a light indigo primary color (#a89df0) with muted indigo accents (#ada9c6). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#a89df0) on an indigo-tinted background (#05040b).

Color palette

TokenLightDark
Background
#ffffffwhite
#05040bblack
Foreground
#050311black
#f6f5fawhitesmoke
Card
#ffffffwhite
#05040bblack
Card foreground
#050311black
#f6f5fawhitesmoke
Popover
#ffffffwhite
#05040bblack
Popover foreground
#050311black
#f6f5fawhitesmoke
Primary
#a89df0lightsteelblue
#a89df0lightsteelblue
Primary foreground
#150c50midnightblue
#150c50midnightblue
Secondary
#c8c6d2lightgrey
#24232fdarkslategray
Secondary foreground
#2f2d39darkslategray
#bbb9cbsilver
Muted
#ebeaf0lavender
#100f15black
Muted foreground
#545355dimgray
#aaaaacdarkgray
Accent
#ada9c6darkgray
#373252darkslategray
Accent foreground
#1a1825black
#d5d3e4gainsboro
Destructive
#ab1507firebrick
#e11b09red
Destructive foreground
#fee8e7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a89df0lightsteelblue
#a89df0lightsteelblue

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button7.32:1AAA
Secondary button8.03:1AAA
Muted text6.40:1AA
Accent7.73:1AAA
Destructive6.28:1AA
Dark mode
Text on background18.78:1AAA
Text on card18.78:1AAA
Primary button7.32:1AAA
Secondary button8.06:1AAA
Muted text8.22:1AAA
Accent8.17:1AAA
Destructive4.80:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.116 0.036 288.426);
  --muted: oklch(0.94 0.008 292.39);
  --muted-foreground: oklch(0.444 0.003 292.428);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.116 0.036 288.426);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.116 0.036 288.426);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.739 0.119 289.267);
  --primary-foreground: oklch(0.227 0.115 278.032);
  --secondary: oklch(0.832 0.016 292.19);
  --secondary-foreground: oklch(0.305 0.02 291.273);
  --accent: oklch(0.748 0.041 291.497);
  --accent-foreground: oklch(0.219 0.024 290.397);
  --destructive: oklch(0.474 0.184 30.115);
  --destructive-foreground: oklch(0.949 0.024 23.839);
  --ring: oklch(0.739 0.119 289.267);
  --chart-1: oklch(0.739 0.119 289.267);
  --chart-2: oklch(0.832 0.016 292.19);
  --chart-3: oklch(0.748 0.041 291.497);
  --chart-4: oklch(0.858 0.013 292.255);
  --chart-5: oklch(0.735 0.124 289.101);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.018 291.142);
  --foreground: oklch(0.972 0.006 292.421);
  --muted: oklch(0.172 0.012 291.219);
  --muted-foreground: oklch(0.739 0.002 292.483);
  --popover: oklch(0.117 0.018 291.142);
  --popover-foreground: oklch(0.972 0.006 292.421);
  --card: oklch(0.117 0.018 291.142);
  --card-foreground: oklch(0.972 0.006 292.421);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.739 0.119 289.267);
  --primary-foreground: oklch(0.227 0.115 278.032);
  --secondary: oklch(0.262 0.023 290.849);
  --secondary-foreground: oklch(0.792 0.026 291.924);
  --accent: oklch(0.338 0.055 289.202);
  --accent-foreground: oklch(0.873 0.024 292.033);
  --destructive: oklch(0.58 0.227 30.052);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.739 0.119 289.267);
  --chart-1: oklch(0.739 0.119 289.267);
  --chart-2: oklch(0.262 0.023 290.849);
  --chart-3: oklch(0.338 0.055 289.202);
  --chart-4: oklch(0.29 0.026 290.768);
  --chart-5: oklch(0.735 0.124 289.101);
}