Misreading for shadcn/ui

Misreading is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#d4bfbf). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0a0505).

Color palette

TokenLightDark
Background
#fdf7f7snow
#0a0505black
Foreground
#000000black
#fcf8f8snow
Card
#fdf7f7snow
#0a0505black
Card foreground
#000000black
#fcf8f8snow
Popover
#fdf7f7snow
#0a0505black
Popover foreground
#000000black
#fcf8f8snow
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#e0d7d7gainsboro
#1a1414black
Secondary foreground
#4a3a3adarkslategray
#bca4a4darkgray
Muted
#f1e9e9linen
#160e0eblack
Muted foreground
#5f4949darkolivegreen
#b6a0a0darkgray
Accent
#d4bfbfsilver
#342323darkslategray
Accent foreground
#3a2727darkslategray
#d0b9b9silver
Destructive
#c2290afirebrick
#f4502ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button12.63:1AAA
Secondary button7.59:1AAA
Muted text6.94:1AA
Accent8.01:1AAA
Destructive5.82:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button12.63:1AAA
Secondary button7.80:1AAA
Muted text7.72:1AAA
Accent8.04:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 17.257);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.941 0.008 17.301);
  --muted-foreground: oklch(0.429 0.03 18.385);
  --popover: oklch(0.981 0.006 17.257);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.006 17.257);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.886 0.009 17.335);
  --secondary-foreground: oklch(0.367 0.023 18.229);
  --accent: oklch(0.823 0.023 17.631);
  --accent-foreground: oklch(0.296 0.028 18.864);
  --destructive: oklch(0.529 0.192 32.395);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.886 0.009 17.335);
  --chart-3: oklch(0.823 0.023 17.631);
  --chart-4: oklch(0.911 0.007 17.291);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.012 18.852);
  --foreground: oklch(0.982 0.004 17.226);
  --muted: oklch(0.174 0.013 18.464);
  --muted-foreground: oklch(0.725 0.026 17.762);
  --popover: oklch(0.125 0.012 18.852);
  --popover-foreground: oklch(0.982 0.004 17.226);
  --card: oklch(0.125 0.012 18.852);
  --card-foreground: oklch(0.982 0.004 17.226);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.198 0.011 18.156);
  --secondary-foreground: oklch(0.74 0.028 17.798);
  --accent: oklch(0.276 0.027 18.916);
  --accent-foreground: oklch(0.804 0.027 17.724);
  --destructive: oklch(0.654 0.206 33.181);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.198 0.011 18.156);
  --chart-3: oklch(0.276 0.027 18.916);
  --chart-4: oklch(0.229 0.015 18.277);
  --chart-5: oklch(1 0 180);
}