shafuttech for shadcn/ui

shafuttech is a shadcn/ui theme built around a vivid blue primary color (#0080ff) with light blue accents (#f1f5f9). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid yellow primary (#ffd902) on an indigo-tinted background (#1e1a38).

Color palette

TokenLightDark
Background
#ffffffwhite
#1e1a38midnightblue
Foreground
#1e1a38midnightblue
#f4f4f1whitesmoke
Card
#ffffffwhite
#151226black
Card foreground
#020817black
#ffffffwhite
Popover
#ffffffwhite
#151226black
Popover foreground
#020817black
#ffffffwhite
Primary
#0080ffdodgerblue
#ffd902gold
Primary foreground
#f1f5f9whitesmoke
#332200black
Secondary
#e0ce67burlywood
#505591darkslateblue
Secondary foreground
#1e1a38midnightblue
#cdd6ddlightgrey
Muted
#f1f5f9whitesmoke
#151226black
Muted foreground
#64748bslategray
#a9afbcdarkgray
Accent
#f1f5f9whitesmoke
#201d35darkslategray
Accent foreground
#0f172ablack
#e3e6edlavender
Destructive
#ec3418orangered
#ec3418orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e2e8f0lavender
#0f172ablack
Input
#e2e8f0lavender
#505591darkslateblue
Ring
#505591darkslateblue
#ffd902gold

Contrast

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

Light mode
Text on background16.66:1AAA
Text on card20.00:1AAA
Primary button3.46:1AA Large
Secondary button10.49:1AAA
Muted text4.34:1AA Large
Accent16.30:1AAA
Destructive4.13:1AA Large
Dark mode
Text on background15.12:1AAA
Text on card18.35:1AAA
Primary button11.08:1AAA
Secondary button4.67:1AA
Muted text8.32:1AAA
Accent13.09:1AAA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.24 0.056 287.498);
  --muted: oklch(0.968 0.007 247.895);
  --muted-foreground: oklch(0.555 0.041 257.44);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.137 0.036 258.526);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.137 0.036 258.526);
  --border: oklch(0.929 0.013 255.532);
  --input: oklch(0.929 0.013 255.532);
  --primary: oklch(0.615 0.211 256.097);
  --primary-foreground: oklch(0.968 0.007 247.896);
  --secondary: oklch(0.846 0.125 99.457);
  --secondary-foreground: oklch(0.24 0.056 287.498);
  --accent: oklch(0.968 0.007 247.895);
  --accent-foreground: oklch(0.208 0.04 265.727);
  --destructive: oklch(0.615 0.222 31.544);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.473 0.096 278.418);
  --chart-1: oklch(0.772 0.141 98.903);
  --chart-2: oklch(0.473 0.096 278.418);
  --chart-3: oklch(0.246 0.046 288.658);
  --chart-4: oklch(0.496 0.102 278.379);
  --chart-5: oklch(0.9 0.185 95.954);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.24 0.056 287.498);
  --foreground: oklch(0.966 0.004 106.475);
  --muted: oklch(0.197 0.04 289.132);
  --muted-foreground: oklch(0.754 0.019 264.455);
  --popover: oklch(0.197 0.04 289.132);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.196 0.041 288.188);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.208 0.04 265.752);
  --input: oklch(0.473 0.096 278.418);
  --primary: oklch(0.891 0.183 96.169);
  --primary-foreground: oklch(0.266 0.055 80.868);
  --secondary: oklch(0.473 0.096 278.418);
  --secondary-foreground: oklch(0.871 0.014 240.979);
  --accent: oklch(0.246 0.046 288.658);
  --accent-foreground: oklch(0.926 0.009 264.518);
  --destructive: oklch(0.615 0.222 31.544);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.891 0.183 96.169);
  --chart-1: oklch(0.891 0.183 96.169);
  --chart-2: oklch(0.473 0.096 278.418);
  --chart-3: oklch(0.246 0.046 288.658);
  --chart-4: oklch(0.496 0.102 278.379);
  --chart-5: oklch(0.9 0.185 95.954);
}