Integer for shadcn/ui

Integer is a shadcn/ui theme built around a vivid deep pink primary color (#600642) with vivid deep green accents (#066024). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid deep pink primary (#600642) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#fefbfdsnow
#030203black
Foreground
#14050fblack
#faf9fasnow
Card
#fcf7fbsnow
#070306black
Card foreground
#10040cblack
#fdfcfdwhite
Popover
#fefbfdsnow
#030203black
Popover foreground
#14050fblack
#faf9fasnow
Primary
#600642indigo
#600642indigo
Primary foreground
#f99fdbplum
#f99fdbplum
Secondary
#066024darkgreen
#066024darkgreen
Secondary foreground
#9ff9bdpalegreen
#9ff9bdpalegreen
Muted
#e4ece7lavender
#131b15black
Muted foreground
#3c4840darkslategray
#b7c3bbsilver
Accent
#066024darkgreen
#066024darkgreen
Accent foreground
#9ff9bdpalegreen
#9ff9bdpalegreen
Destructive
#be4c0echocolate
#ed5f12chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#600642indigo
#600642indigo

Contrast

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

Light mode
Text on background19.31:1AAA
Text on card19.04:1AAA
Primary button6.86:1AA
Secondary button6.16:1AA
Muted text7.97:1AAA
Accent6.16:1AA
Destructive4.98:1AA
Dark mode
Text on background19.73:1AAA
Text on card20.00:1AAA
Primary button6.86:1AA
Secondary button6.16:1AA
Muted text9.63:1AAA
Accent6.16:1AA
Destructive6.23:1AA

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 337.333);
  --foreground: oklch(0.149 0.035 340.697);
  --muted: oklch(0.936 0.012 157.001);
  --muted-foreground: oklch(0.389 0.02 156.153);
  --popover: oklch(0.991 0.003 337.333);
  --popover-foreground: oklch(0.149 0.035 340.697);
  --card: oklch(0.982 0.007 337.403);
  --card-foreground: oklch(0.136 0.031 339.639);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.329 0.133 346.903);
  --primary-foreground: oklch(0.81 0.131 340.281);
  --secondary: oklch(0.429 0.122 147.831);
  --secondary-foreground: oklch(0.91 0.121 154.145);
  --accent: oklch(0.429 0.122 147.831);
  --accent-foreground: oklch(0.91 0.121 154.145);
  --destructive: oklch(0.56 0.16 42.777);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.329 0.133 346.903);
  --chart-1: oklch(0.329 0.133 346.903);
  --chart-2: oklch(0.429 0.122 147.831);
  --chart-3: oklch(0.429 0.122 147.831);
  --chart-4: oklch(0.473 0.136 147.599);
  --chart-5: oklch(0.332 0.135 347.194);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.01 337.5);
  --foreground: oklch(0.984 0.002 337.297);
  --muted: oklch(0.213 0.017 155.497);
  --muted-foreground: oklch(0.805 0.017 156.826);
  --popover: oklch(0.088 0.01 337.5);
  --popover-foreground: oklch(0.984 0.002 337.297);
  --card: oklch(0.111 0.013 337.5);
  --card-foreground: oklch(0.992 0.001 337.281);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.329 0.133 346.903);
  --primary-foreground: oklch(0.81 0.131 340.281);
  --secondary: oklch(0.429 0.122 147.831);
  --secondary-foreground: oklch(0.91 0.121 154.145);
  --accent: oklch(0.429 0.122 147.831);
  --accent-foreground: oklch(0.91 0.121 154.145);
  --destructive: oklch(0.659 0.191 42.394);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.329 0.133 346.903);
  --chart-1: oklch(0.329 0.133 346.903);
  --chart-2: oklch(0.429 0.122 147.831);
  --chart-3: oklch(0.429 0.122 147.831);
  --chart-4: oklch(0.473 0.136 147.599);
  --chart-5: oklch(0.332 0.135 347.194);
}