IDC Forms 2 for shadcn/ui

IDC Forms 2 is a shadcn/ui theme built around a deep blue primary color (#203760) with muted light blue accents (#dee2e7). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the deep blue primary (#203760) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#030507black
Foreground
#010204black
#fcfcfdwhite
Card
#f3f6fcaliceblue
#05070bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7f9fdghostwhite
#030507black
Popover foreground
#010204black
#fcfcfdwhite
Primary
#203760darkslategray
#203760darkslategray
Primary foreground
#c6d4ecpowderblue
#c6d4ecpowderblue
Secondary
#dee2e7gainsboro
#272a30darkslategray
Secondary foreground
#3e4756darkslategray
#bec3cbsilver
Muted
#edf1f7whitesmoke
#080b12black
Muted foreground
#505968dimgray
#97a0afdarkgray
Accent
#dee2e7gainsboro
#272a30darkslategray
Accent foreground
#3e4756darkslategray
#bec3cbsilver
Destructive
#9f2804firebrick
#fa5e2etomato
Destructive foreground
#fee0d7mistyrose
#000000black
Border
#e3e5e8gainsboro
#191b1fblack
Input
#e3e5e8gainsboro
#191b1fblack
Ring
#203760darkslategray
#203760darkslategray

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.42:1AAA
Primary button7.88:1AAA
Secondary button7.19:1AAA
Muted text6.23:1AA
Accent7.19:1AAA
Destructive6.05:1AA
Dark mode
Text on background19.94:1AAA
Text on card20.18:1AAA
Primary button7.88:1AAA
Secondary button8.12:1AAA
Muted text7.45:1AAA
Accent8.12:1AAA
Destructive6.67:1AA

CSS variables

Paste this into your globals.css to use IDC Forms 2 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 261.513);
  --foreground: oklch(0.084 0.014 250.796);
  --muted: oklch(0.957 0.01 261.509);
  --muted-foreground: oklch(0.461 0.027 261.394);
  --popover: oklch(0.982 0.005 261.513);
  --popover-foreground: oklch(0.084 0.014 250.796);
  --card: oklch(0.973 0.008 261.511);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.921 0.005 261.512);
  --input: oklch(0.921 0.005 261.512);
  --primary: oklch(0.341 0.077 260.64);
  --primary-foreground: oklch(0.866 0.037 261.446);
  --secondary: oklch(0.911 0.009 261.51);
  --secondary-foreground: oklch(0.395 0.028 261.349);
  --accent: oklch(0.911 0.009 261.51);
  --accent-foreground: oklch(0.395 0.028 261.349);
  --destructive: oklch(0.465 0.16 35.012);
  --destructive-foreground: oklch(0.929 0.035 37.614);
  --ring: oklch(0.341 0.077 260.64);
  --chart-1: oklch(0.341 0.077 260.64);
  --chart-2: oklch(0.911 0.009 261.51);
  --chart-3: oklch(0.911 0.009 261.51);
  --chart-4: oklch(0.936 0.006 261.512);
  --chart-5: oklch(0.34 0.082 260.597);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.01 255.959);
  --foreground: oklch(0.992 0.001 261.514);
  --muted: oklch(0.151 0.015 260.25);
  --muted-foreground: oklch(0.704 0.024 261.468);
  --popover: oklch(0.11 0.01 255.959);
  --popover-foreground: oklch(0.992 0.001 261.514);
  --card: oklch(0.126 0.011 256.018);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.222 0.008 261.46);
  --input: oklch(0.222 0.008 261.46);
  --primary: oklch(0.341 0.077 260.64);
  --primary-foreground: oklch(0.866 0.037 261.446);
  --secondary: oklch(0.284 0.012 261.446);
  --secondary-foreground: oklch(0.815 0.013 261.504);
  --accent: oklch(0.284 0.012 261.446);
  --accent-foreground: oklch(0.815 0.013 261.504);
  --destructive: oklch(0.679 0.2 36.788);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.341 0.077 260.64);
  --chart-1: oklch(0.341 0.077 260.64);
  --chart-2: oklch(0.284 0.012 261.446);
  --chart-3: oklch(0.284 0.012 261.446);
  --chart-4: oklch(0.314 0.014 261.441);
  --chart-5: oklch(0.34 0.082 260.597);
}