Feline for shadcn/ui

Feline is a shadcn/ui theme built around a deep indigo primary color (#302b5f) with deep violet accents (#4a2b5f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#302b5f) on an indigo-tinted background (#08070e).

Color palette

TokenLightDark
Background
#ffffffwhite
#08070eblack
Foreground
#040212black
#f7f6f8whitesmoke
Card
#fcfcfcsnow
#090911black
Card foreground
#03020eblack
#f9f9fbghostwhite
Popover
#fcfcfcsnow
#090911black
Popover foreground
#03020eblack
#f9f9fbghostwhite
Primary
#302b5fmidnightblue
#302b5fmidnightblue
Primary foreground
#d4d1eagainsboro
#d4d1eagainsboro
Secondary
#2b405fdarkslategray
#2b405fdarkslategray
Secondary foreground
#d1dbeagainsboro
#d1dbeagainsboro
Muted
#eff2f5whitesmoke
#0a0c10black
Muted foreground
#5c626adimgray
#959aa3darkgray
Accent
#4a2b5fdarkslateblue
#4a2b5fdarkslateblue
Accent foreground
#e0d1eagainsboro
#e0d1eagainsboro
Destructive
#e44501orangered
#fe692atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#302b5fmidnightblue
#302b5fmidnightblue

Contrast

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

Light mode
Text on background20.53:1AAA
Text on card20.16:1AAA
Primary button8.64:1AAA
Secondary button7.54:1AAA
Muted text5.47:1AA
Accent8.05:1AAA
Destructive4.06:1AA Large
Dark mode
Text on background18.64:1AAA
Text on card18.88:1AAA
Primary button8.64:1AAA
Secondary button7.54:1AAA
Muted text6.92:1AA
Accent8.05:1AAA
Destructive7.28:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.108 0.043 284.475);
  --muted: oklch(0.959 0.006 258.327);
  --muted-foreground: oklch(0.494 0.015 258.366);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.097 0.037 285.428);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.097 0.037 285.428);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.323 0.09 284.726);
  --primary-foreground: oklch(0.871 0.035 290.254);
  --secondary: oklch(0.368 0.061 258.277);
  --secondary-foreground: oklch(0.889 0.023 258.362);
  --accent: oklch(0.352 0.094 310.13);
  --accent-foreground: oklch(0.881 0.038 312.041);
  --destructive: oklch(0.616 0.205 37.223);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.323 0.09 284.726);
  --chart-1: oklch(0.323 0.09 284.726);
  --chart-2: oklch(0.368 0.061 258.277);
  --chart-3: oklch(0.352 0.094 310.13);
  --chart-4: oklch(0.394 0.066 258.277);
  --chart-5: oklch(0.319 0.097 284.014);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.016 289.374);
  --foreground: oklch(0.975 0.002 290.967);
  --muted: oklch(0.154 0.009 258.364);
  --muted-foreground: oklch(0.685 0.014 258.354);
  --popover: oklch(0.143 0.018 288.712);
  --popover-foreground: oklch(0.983 0.002 290.983);
  --card: oklch(0.143 0.018 288.712);
  --card-foreground: oklch(0.983 0.002 290.983);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.323 0.09 284.726);
  --primary-foreground: oklch(0.871 0.035 290.254);
  --secondary: oklch(0.368 0.061 258.277);
  --secondary-foreground: oklch(0.889 0.023 258.362);
  --accent: oklch(0.352 0.094 310.13);
  --accent-foreground: oklch(0.881 0.038 312.041);
  --destructive: oklch(0.7 0.195 40.884);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.323 0.09 284.726);
  --chart-1: oklch(0.323 0.09 284.726);
  --chart-2: oklch(0.368 0.061 258.277);
  --chart-3: oklch(0.352 0.094 310.13);
  --chart-4: oklch(0.394 0.066 258.277);
  --chart-5: oklch(0.319 0.097 284.014);
}