XD Theme - MixItUp for shadcn/ui

XD Theme - MixItUp is a shadcn/ui theme built around a vivid light teal primary color (#f0ffff) with muted blue accents (#435675). The light mode uses a blue-tinted background (#273244). Dark mode keeps the vivid light teal primary (#f0ffff) on a blue-tinted background (#273244).

Color palette

TokenLightDark
Background
#273244darkslategray
#273244darkslategray
Foreground
#bec8d5lightsteelblue
#bec8d5lightsteelblue
Card
#232d3edarkslategray
#232d3edarkslategray
Card foreground
#ced5dflightgrey
#ced5dflightgrey
Popover
#222b3adarkslategray
#222b3adarkslategray
Popover foreground
#dde2e9gainsboro
#dde2e9gainsboro
Primary
#f0ffffazure
#f0ffffazure
Primary foreground
#005757darkslategray
#005757darkslategray
Secondary
#2d5353darkslategray
#2d5353darkslategray
Secondary foreground
#cde4e4gainsboro
#cde4e4gainsboro
Muted
#383e47darkslategray
#383e47darkslategray
Muted foreground
#b8bdc7silver
#b8bdc7silver
Accent
#435675darkslateblue
#435675darkslateblue
Accent foreground
#f2f4f8whitesmoke
#f2f4f8whitesmoke
Destructive
#ed6145tomato
#ed6145tomato
Destructive foreground
#000000black
#000000black
Border
#37404edarkslategray
#37404edarkslategray
Input
#3d4757darkslategray
#3d4757darkslategray
Ring
#f0ffffazure
#f0ffffazure

Contrast

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

Light mode
Text on background7.61:1AAA
Text on card9.33:1AAA
Primary button8.17:1AAA
Secondary button6.40:1AA
Muted text5.71:1AA
Accent6.75:1AA
Destructive6.39:1AA
Dark mode
Text on background7.61:1AAA
Text on card9.33:1AAA
Primary button8.17:1AAA
Secondary button6.40:1AA
Muted text5.71:1AA
Accent6.75:1AA
Destructive6.39:1AA

CSS variables

Paste this into your globals.css to use XD Theme - MixItUp in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.316 0.036 259.758);
  --foreground: oklch(0.83 0.021 253.376);
  --muted: oklch(0.362 0.018 259.917);
  --muted-foreground: oklch(0.798 0.015 259.946);
  --popover: oklch(0.287 0.031 259.77);
  --popover-foreground: oklch(0.912 0.011 253.296);
  --card: oklch(0.297 0.033 259.766);
  --card-foreground: oklch(0.871 0.015 253.335);
  --border: oklch(0.368 0.027 259.871);
  --input: oklch(0.396 0.029 259.868);
  --primary: oklch(0.989 0.016 196.897);
  --primary-foreground: oklch(0.413 0.07 194.769);
  --secondary: oklch(0.414 0.044 195.596);
  --secondary-foreground: oklch(0.903 0.024 196.729);
  --accent: oklch(0.451 0.056 259.724);
  --accent-foreground: oklch(0.967 0.005 259.94);
  --destructive: oklch(0.666 0.178 33.108);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.989 0.016 196.897);
  --chart-1: oklch(0.989 0.016 196.897);
  --chart-2: oklch(0.414 0.044 195.596);
  --chart-3: oklch(0.451 0.056 259.724);
  --chart-4: oklch(0.447 0.048 195.577);
  --chart-5: oklch(0.989 0.017 196.89);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.316 0.036 259.758);
  --foreground: oklch(0.83 0.021 253.376);
  --muted: oklch(0.362 0.018 259.917);
  --muted-foreground: oklch(0.798 0.015 259.946);
  --popover: oklch(0.287 0.031 259.77);
  --popover-foreground: oklch(0.912 0.011 253.296);
  --card: oklch(0.297 0.033 259.766);
  --card-foreground: oklch(0.871 0.015 253.335);
  --border: oklch(0.368 0.027 259.871);
  --input: oklch(0.396 0.029 259.868);
  --primary: oklch(0.989 0.016 196.897);
  --primary-foreground: oklch(0.413 0.07 194.769);
  --secondary: oklch(0.414 0.044 195.596);
  --secondary-foreground: oklch(0.903 0.024 196.729);
  --accent: oklch(0.451 0.056 259.724);
  --accent-foreground: oklch(0.967 0.005 259.94);
  --destructive: oklch(0.666 0.178 33.108);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.989 0.016 196.897);
  --chart-1: oklch(0.989 0.016 196.897);
  --chart-2: oklch(0.414 0.044 195.596);
  --chart-3: oklch(0.451 0.056 259.724);
  --chart-4: oklch(0.447 0.048 195.577);
  --chart-5: oklch(0.989 0.017 196.89);
}