Forked for shadcn/ui

Forked is a shadcn/ui theme built around a vivid deep red primary color (#64100c) with vivid deep indigo accents (#100c64). The light mode uses a neutral background (#fefbfb). Dark mode keeps the vivid deep red primary (#64100c) on a red-tinted background (#0f0605).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0f0605black
Foreground
#160403black
#ffffffwhite
Card
#fdf7f7snow
#130707black
Card foreground
#120302black
#ffffffwhite
Popover
#fdf7f7snow
#130707black
Popover foreground
#120302black
#ffffffwhite
Primary
#64100cmaroon
#64100cmaroon
Primary foreground
#f5b0adlightpink
#f5b0adlightpink
Secondary
#0c6410darkgreen
#0c6410darkgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dadddagainsboro
#222522black
Muted foreground
#39463adarkslategray
#b9c6basilver
Accent
#100c64midnightblue
#100c64midnightblue
Accent foreground
#b0adf5lightsteelblue
#b0adf5lightsteelblue
Destructive
#c60906firebrick
#f93734crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#64100cmaroon
#64100cmaroon

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.06:1AAA
Primary button7.18:1AAA
Secondary button7.33:1AAA
Muted text7.26:1AAA
Accent8.05:1AAA
Destructive6.10:1AA
Dark mode
Text on background20.03:1AAA
Text on card19.77:1AAA
Primary button7.18:1AAA
Secondary button7.33:1AAA
Muted text8.70:1AAA
Accent8.05:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 20.931);
  --foreground: oklch(0.143 0.037 27.715);
  --muted: oklch(0.894 0.006 146.976);
  --muted-foreground: oklch(0.379 0.026 146.371);
  --popover: oklch(0.981 0.007 20.974);
  --popover-foreground: oklch(0.13 0.032 27.83);
  --card: oklch(0.981 0.007 20.974);
  --card-foreground: oklch(0.13 0.032 27.83);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.329 0.118 28.621);
  --primary-foreground: oklch(0.822 0.081 22.373);
  --secondary: oklch(0.44 0.14 143.163);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.25 0.144 271.286);
  --accent-foreground: oklch(0.777 0.103 286.033);
  --destructive: oklch(0.521 0.21 29.141);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.329 0.118 28.621);
  --chart-1: oklch(0.329 0.118 28.621);
  --chart-2: oklch(0.44 0.14 143.163);
  --chart-3: oklch(0.25 0.144 271.286);
  --chart-4: oklch(0.481 0.154 143.117);
  --chart-5: oklch(0.331 0.121 28.817);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.018 24.017);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.262 0.008 146.746);
  --muted-foreground: oklch(0.812 0.022 146.786);
  --popover: oklch(0.148 0.021 23.863);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.148 0.021 23.863);
  --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.329 0.118 28.621);
  --primary-foreground: oklch(0.822 0.081 22.373);
  --secondary: oklch(0.44 0.14 143.163);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.25 0.144 271.286);
  --accent-foreground: oklch(0.777 0.103 286.033);
  --destructive: oklch(0.641 0.228 27.249);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.329 0.118 28.621);
  --chart-1: oklch(0.329 0.118 28.621);
  --chart-2: oklch(0.44 0.14 143.163);
  --chart-3: oklch(0.25 0.144 271.286);
  --chart-4: oklch(0.481 0.154 143.117);
  --chart-5: oklch(0.331 0.121 28.817);
}