Inferior for shadcn/ui

Inferior is a shadcn/ui theme built around a vivid light violet primary color (#f8f1fe) with vivid light teal accents (#f1fef8). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid light violet primary (#f8f1fe) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#060209black
#fdfcfdwhite
Card
#fdfbfewhite
#000000black
Card foreground
#060209black
#fdfcfdwhite
Popover
#fdfbfewhite
#000000black
Popover foreground
#060209black
#fdfcfdwhite
Primary
#f8f1feghostwhite
#f8f1feghostwhite
Primary foreground
#6c0ab2rebeccapurple
#6c0ab2rebeccapurple
Secondary
#fef8f1floralwhite
#fef8f1floralwhite
Secondary foreground
#523205saddlebrown
#523205saddlebrown
Muted
#f3f0edwhitesmoke
#12100cblack
Muted foreground
#5f5a54dimgray
#aba7a0darkgray
Accent
#f1fef8mintcream
#f1fef8mintcream
Accent foreground
#055232darkslategray
#055232darkslategray
Destructive
#d41a0cfirebrick
#f23426orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8f1feghostwhite
#f8f1feghostwhite

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button8.16:1AAA
Secondary button10.99:1AAA
Muted text6.01:1AA
Accent8.97:1AAA
Destructive5.31:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button8.16:1AAA
Secondary button10.99:1AAA
Muted text7.93:1AAA
Accent8.97:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 311.686);
  --foreground: oklch(0.1 0.029 314.109);
  --muted: oklch(0.957 0.006 76.626);
  --muted-foreground: oklch(0.47 0.011 76.521);
  --popover: oklch(0.99 0.005 311.686);
  --popover-foreground: oklch(0.1 0.029 314.109);
  --card: oklch(0.99 0.005 311.686);
  --card-foreground: oklch(0.1 0.029 314.109);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.967 0.02 311.559);
  --primary-foreground: oklch(0.435 0.223 302.834);
  --secondary: oklch(0.983 0.012 76.592);
  --secondary-foreground: oklch(0.348 0.072 68.69);
  --accent: oklch(0.986 0.016 169.202);
  --accent-foreground: oklch(0.387 0.088 158.242);
  --destructive: oklch(0.554 0.216 29.751);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.967 0.02 311.559);
  --chart-1: oklch(0.967 0.02 311.559);
  --chart-2: oklch(0.983 0.012 76.592);
  --chart-3: oklch(0.986 0.016 169.202);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.967 0.021 311.553);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 311.714);
  --muted: oklch(0.174 0.008 76.33);
  --muted-foreground: oklch(0.729 0.01 76.583);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 311.714);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 311.714);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.967 0.02 311.559);
  --primary-foreground: oklch(0.435 0.223 302.834);
  --secondary: oklch(0.983 0.012 76.592);
  --secondary-foreground: oklch(0.348 0.072 68.69);
  --accent: oklch(0.986 0.016 169.202);
  --accent-foreground: oklch(0.387 0.088 158.242);
  --destructive: oklch(0.626 0.227 29.342);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.967 0.02 311.559);
  --chart-1: oklch(0.967 0.02 311.559);
  --chart-2: oklch(0.983 0.012 76.592);
  --chart-3: oklch(0.986 0.016 169.202);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.967 0.021 311.553);
}