Information for shadcn/ui

Information is a shadcn/ui theme built around a deep blue primary color (#19496c) with deep orange accents (#6c3b19). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#19496c) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#020c12black
#f6f8f8whitesmoke
Card
#fcfcfcsnow
#020608black
Card foreground
#02090eblack
#f9fafbghostwhite
Popover
#ffffffwhite
#010304black
Popover foreground
#020c12black
#f6f8f8whitesmoke
Primary
#19496cdarkslategray
#19496cdarkslategray
Primary foreground
#c5dff2powderblue
#c5dff2powderblue
Secondary
#6c3b19saddlebrown
#6c3b19saddlebrown
Secondary foreground
#f2d8c5bisque
#f2d8c5bisque
Muted
#ece4dfantiquewhite
#201813black
Muted foreground
#4b413adarkslategray
#c5bbb4silver
Accent
#6c3b19saddlebrown
#6c3b19saddlebrown
Accent foreground
#f2d8c5bisque
#f2d8c5bisque
Destructive
#83260csaddlebrown
#d73e14chocolate
Destructive foreground
#fad2c7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#19496cdarkslategray
#19496cdarkslategray

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.60:1AAA
Primary button6.86:1AA
Secondary button6.74:1AA
Muted text7.92:1AAA
Accent6.74:1AA
Destructive6.74:1AA
Dark mode
Text on background19.40:1AAA
Text on card19.49:1AAA
Primary button6.86:1AA
Secondary button6.74:1AA
Muted text9.24:1AAA
Accent6.74:1AA
Destructive4.58:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0.024 234.214);
  --muted: oklch(0.925 0.01 58.206);
  --muted-foreground: oklch(0.383 0.018 57.69);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.145 0.024 234.214);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.131 0.02 230.126);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.391 0.078 243.626);
  --primary-foreground: oklch(0.89 0.038 238.999);
  --secondary: oklch(0.407 0.084 53.265);
  --secondary-foreground: oklch(0.898 0.039 57.76);
  --accent: oklch(0.407 0.084 53.265);
  --accent-foreground: oklch(0.898 0.039 57.76);
  --destructive: oklch(0.411 0.132 35.32);
  --destructive-foreground: oklch(0.895 0.047 35.95);
  --ring: oklch(0.391 0.078 243.626);
  --chart-1: oklch(0.391 0.078 243.626);
  --chart-2: oklch(0.407 0.084 53.265);
  --chart-3: oklch(0.407 0.084 53.265);
  --chart-4: oklch(0.439 0.091 53.1);
  --chart-5: oklch(0.393 0.082 244.011);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.01 230.687);
  --foreground: oklch(0.977 0.002 238.388);
  --muted: oklch(0.218 0.015 57.374);
  --muted-foreground: oklch(0.799 0.015 58.098);
  --popover: oklch(0.091 0.01 230.687);
  --popover-foreground: oklch(0.977 0.002 238.388);
  --card: oklch(0.114 0.013 230.687);
  --card-foreground: oklch(0.985 0.001 238.38);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.391 0.078 243.626);
  --primary-foreground: oklch(0.89 0.038 238.999);
  --secondary: oklch(0.407 0.084 53.265);
  --secondary-foreground: oklch(0.898 0.039 57.76);
  --accent: oklch(0.407 0.084 53.265);
  --accent-foreground: oklch(0.898 0.039 57.76);
  --destructive: oklch(0.586 0.196 34.878);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.391 0.078 243.626);
  --chart-1: oklch(0.391 0.078 243.626);
  --chart-2: oklch(0.407 0.084 53.265);
  --chart-3: oklch(0.407 0.084 53.265);
  --chart-4: oklch(0.439 0.091 53.1);
  --chart-5: oklch(0.393 0.082 244.011);
}