Digital Innovation for shadcn/ui

Digital Innovation is a shadcn/ui theme built around a vivid deep indigo primary color (#000075) with muted light indigo accents (#e3e3e8). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid deep indigo primary (#000075) on a neutral background (#010400).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#010400black
Foreground
#050514black
#06ffa2mediumspringgreen
Card
#f8f8fcghostwhite
#010400black
Card foreground
#040410black
#f8f8fbghostwhite
Popover
#f8f8fcghostwhite
#010400black
Popover foreground
#040410black
#f8f8fbghostwhite
Primary
#000075navy
#000075navy
Primary foreground
#a8a8fflightsteelblue
#cee5f2lavender
Secondary
#e3e3e8gainsboro
#23ce6bmediumseagreen
Secondary foreground
#444455darkslategray
#c5c5d3lightgrey
Muted
#d1d1e1lightgrey
#1e1e2edarkslategray
Muted foreground
#494950darkslategray
#afafb6darkgray
Accent
#e3e3e8gainsboro
#2c2c3adarkslategray
Accent foreground
#444455darkslategray
#c5c5d3lightgrey
Destructive
#d41a0cfirebrick
#f12213red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8e8edlavender
#22222adarkslategray
Input
#e8e8edlavender
#22222adarkslategray
Ring
#000075navy
#000075navy

Contrast

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

Light mode
Text on background19.66:1AAA
Text on card19.27:1AAA
Primary button7.71:1AAA
Secondary button7.43:1AAA
Muted text5.90:1AA
Accent7.43:1AAA
Destructive5.31:1AA
Dark mode
Text on background15.54:1AAA
Text on card19.45:1AAA
Primary button12.80:1AAA
Secondary button1.21:1Fail
Muted text7.50:1AAA
Accent8.01:1AAA
Destructive4.21:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 286.359);
  --foreground: oklch(0.128 0.035 280.295);
  --muted: oklch(0.865 0.022 285.93);
  --muted-foreground: oklch(0.409 0.01 285.944);
  --popover: oklch(0.981 0.004 286.317);
  --popover-foreground: oklch(0.118 0.03 280.717);
  --card: oklch(0.981 0.004 286.317);
  --card-foreground: oklch(0.118 0.03 280.717);
  --border: oklch(0.933 0.006 286.283);
  --input: oklch(0.933 0.006 286.283);
  --primary: oklch(0.255 0.176 264.052);
  --primary-foreground: oklch(0.766 0.123 283.106);
  --secondary: oklch(0.917 0.008 286.25);
  --secondary-foreground: oklch(0.394 0.028 285.028);
  --accent: oklch(0.917 0.008 286.25);
  --accent-foreground: oklch(0.394 0.028 285.028);
  --destructive: oklch(0.554 0.216 29.751);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.176 264.052);
  --chart-1: oklch(0.255 0.176 264.052);
  --chart-2: oklch(0.917 0.008 286.25);
  --chart-3: oklch(0.917 0.008 286.25);
  --chart-4: oklch(0.942 0.005 286.298);
  --chart-5: oklch(0.255 0.18 263.346);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.028 134.806);
  --foreground: oklch(0.881 0.205 158.007);
  --muted: oklch(0.244 0.03 283.913);
  --muted-foreground: oklch(0.757 0.009 286.191);
  --popover: oklch(0.095 0.028 134.806);
  --popover-foreground: oklch(0.981 0.004 286.327);
  --card: oklch(0.095 0.028 134.806);
  --card-foreground: oklch(0.981 0.004 286.327);
  --border: oklch(0.256 0.016 285.235);
  --input: oklch(0.256 0.016 285.235);
  --primary: oklch(0.255 0.176 264.052);
  --primary-foreground: oklch(0.909 0.03 232.445);
  --secondary: oklch(0.748 0.191 151.301);
  --secondary-foreground: oklch(0.829 0.018 285.992);
  --accent: oklch(0.3 0.024 284.875);
  --accent-foreground: oklch(0.829 0.018 285.992);
  --destructive: oklch(0.612 0.237 29.732);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.255 0.176 264.052);
  --chart-1: oklch(0.255 0.176 264.052);
  --chart-2: oklch(0.3 0.024 284.875);
  --chart-3: oklch(0.3 0.024 284.875);
  --chart-4: oklch(0.328 0.027 284.823);
  --chart-5: oklch(0.255 0.18 263.346);
}