Tedious for shadcn/ui

Tedious is a shadcn/ui theme built around a light violet primary color (#b29ce7) with muted light violet accents (#d5d3d9). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the light violet primary (#b29ce7) on a violet-tinted background (#06050a).

Color palette

TokenLightDark
Background
#fcfbfewhite
#06050ablack
Foreground
#030109black
#f9f8fcghostwhite
Card
#f9f7fdghostwhite
#09070eblack
Card foreground
#020104black
#fcfcfdwhite
Popover
#f9f7fdghostwhite
#09070eblack
Popover foreground
#020104black
#fcfcfdwhite
Primary
#b29ce7lightsteelblue
#b29ce7lightsteelblue
Primary foreground
#1e1042midnightblue
#1e1042midnightblue
Secondary
#d5d3d9lightgrey
#26232fdarkslategray
Secondary foreground
#3b3842darkslategray
#beb9cbsilver
Muted
#f1f0f4whitesmoke
#0c0b0fblack
Muted foreground
#3f3e41darkslategray
#bfbec1silver
Accent
#d5d3d9lightgrey
#26232fdarkslategray
Accent foreground
#3b3842darkslategray
#beb9cbsilver
Destructive
#6b0901maroon
#fe3c2aorangered
Destructive foreground
#ffa79flightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b29ce7lightsteelblue
#b29ce7lightsteelblue

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card19.56:1AAA
Primary button7.30:1AAA
Secondary button7.72:1AAA
Muted text9.37:1AAA
Accent7.72:1AAA
Destructive6.79:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.58:1AAA
Primary button7.30:1AAA
Secondary button8.07:1AAA
Muted text10.62:1AAA
Accent8.07:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 299.236);
  --foreground: oklch(0.093 0.029 299.37);
  --muted: oklch(0.958 0.006 299.199);
  --muted-foreground: oklch(0.367 0.004 299.098);
  --popover: oklch(0.979 0.008 299.166);
  --popover-foreground: oklch(0.073 0.023 299.37);
  --card: oklch(0.979 0.008 299.166);
  --card-foreground: oklch(0.073 0.023 299.37);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.74 0.108 296.698);
  --primary-foreground: oklch(0.227 0.089 290.571);
  --secondary: oklch(0.87 0.009 299.125);
  --secondary-foreground: oklch(0.348 0.017 298.453);
  --accent: oklch(0.87 0.009 299.125);
  --accent-foreground: oklch(0.348 0.017 298.453);
  --destructive: oklch(0.336 0.13 31.009);
  --destructive-foreground: oklch(0.812 0.105 25.32);
  --ring: oklch(0.74 0.108 296.698);
  --chart-1: oklch(0.74 0.108 296.698);
  --chart-2: oklch(0.87 0.009 299.125);
  --chart-3: oklch(0.87 0.009 299.125);
  --chart-4: oklch(0.895 0.007 299.163);
  --chart-5: oklch(0.737 0.113 296.546);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.015 299.325);
  --foreground: oklch(0.981 0.005 299.215);
  --muted: oklch(0.151 0.009 298.231);
  --muted-foreground: oklch(0.803 0.004 299.227);
  --popover: oklch(0.133 0.017 298.519);
  --popover-foreground: oklch(0.991 0.003 299.26);
  --card: oklch(0.133 0.017 298.519);
  --card-foreground: oklch(0.991 0.003 299.26);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.74 0.108 296.698);
  --primary-foreground: oklch(0.227 0.089 290.571);
  --secondary: oklch(0.264 0.023 297.784);
  --secondary-foreground: oklch(0.794 0.026 298.736);
  --accent: oklch(0.264 0.023 297.784);
  --accent-foreground: oklch(0.794 0.026 298.736);
  --destructive: oklch(0.652 0.232 29.827);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.74 0.108 296.698);
  --chart-1: oklch(0.74 0.108 296.698);
  --chart-2: oklch(0.264 0.023 297.784);
  --chart-3: oklch(0.264 0.023 297.784);
  --chart-4: oklch(0.292 0.027 297.713);
  --chart-5: oklch(0.737 0.113 296.546);
}