Integer for shadcn/ui

Integer is a shadcn/ui theme built around a muted light blue primary color (#cad2dd) with muted light orange accents (#ddd5ca). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted light blue primary (#cad2dd) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#fbfcfewhite
#030507black
Foreground
#02070eblack
#f8fafcghostwhite
Card
#f7f9fdghostwhite
#05070bblack
Card foreground
#010509black
#fcfcfdwhite
Popover
#fbfcfewhite
#030507black
Popover foreground
#02070eblack
#f8fafcghostwhite
Primary
#cad2ddlightgrey
#cad2ddlightgrey
Primary foreground
#2e3948darkslategray
#2e3948darkslategray
Secondary
#ddd5calightgrey
#ddd5calightgrey
Secondary foreground
#483c2edarkslategray
#483c2edarkslategray
Muted
#e0dad1gainsboro
#2e271fdarkslategray
Muted foreground
#64615edimgray
#a19e9bdarkgray
Accent
#ddd5calightgrey
#ddd5calightgrey
Accent foreground
#483c2edarkslategray
#483c2edarkslategray
Destructive
#740202maroon
#fb1313red
Destructive foreground
#feaaaalightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cad2ddlightgrey
#cad2ddlightgrey

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.45:1AAA
Primary button7.69:1AAA
Secondary button7.36:1AAA
Muted text4.42:1AA Large
Accent7.36:1AAA
Destructive6.61:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.65:1AAA
Primary button7.69:1AAA
Secondary button7.36:1AAA
Muted text5.52:1AA
Accent7.36:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 254.968);
  --foreground: oklch(0.123 0.021 244.402);
  --muted: oklch(0.89 0.013 74.86);
  --muted-foreground: oklch(0.495 0.006 74.877);
  --popover: oklch(0.991 0.003 254.968);
  --popover-foreground: oklch(0.123 0.021 244.402);
  --card: oklch(0.983 0.005 254.983);
  --card-foreground: oklch(0.108 0.018 243.21);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.862 0.017 255.055);
  --primary-foreground: oklch(0.34 0.03 255.279);
  --secondary: oklch(0.876 0.017 74.825);
  --secondary-foreground: oklch(0.365 0.028 74.156);
  --accent: oklch(0.876 0.017 74.825);
  --accent-foreground: oklch(0.365 0.028 74.156);
  --destructive: oklch(0.351 0.142 28.984);
  --destructive-foreground: oklch(0.819 0.1 19.431);
  --ring: oklch(0.862 0.017 255.055);
  --chart-1: oklch(0.862 0.017 255.055);
  --chart-2: oklch(0.876 0.017 74.825);
  --chart-3: oklch(0.876 0.017 74.825);
  --chart-4: oklch(0.898 0.014 74.853);
  --chart-5: oklch(0.861 0.02 255.067);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.009 249.542);
  --foreground: oklch(0.984 0.003 254.971);
  --muted: oklch(0.278 0.017 74.393);
  --muted-foreground: oklch(0.702 0.006 74.905);
  --popover: oklch(0.112 0.009 249.542);
  --popover-foreground: oklch(0.984 0.003 254.971);
  --card: oklch(0.128 0.01 249.584);
  --card-foreground: oklch(0.992 0.002 254.962);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.862 0.017 255.055);
  --primary-foreground: oklch(0.34 0.03 255.279);
  --secondary: oklch(0.876 0.017 74.825);
  --secondary-foreground: oklch(0.365 0.028 74.156);
  --accent: oklch(0.876 0.017 74.825);
  --accent-foreground: oklch(0.365 0.028 74.156);
  --destructive: oklch(0.626 0.251 28.706);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.862 0.017 255.055);
  --chart-1: oklch(0.862 0.017 255.055);
  --chart-2: oklch(0.876 0.017 74.825);
  --chart-3: oklch(0.876 0.017 74.825);
  --chart-4: oklch(0.898 0.014 74.853);
  --chart-5: oklch(0.861 0.02 255.067);
}