Doctrine for shadcn/ui

Doctrine is a shadcn/ui theme built around a vivid deep red primary color (#350303) with vivid deep orange accents (#351c03). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid deep red primary (#350303) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fdf7f7snow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfbsnow
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#350303black
#350303black
Primary foreground
#f87272salmon
#f87272salmon
Secondary
#35031cblack
#35031cblack
Secondary foreground
#f872b5hotpink
#f872b5hotpink
Muted
#e5e1e3gainsboro
#1e1a1cblack
Muted foreground
#6d5461dimgray
#ab929erosybrown
Accent
#351c03black
#351c03black
Accent foreground
#f38212darkorange
#f38212darkorange
Destructive
#a21b06firebrick
#f8533atomato
Destructive foreground
#fee1ddmistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#350303black
#350303black

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card19.79:1AAA
Primary button6.55:1AA
Secondary button6.82:1AA
Muted text5.23:1AA
Accent6.06:1AA
Destructive6.30:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.55:1AA
Secondary button6.82:1AA
Muted text6.01:1AA
Accent6.06:1AA
Destructive6.29:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.214);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.913 0.006 345.307);
  --muted-foreground: oklch(0.477 0.038 347.125);
  --popover: oklch(0.99 0.003 17.214);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.007 17.272);
  --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.212 0.08 27.535);
  --primary-foreground: oklch(0.712 0.164 22.106);
  --secondary: oklch(0.22 0.083 355.557);
  --secondary-foreground: oklch(0.73 0.177 351.159);
  --accent: oklch(0.256 0.055 62.104);
  --accent-foreground: oklch(0.718 0.172 55.977);
  --destructive: oklch(0.46 0.173 31.382);
  --destructive-foreground: oklch(0.932 0.032 28.148);
  --ring: oklch(0.212 0.08 27.535);
  --chart-1: oklch(0.212 0.08 27.535);
  --chart-2: oklch(0.22 0.083 355.557);
  --chart-3: oklch(0.256 0.055 62.104);
  --chart-4: oklch(0.255 0.098 356.815);
  --chart-5: oklch(0.213 0.082 28.03);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.223 0.008 346.075);
  --muted-foreground: oklch(0.685 0.035 346.421);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.212 0.08 27.535);
  --primary-foreground: oklch(0.712 0.164 22.106);
  --secondary: oklch(0.22 0.083 355.557);
  --secondary-foreground: oklch(0.73 0.177 351.159);
  --accent: oklch(0.256 0.055 62.104);
  --accent-foreground: oklch(0.718 0.172 55.977);
  --destructive: oklch(0.666 0.205 31.501);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.212 0.08 27.535);
  --chart-1: oklch(0.212 0.08 27.535);
  --chart-2: oklch(0.22 0.083 355.557);
  --chart-3: oklch(0.256 0.055 62.104);
  --chart-4: oklch(0.255 0.098 356.815);
  --chart-5: oklch(0.213 0.082 28.03);
}