Taut for shadcn/ui

Taut is a shadcn/ui theme built around a deep red primary color (#160307) with deep orange accents (#160903). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the deep red primary (#160307) on a red-tinted background (#0f0608).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0f0608black
Foreground
#000000black
#fbf9f9snow
Card
#fbf8f9snow
#130709black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fbf8f9snow
#130709black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#160307black
#160307black
Primary foreground
#e76581palevioletred
#e76581palevioletred
Secondary
#160311black
#160311black
Secondary foreground
#e765c2orchid
#e765c2orchid
Muted
#e9d2e3gainsboro
#2d1626black
Muted foreground
#5c4756dimgray
#b8a3b2darkgray
Accent
#160903black
#160903black
Accent foreground
#e78a65darksalmon
#e78a65darksalmon
Destructive
#670e04maroon
#f84430tomato
Destructive foreground
#fcaba1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#160307black
#160307black

Contrast

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

Light mode
Text on background20.47:1AAA
Text on card19.95:1AAA
Primary button6.24:1AA
Secondary button6.65:1AA
Muted text5.95:1AA
Accent7.65:1AAA
Destructive6.98:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.32:1AAA
Primary button6.24:1AA
Secondary button6.65:1AA
Muted text7.13:1AAA
Accent7.65:1AAA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 2.114);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.888 0.034 335.867);
  --muted-foreground: oklch(0.426 0.037 336.702);
  --popover: oklch(0.983 0.003 2.161);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.003 2.161);
  --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.143 0.038 5.709);
  --primary-foreground: oklch(0.673 0.163 9.109);
  --secondary: oklch(0.148 0.045 338.95);
  --secondary-foreground: oklch(0.695 0.192 339.889);
  --accent: oklch(0.157 0.028 48.385);
  --accent-foreground: oklch(0.723 0.125 42.08);
  --destructive: oklch(0.333 0.124 30.947);
  --destructive-foreground: oklch(0.816 0.097 26.393);
  --ring: oklch(0.143 0.038 5.709);
  --chart-1: oklch(0.143 0.038 5.709);
  --chart-2: oklch(0.148 0.045 338.95);
  --chart-3: oklch(0.157 0.028 48.385);
  --chart-4: oklch(0.186 0.061 340.54);
  --chart-5: oklch(0.142 0.04 5.829);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.019 3.287);
  --foreground: oklch(0.983 0.002 2.133);
  --muted: oklch(0.238 0.046 338.455);
  --muted-foreground: oklch(0.738 0.032 335.968);
  --popover: oklch(0.148 0.022 4.781);
  --popover-foreground: oklch(0.992 0.001 2.1);
  --card: oklch(0.148 0.022 4.781);
  --card-foreground: oklch(0.992 0.001 2.1);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.143 0.038 5.709);
  --primary-foreground: oklch(0.673 0.163 9.109);
  --secondary: oklch(0.148 0.045 338.95);
  --secondary-foreground: oklch(0.695 0.192 339.889);
  --accent: oklch(0.157 0.028 48.385);
  --accent-foreground: oklch(0.723 0.125 42.08);
  --destructive: oklch(0.649 0.218 30.238);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.143 0.038 5.709);
  --chart-1: oklch(0.143 0.038 5.709);
  --chart-2: oklch(0.148 0.045 338.95);
  --chart-3: oklch(0.157 0.028 48.385);
  --chart-4: oklch(0.186 0.061 340.54);
  --chart-5: oklch(0.142 0.04 5.829);
}