Isogloss for shadcn/ui

Isogloss is a shadcn/ui theme built around a red primary color (#d0524e) with muted light red accents (#d7cccb). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#d0524e) on a red-tinted background (#0f0605).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0605black
Foreground
#080202black
#fbf9f9snow
Card
#ffffffwhite
#0f0605black
Card foreground
#080202black
#fbf9f9snow
Popover
#ffffffwhite
#0f0605black
Popover foreground
#080202black
#fbf9f9snow
Primary
#d0524eindianred
#d0524eindianred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d7cccblightgrey
#342d2ddarkslategray
Secondary foreground
#3f3131darkslategray
#cec5c5silver
Muted
#eee2e2mistyrose
#1d1111black
Muted foreground
#6c5756dimgray
#a99493rosybrown
Accent
#d7cccblightgrey
#342d2ddarkslategray
Accent foreground
#3f3131darkslategray
#cec5c5silver
Destructive
#b84300firebrick
#fa5c00orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0524eindianred
#d0524eindianred

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button4.20:1AA Large
Secondary button7.87:1AAA
Muted text5.30:1AA
Accent7.87:1AAA
Destructive5.47:1AA
Dark mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button4.20:1AA Large
Secondary button7.97:1AAA
Muted text6.43:1AA
Accent7.97:1AAA
Destructive6.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.104 0.019 24.142);
  --muted: oklch(0.923 0.014 19.815);
  --muted-foreground: oklch(0.477 0.027 20.474);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.104 0.019 24.142);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.104 0.019 24.142);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.604 0.161 25.074);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.853 0.013 19.82);
  --secondary-foreground: oklch(0.33 0.021 20.558);
  --accent: oklch(0.853 0.013 19.82);
  --accent-foreground: oklch(0.33 0.021 20.558);
  --destructive: oklch(0.539 0.163 41.906);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.604 0.161 25.074);
  --chart-1: oklch(0.604 0.161 25.074);
  --chart-2: oklch(0.853 0.013 19.82);
  --chart-3: oklch(0.853 0.013 19.82);
  --chart-4: oklch(0.878 0.011 19.777);
  --chart-5: oklch(0.604 0.168 25.425);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.02 22.811);
  --foreground: oklch(0.983 0.003 19.641);
  --muted: oklch(0.194 0.021 21.379);
  --muted-foreground: oklch(0.685 0.025 20.134);
  --popover: oklch(0.135 0.02 22.811);
  --popover-foreground: oklch(0.983 0.003 19.641);
  --card: oklch(0.135 0.02 22.811);
  --card-foreground: oklch(0.983 0.003 19.641);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.604 0.161 25.074);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.305 0.011 20.135);
  --secondary-foreground: oklch(0.831 0.009 19.763);
  --accent: oklch(0.305 0.011 20.135);
  --accent-foreground: oklch(0.831 0.009 19.763);
  --destructive: oklch(0.675 0.208 41.048);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.604 0.161 25.074);
  --chart-1: oklch(0.604 0.161 25.074);
  --chart-2: oklch(0.305 0.011 20.135);
  --chart-3: oklch(0.305 0.011 20.135);
  --chart-4: oklch(0.334 0.012 20.153);
  --chart-5: oklch(0.604 0.168 25.425);
}