Colorless for shadcn/ui

Colorless is a shadcn/ui theme built around a muted light blue primary color (#e3e5e8) with muted light orange accents (#e8e5e3). The light mode uses a neutral background (#f7fafc). Dark mode keeps the muted light blue primary (#e3e5e8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fafcghostwhite
#000000black
Foreground
#02080dblack
#f9fafbghostwhite
Card
#f7fafcghostwhite
#000000black
Card foreground
#02080dblack
#f9fafbghostwhite
Popover
#f7fafcghostwhite
#000000black
Popover foreground
#02080dblack
#f9fafbghostwhite
Primary
#e3e5e8gainsboro
#e3e5e8gainsboro
Primary foreground
#444d55darkslategray
#444d55darkslategray
Secondary
#e8e5e3gainsboro
#e8e5e3gainsboro
Secondary foreground
#554d44darkolivegreen
#554d44darkolivegreen
Muted
#ecebe9linen
#161413black
Muted foreground
#594f45darkolivegreen
#bab0a6darkgray
Accent
#e8e5e3gainsboro
#e8e5e3gainsboro
Accent foreground
#554d44darkolivegreen
#554d44darkolivegreen
Destructive
#65250bmaroon
#e6571echocolate
Destructive foreground
#f6c1aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3e5e8gainsboro
#e3e5e8gainsboro

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button6.84:1AA
Secondary button6.64:1AA
Muted text6.68:1AA
Accent6.64:1AA
Destructive7.22:1AAA
Dark mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button6.84:1AA
Secondary button6.64:1AA
Muted text8.59:1AAA
Accent6.64:1AA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.004 247.867);
  --foreground: oklch(0.127 0.019 238.478);
  --muted: oklch(0.94 0.003 67.789);
  --muted-foreground: oklch(0.435 0.021 67.214);
  --popover: oklch(0.984 0.004 247.867);
  --popover-foreground: oklch(0.127 0.019 238.478);
  --card: oklch(0.984 0.004 247.867);
  --card-foreground: oklch(0.127 0.019 238.478);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.922 0.005 247.877);
  --primary-foreground: oklch(0.414 0.018 248.257);
  --secondary: oklch(0.925 0.005 67.764);
  --secondary-foreground: oklch(0.424 0.018 67.321);
  --accent: oklch(0.925 0.005 67.764);
  --accent-foreground: oklch(0.424 0.018 67.321);
  --destructive: oklch(0.355 0.1 39.908);
  --destructive-foreground: oklch(0.853 0.067 42.613);
  --ring: oklch(0.922 0.005 247.877);
  --chart-1: oklch(0.922 0.005 247.877);
  --chart-2: oklch(0.925 0.005 67.764);
  --chart-3: oklch(0.925 0.005 67.764);
  --chart-4: oklch(0.948 0.003 67.782);
  --chart-5: oklch(0.922 0.006 247.892);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 247.844);
  --muted: oklch(0.194 0.004 67.579);
  --muted-foreground: oklch(0.763 0.019 67.543);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 247.844);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.002 247.844);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.922 0.005 247.877);
  --primary-foreground: oklch(0.414 0.018 248.257);
  --secondary: oklch(0.925 0.005 67.764);
  --secondary-foreground: oklch(0.424 0.018 67.321);
  --accent: oklch(0.925 0.005 67.764);
  --accent-foreground: oklch(0.424 0.018 67.321);
  --destructive: oklch(0.639 0.189 39.198);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.922 0.005 247.877);
  --chart-1: oklch(0.922 0.005 247.877);
  --chart-2: oklch(0.925 0.005 67.764);
  --chart-3: oklch(0.925 0.005 67.764);
  --chart-4: oklch(0.948 0.003 67.782);
  --chart-5: oklch(0.922 0.006 247.892);
}