Cross for shadcn/ui

Cross is a shadcn/ui theme built around a muted deep cyan primary color (#131a1b) with muted light cyan accents (#c7d9db). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the muted deep cyan primary (#131a1b) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#010404black
Foreground
#000000black
#ffffffwhite
Card
#f7fcfdghostwhite
#010404black
Card foreground
#000000black
#ffffffwhite
Popover
#f7fcfdghostwhite
#010404black
Popover foreground
#000000black
#ffffffwhite
Primary
#131a1bblack
#131a1bblack
Primary foreground
#a1bbbfdarkgray
#a1bbbfdarkgray
Secondary
#dee6e7gainsboro
#2b3031darkslategray
Secondary foreground
#3e5356darkslategray
#c4c9casilver
Muted
#deebedlavender
#121f21black
Muted foreground
#55696ddimgray
#92a7aadarkgray
Accent
#c7d9dblightgrey
#384a4ddarkslategray
Accent foreground
#2c4144darkslategray
#d6dfe1gainsboro
Destructive
#5d0f09maroon
#d52215firebrick
Destructive foreground
#f6a8a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#131a1bblack
#131a1bblack

Contrast

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

Light mode
Text on background20.33:1AAA
Text on card20.33:1AAA
Primary button8.70:1AAA
Secondary button6.45:1AA
Muted text4.73:1AA
Accent7.36:1AAA
Destructive7.19:1AAA
Dark mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button8.70:1AAA
Secondary button8.00:1AAA
Muted text6.71:1AA
Accent6.87:1AA
Destructive5.14:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 207.906);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.931 0.013 207.877);
  --muted-foreground: oklch(0.507 0.025 207.842);
  --popover: oklch(0.988 0.006 207.906);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.006 207.906);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.211 0.011 207.851);
  --primary-foreground: oklch(0.774 0.029 207.836);
  --secondary: oklch(0.92 0.009 207.895);
  --secondary-foreground: oklch(0.425 0.026 207.87);
  --accent: oklch(0.871 0.019 207.857);
  --accent-foreground: oklch(0.359 0.027 207.95);
  --destructive: oklch(0.312 0.111 29.231);
  --destructive-foreground: oklch(0.805 0.093 23.866);
  --ring: oklch(0.211 0.011 207.851);
  --chart-1: oklch(0.211 0.011 207.851);
  --chart-2: oklch(0.92 0.009 207.895);
  --chart-3: oklch(0.871 0.019 207.857);
  --chart-4: oklch(0.942 0.006 207.905);
  --chart-5: oklch(0.213 0.013 207.873);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.01 204.792);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.227 0.018 207.961);
  --muted-foreground: oklch(0.713 0.023 207.839);
  --popover: oklch(0.097 0.01 204.792);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.01 204.792);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.211 0.011 207.851);
  --primary-foreground: oklch(0.774 0.029 207.836);
  --secondary: oklch(0.304 0.007 207.856);
  --secondary-foreground: oklch(0.833 0.007 207.9);
  --accent: oklch(0.395 0.024 207.867);
  --accent-foreground: oklch(0.898 0.011 207.885);
  --destructive: oklch(0.562 0.213 29.65);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.211 0.011 207.851);
  --chart-1: oklch(0.211 0.011 207.851);
  --chart-2: oklch(0.304 0.007 207.856);
  --chart-3: oklch(0.395 0.024 207.867);
  --chart-4: oklch(0.335 0.008 207.854);
  --chart-5: oklch(0.213 0.013 207.873);
}