Useful for shadcn/ui

Useful is a shadcn/ui theme built around a vivid blue primary color (#1785d9) with vivid indigo accents (#1724d9). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid blue primary (#1785d9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#000000black
Foreground
#000000black
#fcfdfdwhite
Card
#f8fafcghostwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fafcghostwhite
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#1785d9dodgerblue
#1785d9dodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#17d9ccdarkturquoise
#17d9ccdarkturquoise
Secondary foreground
#03201eblack
#03201eblack
Muted
#d2e5e4gainsboro
#1a2d2cdarkslategray
Muted foreground
#5a5e5ddimgray
#a1a5a5darkgray
Accent
#1724d9mediumblue
#1724d9mediumblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ca1e12firebrick
#ec3022crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1785d9dodgerblue
#1785d9dodgerblue

Contrast

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

Light mode
Text on background20.54:1AAA
Text on card20.08:1AAA
Primary button3.90:1AA Large
Secondary button9.62:1AAA
Muted text5.02:1AA
Accent9.18:1AAA
Destructive5.68:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.67:1AAA
Primary button3.90:1AA Large
Secondary button9.62:1AAA
Muted text5.77:1AA
Accent9.18:1AAA
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.001 240.304);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.021 191.953);
  --muted-foreground: oklch(0.477 0.005 192.223);
  --popover: oklch(0.984 0.003 240.325);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.003 240.325);
  --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.602 0.157 248.584);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.798 0.137 187.11);
  --secondary-foreground: oklch(0.223 0.035 188.779);
  --accent: oklch(0.427 0.259 266.453);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.537 0.205 29.682);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.602 0.157 248.584);
  --chart-1: oklch(0.602 0.157 248.584);
  --chart-2: oklch(0.798 0.137 187.11);
  --chart-3: oklch(0.427 0.259 266.453);
  --chart-4: oklch(0.836 0.144 187.087);
  --chart-5: oklch(0.605 0.161 249.056);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 240.298);
  --muted: oklch(0.282 0.025 190.487);
  --muted-foreground: oklch(0.719 0.004 192.305);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.602 0.157 248.584);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.798 0.137 187.11);
  --secondary-foreground: oklch(0.223 0.035 188.779);
  --accent: oklch(0.427 0.259 266.453);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.612 0.224 29.414);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.602 0.157 248.584);
  --chart-1: oklch(0.602 0.157 248.584);
  --chart-2: oklch(0.798 0.137 187.11);
  --chart-3: oklch(0.427 0.259 266.453);
  --chart-4: oklch(0.836 0.144 187.087);
  --chart-5: oklch(0.605 0.161 249.056);
}