Adjustment for shadcn/ui

Adjustment is a shadcn/ui theme built around a light blue primary color (#c5daed) with light orange accents (#edd7c5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#c5daed) on a blue-tinted background (#04080b).

Color palette

TokenLightDark
Background
#ffffffwhite
#04080bblack
Foreground
#050d14black
#f6f7f9whitesmoke
Card
#fcfcfcsnow
#050b0fblack
Card foreground
#040b10black
#f9fafbghostwhite
Popover
#ffffffwhite
#04080bblack
Popover foreground
#050d14black
#f6f7f9whitesmoke
Primary
#c5daedpowderblue
#c5daedpowderblue
Primary foreground
#1f4261darkslategray
#1f4261darkslategray
Secondary
#edd7c5wheat
#edd7c5wheat
Secondary foreground
#613e1fsaddlebrown
#613e1fsaddlebrown
Muted
#e9dacegainsboro
#312316black
Muted foreground
#555453dimgray
#acabaadarkgray
Accent
#edd7c5wheat
#edd7c5wheat
Accent foreground
#613e1fsaddlebrown
#613e1fsaddlebrown
Destructive
#a83200firebrick
#ff5e19orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5daedpowderblue
#c5daedpowderblue

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.37:1AAA
Primary button7.27:1AAA
Secondary button6.83:1AA
Muted text5.54:1AA
Accent6.83:1AA
Destructive6.69:1AA
Dark mode
Text on background18.75:1AAA
Text on card18.96:1AAA
Primary button7.27:1AAA
Secondary button6.83:1AA
Muted text6.62:1AA
Accent6.83:1AA
Destructive6.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.155 0.02 243.414);
  --muted: oklch(0.898 0.023 63.752);
  --muted-foreground: oklch(0.447 0.002 64.041);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.155 0.02 243.414);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.143 0.017 240.615);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.879 0.034 244.576);
  --primary-foreground: oklch(0.368 0.067 247.248);
  --secondary: oklch(0.893 0.034 63.579);
  --secondary-foreground: oklch(0.397 0.067 60.15);
  --accent: oklch(0.893 0.034 63.579);
  --accent-foreground: oklch(0.397 0.067 60.15);
  --destructive: oklch(0.492 0.161 37.903);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.879 0.034 244.576);
  --chart-1: oklch(0.879 0.034 244.576);
  --chart-2: oklch(0.893 0.034 63.579);
  --chart-3: oklch(0.893 0.034 63.579);
  --chart-4: oklch(0.914 0.027 63.7);
  --chart-5: oklch(0.878 0.036 244.605);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.012 237.72);
  --foreground: oklch(0.977 0.003 244.126);
  --muted: oklch(0.269 0.031 62.096);
  --muted-foreground: oklch(0.741 0.002 64.063);
  --popover: oklch(0.13 0.012 237.72);
  --popover-foreground: oklch(0.977 0.003 244.126);
  --card: oklch(0.143 0.014 241.218);
  --card-foreground: oklch(0.984 0.002 244.113);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.879 0.034 244.576);
  --primary-foreground: oklch(0.368 0.067 247.248);
  --secondary: oklch(0.893 0.034 63.579);
  --secondary-foreground: oklch(0.397 0.067 60.15);
  --accent: oklch(0.893 0.034 63.579);
  --accent-foreground: oklch(0.397 0.067 60.15);
  --destructive: oklch(0.687 0.208 39.512);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.879 0.034 244.576);
  --chart-1: oklch(0.879 0.034 244.576);
  --chart-2: oklch(0.893 0.034 63.579);
  --chart-3: oklch(0.893 0.034 63.579);
  --chart-4: oklch(0.914 0.027 63.7);
  --chart-5: oklch(0.878 0.036 244.605);
}