irvex for shadcn/ui

irvex is a shadcn/ui theme built around a blue primary color (#1e3fa9) with blue accents (#1e3fa9). The light mode uses a neutral background (#ffffff). Dark mode switches to a teal primary (#3fd59e) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#ffffffwhite
#030706black
Foreground
#171717black
#fcfdfdwhite
Card
#ffffffwhite
#030706black
Card foreground
#171717black
#fcfdfdwhite
Popover
#ffffffwhite
#030706black
Popover foreground
#171717black
#fcfdfdwhite
Primary
#1e3fa9darkslateblue
#3fd59emediumaquamarine
Primary foreground
#ffffffwhite
#0d3b2adarkslategray
Secondary
#f1f5f9whitesmoke
#3fd553limegreen
Secondary foreground
#0d3b13darkgreen
#0d3b13darkgreen
Muted
#adadaddarkgray
#212c22darkslategray
Muted foreground
#3a453cdarkslategray
#bac5bbsilver
Accent
#1e3fa9darkslateblue
#3fc1d5mediumturquoise
Accent foreground
#252525darkslategray
#0d343bdarkslategray
Destructive
#e01c06red
#fa3e29orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#adadaddarkgray
#1d201fblack
Input
#adadaddarkgray
#1d201fblack
Ring
#393939darkslategray
#3fd59emediumaquamarine

Contrast

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

Light mode
Text on background17.92:1AAA
Text on card17.92:1AAA
Primary button8.97:1AAA
Secondary button11.60:1AAA
Muted text4.46:1AA Large
Accent1.70:1Fail
Destructive4.85:1AA
Dark mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button6.67:1AA
Secondary button6.55:1AA
Muted text8.15:1AAA
Accent6.21:1AA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.205 0 169.695);
  --muted: oklch(0.748 0 180);
  --muted-foreground: oklch(0.379 0.022 148.923);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.205 0 169.695);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.205 0 169.695);
  --border: oklch(0.748 0 180);
  --input: oklch(0.748 0 180);
  --primary: oklch(0.417 0.174 265.658);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.968 0.007 247.896);
  --secondary-foreground: oklch(0.31 0.083 145.362);
  --accent: oklch(0.417 0.174 265.658);
  --accent-foreground: oklch(0.266 0 180);
  --destructive: oklch(0.577 0.226 30.347);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.344 0 180);
  --chart-1: oklch(0.781 0.148 163.949);
  --chart-2: oklch(0.768 0.213 145.104);
  --chart-3: oklch(0.749 0.113 209.844);
  --chart-4: oklch(0.779 0.203 145.507);
  --chart-5: oklch(0.789 0.153 163.566);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.011 172.766);
  --foreground: oklch(0.993 0.001 172.556);
  --muted: oklch(0.279 0.024 148.553);
  --muted-foreground: oklch(0.812 0.019 149.396);
  --popover: oklch(0.122 0.011 172.766);
  --popover-foreground: oklch(0.993 0.001 172.556);
  --card: oklch(0.122 0.011 172.766);
  --card-foreground: oklch(0.993 0.001 172.556);
  --border: oklch(0.24 0.005 171.96);
  --input: oklch(0.24 0.005 171.96);
  --primary: oklch(0.781 0.148 163.949);
  --primary-foreground: oklch(0.315 0.058 164.537);
  --secondary: oklch(0.768 0.213 145.104);
  --secondary-foreground: oklch(0.31 0.083 145.362);
  --accent: oklch(0.749 0.113 209.844);
  --accent-foreground: oklch(0.303 0.044 209.543);
  --destructive: oklch(0.647 0.226 30.392);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.781 0.148 163.949);
  --chart-1: oklch(0.781 0.148 163.949);
  --chart-2: oklch(0.768 0.213 145.104);
  --chart-3: oklch(0.749 0.113 209.844);
  --chart-4: oklch(0.779 0.203 145.507);
  --chart-5: oklch(0.789 0.153 163.566);
}