Footnote for shadcn/ui

Footnote is a shadcn/ui theme built around a violet primary color (#483371) with muted light violet accents (#c0b5d4). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the violet primary (#483371) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#000000black
Foreground
#020104black
#ffffffwhite
Card
#f6f3fcghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f9f7fdghostwhite
#000000black
Popover foreground
#020104black
#ffffffwhite
Primary
#483371darkslateblue
#483371darkslateblue
Primary foreground
#e8e3f2lavender
#e8e3f2lavender
Secondary
#d1ccdblightgrey
#221e29black
Secondary foreground
#383145darkslategray
#bab2c7silver
Muted
#d7d2dfgainsboro
#24202ddarkslategray
Muted foreground
#636066dimgray
#9b999fdarkgray
Accent
#c0b5d4silver
#372e48darkslategray
Accent foreground
#282037darkslategray
#d1caddlightgrey
Destructive
#b32a00firebrick
#ff3c00orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#483371darkslateblue
#483371darkslateblue

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.12:1AAA
Primary button8.43:1AAA
Secondary button7.91:1AAA
Muted text4.18:1AA Large
Accent7.95:1AAA
Destructive6.49:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.43:1AAA
Secondary button7.99:1AAA
Muted text5.65:1AA
Accent8.04:1AAA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.008 302.081);
  --foreground: oklch(0.077 0.02 303.057);
  --muted: oklch(0.872 0.018 301.883);
  --muted-foreground: oklch(0.495 0.01 301.906);
  --popover: oklch(0.979 0.008 302.081);
  --popover-foreground: oklch(0.077 0.02 303.057);
  --card: oklch(0.969 0.012 302.012);
  --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.376 0.104 297.335);
  --primary-foreground: oklch(0.924 0.022 301.847);
  --secondary: oklch(0.855 0.021 301.83);
  --secondary-foreground: oklch(0.328 0.036 300.471);
  --accent: oklch(0.791 0.046 301.302);
  --accent-foreground: oklch(0.263 0.044 299.471);
  --destructive: oklch(0.502 0.178 34.486);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.376 0.104 297.335);
  --chart-1: oklch(0.376 0.104 297.335);
  --chart-2: oklch(0.855 0.021 301.83);
  --chart-3: oklch(0.791 0.046 301.302);
  --chart-4: oklch(0.881 0.017 301.909);
  --chart-5: oklch(0.373 0.111 296.817);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.253 0.025 300.65);
  --muted-foreground: oklch(0.685 0.009 302.009);
  --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.376 0.104 297.335);
  --primary-foreground: oklch(0.924 0.022 301.847);
  --secondary: oklch(0.245 0.022 300.78);
  --secondary-foreground: oklch(0.777 0.031 301.59);
  --accent: oklch(0.322 0.046 299.881);
  --accent-foreground: oklch(0.851 0.027 301.714);
  --destructive: oklch(0.652 0.236 33.804);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.376 0.104 297.335);
  --chart-1: oklch(0.376 0.104 297.335);
  --chart-2: oklch(0.245 0.022 300.78);
  --chart-3: oklch(0.322 0.046 299.881);
  --chart-4: oklch(0.274 0.026 300.698);
  --chart-5: oklch(0.373 0.111 296.817);
}