Interval for shadcn/ui

Interval is a shadcn/ui theme built around an indigo primary color (#878bc9) with muted light indigo accents (#dddee9). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the indigo primary (#878bc9) on an indigo-tinted background (#03040c).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#03040cblack
Foreground
#05060fblack
#f5f5fawhitesmoke
Card
#fbfcfdwhite
#03040cblack
Card foreground
#05060fblack
#f5f5fawhitesmoke
Popover
#fbfcfdwhite
#03040cblack
Popover foreground
#05060fblack
#f5f5fawhitesmoke
Primary
#878bc9mediumpurple
#878bc9mediumpurple
Primary foreground
#090a15black
#090a15black
Secondary
#dddee9gainsboro
#161618black
Secondary foreground
#3b3d59darkslategray
#abacb5darkgray
Muted
#d6d7e0gainsboro
#1f1f29black
Muted foreground
#53545adimgray
#a5a5acdarkgray
Accent
#dddee9gainsboro
#161618black
Accent foreground
#3b3d59darkslategray
#abacb5darkgray
Destructive
#e24303orangered
#fc6022tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#878bc9mediumpurple
#878bc9mediumpurple

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button6.14:1AA
Secondary button7.85:1AAA
Muted text5.26:1AA
Accent7.85:1AAA
Destructive4.17:1AA Large
Dark mode
Text on background18.85:1AAA
Text on card18.85:1AAA
Primary button6.14:1AA
Secondary button8.02:1AAA
Muted text6.66:1AA
Accent8.02:1AAA
Destructive6.80:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 283.928);
  --foreground: oklch(0.125 0.023 279.373);
  --muted: oklch(0.881 0.013 283.714);
  --muted-foreground: oklch(0.446 0.011 283.549);
  --popover: oklch(0.99 0.002 283.928);
  --popover-foreground: oklch(0.125 0.023 279.373);
  --card: oklch(0.99 0.002 283.928);
  --card-foreground: oklch(0.125 0.023 279.373);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.657 0.093 281.195);
  --primary-foreground: oklch(0.151 0.024 280.813);
  --secondary: oklch(0.903 0.014 283.691);
  --secondary-foreground: oklch(0.37 0.048 281.436);
  --accent: oklch(0.903 0.014 283.691);
  --accent-foreground: oklch(0.37 0.048 281.436);
  --destructive: oklch(0.609 0.204 36.579);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.657 0.093 281.195);
  --chart-1: oklch(0.657 0.093 281.195);
  --chart-2: oklch(0.903 0.014 283.691);
  --chart-3: oklch(0.903 0.014 283.691);
  --chart-4: oklch(0.93 0.01 283.776);
  --chart-5: oklch(0.652 0.1 280.913);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.025 277.88);
  --foreground: oklch(0.972 0.006 283.861);
  --muted: oklch(0.244 0.018 282.603);
  --muted-foreground: oklch(0.724 0.009 283.744);
  --popover: oklch(0.109 0.025 277.88);
  --popover-foreground: oklch(0.972 0.006 283.861);
  --card: oklch(0.109 0.025 277.88);
  --card-foreground: oklch(0.972 0.006 283.861);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.657 0.093 281.195);
  --primary-foreground: oklch(0.151 0.024 280.813);
  --secondary: oklch(0.2 0.005 283.512);
  --secondary-foreground: oklch(0.746 0.013 283.67);
  --accent: oklch(0.2 0.005 283.512);
  --accent-foreground: oklch(0.746 0.013 283.67);
  --destructive: oklch(0.684 0.202 39.196);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.657 0.093 281.195);
  --chart-1: oklch(0.657 0.093 281.195);
  --chart-2: oklch(0.2 0.005 283.512);
  --chart-3: oklch(0.2 0.005 283.512);
  --chart-4: oklch(0.232 0.007 283.461);
  --chart-5: oklch(0.652 0.1 280.913);
}