Instructive for shadcn/ui

Instructive is a shadcn/ui theme built around a deep red primary color (#160604) with deep cyan accents (#041416). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#160604) on a red-tinted background (#0f0706).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0f0706black
Foreground
#000000black
#ffffffwhite
Card
#fdf8f7snow
#130807black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfbsnow
#0f0706black
Popover foreground
#000000black
#ffffffwhite
Primary
#160604black
#160604black
Primary foreground
#e57566salmon
#e57566salmon
Secondary
#041416black
#041416black
Secondary foreground
#21b1c4lightseagreen
#21b1c4lightseagreen
Muted
#e9f0f1whitesmoke
#0e1516black
Muted foreground
#546b6ddimgray
#92a8abdarkgray
Accent
#041416black
#041416black
Accent foreground
#21b1c4lightseagreen
#21b1c4lightseagreen
Destructive
#af3c0efirebrick
#ef6934tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#160604black
#160604black

Contrast

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

Light mode
Text on background20.45:1AAA
Text on card19.91:1AAA
Primary button6.66:1AA
Secondary button7.31:1AAA
Muted text4.92:1AA
Accent7.31:1AAA
Destructive6.07:1AA
Dark mode
Text on background19.97:1AAA
Text on card19.70:1AAA
Primary button6.66:1AA
Secondary button7.31:1AAA
Muted text7.39:1AAA
Accent7.31:1AAA
Destructive6.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 26.457);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.951 0.008 206.392);
  --muted-foreground: oklch(0.509 0.027 206.255);
  --popover: oklch(0.991 0.002 26.457);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.005 26.474);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.148 0.031 32.519);
  --primary-foreground: oklch(0.688 0.142 29.006);
  --secondary: oklch(0.176 0.024 205.923);
  --secondary-foreground: oklch(0.699 0.115 208.991);
  --accent: oklch(0.176 0.024 205.923);
  --accent-foreground: oklch(0.699 0.115 208.991);
  --destructive: oklch(0.514 0.158 38.522);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.148 0.031 32.519);
  --chart-1: oklch(0.148 0.031 32.519);
  --chart-2: oklch(0.176 0.024 205.923);
  --chart-3: oklch(0.176 0.024 205.923);
  --chart-4: oklch(0.223 0.032 207.132);
  --chart-5: oklch(0.148 0.033 33.022);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.016 29.896);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.189 0.011 206.257);
  --muted-foreground: oklch(0.715 0.025 206.28);
  --popover: oklch(0.139 0.016 29.896);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.151 0.019 29.135);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.148 0.031 32.519);
  --primary-foreground: oklch(0.688 0.142 29.006);
  --secondary: oklch(0.176 0.024 205.923);
  --secondary-foreground: oklch(0.699 0.115 208.991);
  --accent: oklch(0.176 0.024 205.923);
  --accent-foreground: oklch(0.699 0.115 208.991);
  --destructive: oklch(0.677 0.178 40.54);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.148 0.031 32.519);
  --chart-1: oklch(0.148 0.031 32.519);
  --chart-2: oklch(0.176 0.024 205.923);
  --chart-3: oklch(0.176 0.024 205.923);
  --chart-4: oklch(0.223 0.032 207.132);
  --chart-5: oklch(0.148 0.033 33.022);
}