Useless for shadcn/ui

Useless is a shadcn/ui theme built around a vivid blue primary color (#798ef6) with vivid green accents (#8ef679). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#798ef6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f6f6f9whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#f9f9fbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#f6f6f9whitesmoke
Primary
#798ef6cornflowerblue
#798ef6cornflowerblue
Primary foreground
#040d3amidnightblue
#040d3amidnightblue
Secondary
#f6798elightcoral
#f6798elightcoral
Secondary foreground
#3a040dblack
#3a040dblack
Muted
#f0eaeblinen
#150f10black
Muted foreground
#585556dimgray
#aaa7a7darkgray
Accent
#8ef679lightgreen
#8ef679lightgreen
Accent foreground
#0d3a04darkgreen
#0d3a04darkgreen
Destructive
#cc2005firebrick
#f42606orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#798ef6cornflowerblue
#798ef6cornflowerblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.22:1AA
Secondary button6.68:1AA
Muted text6.21:1AA
Accent9.63:1AAA
Destructive5.57:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.66:1AAA
Primary button6.22:1AA
Secondary button6.68:1AA
Muted text7.94:1AAA
Accent9.63:1AAA
Destructive4.10:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.943 0.006 5.622);
  --muted-foreground: oklch(0.453 0.005 5.711);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.677 0.156 273.045);
  --primary-foreground: oklch(0.188 0.087 266.457);
  --secondary: oklch(0.726 0.155 11.281);
  --secondary-foreground: oklch(0.225 0.083 17.582);
  --accent: oklch(0.883 0.19 140.368);
  --accent-foreground: oklch(0.304 0.094 140.621);
  --destructive: oklch(0.542 0.207 31.155);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.677 0.156 273.045);
  --chart-1: oklch(0.677 0.156 273.045);
  --chart-2: oklch(0.726 0.155 11.281);
  --chart-3: oklch(0.883 0.19 140.368);
  --chart-4: oklch(0.751 0.137 10.317);
  --chart-5: oklch(0.674 0.161 272.851);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 277.218);
  --muted: oklch(0.176 0.01 6.869);
  --muted-foreground: oklch(0.73 0.004 5.593);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.003 277.218);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.002 277.232);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.677 0.156 273.045);
  --primary-foreground: oklch(0.188 0.087 266.457);
  --secondary: oklch(0.726 0.155 11.281);
  --secondary-foreground: oklch(0.225 0.083 17.582);
  --accent: oklch(0.883 0.19 140.368);
  --accent-foreground: oklch(0.304 0.094 140.621);
  --destructive: oklch(0.618 0.238 31.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.677 0.156 273.045);
  --chart-1: oklch(0.677 0.156 273.045);
  --chart-2: oklch(0.726 0.155 11.281);
  --chart-3: oklch(0.883 0.19 140.368);
  --chart-4: oklch(0.751 0.137 10.317);
  --chart-5: oklch(0.674 0.161 272.851);
}