Taut for shadcn/ui

Taut is a shadcn/ui theme built around a light blue primary color (#e5e7f6) with light violet accents (#eae5f6). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#e5e7f6) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#ffffffwhite
#030407black
Foreground
#010104black
#fcfcfdwhite
Card
#ffffffwhite
#030407black
Card foreground
#010104black
#fcfcfdwhite
Popover
#ffffffwhite
#030407black
Popover foreground
#010104black
#fcfcfdwhite
Primary
#e5e7f6lavender
#e5e7f6lavender
Primary foreground
#2c397ddarkslateblue
#2c397ddarkslateblue
Secondary
#e5f0f6lavender
#e5f0f6lavender
Secondary foreground
#112631darkslategray
#112631darkslategray
Muted
#eceeeewhitesmoke
#111213black
Muted foreground
#666666dimgray
#999999darkgray
Accent
#eae5f6lavender
#eae5f6lavender
Accent foreground
#472c7ddarkslateblue
#472c7ddarkslateblue
Destructive
#cf3307firebrick
#f75426tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5e7f6lavender
#e5e7f6lavender

Contrast

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

Light mode
Text on background20.84:1AAA
Text on card20.84:1AAA
Primary button8.61:1AAA
Secondary button13.46:1AAA
Muted text4.91:1AA
Accent8.83:1AAA
Destructive5.10:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button8.61:1AAA
Secondary button13.46:1AAA
Muted text6.57:1AA
Accent8.83:1AAA
Destructive3.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.079 0.015 269.531);
  --muted: oklch(0.947 0.002 228.776);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.079 0.015 269.531);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.079 0.015 269.531);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.931 0.02 276.963);
  --primary-foreground: oklch(0.374 0.115 271.295);
  --secondary: oklch(0.948 0.014 228.954);
  --secondary-foreground: oklch(0.258 0.034 231.845);
  --accent: oklch(0.93 0.024 301.082);
  --accent-foreground: oklch(0.372 0.131 294.534);
  --destructive: oklch(0.561 0.198 34.007);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.931 0.02 276.963);
  --chart-1: oklch(0.931 0.02 276.963);
  --chart-2: oklch(0.948 0.014 228.954);
  --chart-3: oklch(0.93 0.024 301.082);
  --chart-4: oklch(0.97 0.008 228.862);
  --chart-5: oklch(0.93 0.021 276.943);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.012 272.715);
  --foreground: oklch(0.992 0.001 277.25);
  --muted: oklch(0.182 0.003 228.951);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0.105 0.012 272.715);
  --popover-foreground: oklch(0.992 0.001 277.25);
  --card: oklch(0.105 0.012 272.715);
  --card-foreground: oklch(0.992 0.001 277.25);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.931 0.02 276.963);
  --primary-foreground: oklch(0.374 0.115 271.295);
  --secondary: oklch(0.948 0.014 228.954);
  --secondary-foreground: oklch(0.258 0.034 231.845);
  --accent: oklch(0.93 0.024 301.082);
  --accent-foreground: oklch(0.372 0.131 294.534);
  --destructive: oklch(0.663 0.207 35.549);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.931 0.02 276.963);
  --chart-1: oklch(0.931 0.02 276.963);
  --chart-2: oklch(0.948 0.014 228.954);
  --chart-3: oklch(0.93 0.024 301.082);
  --chart-4: oklch(0.97 0.008 228.862);
  --chart-5: oklch(0.93 0.021 276.943);
}