Useless for shadcn/ui

Useless is a shadcn/ui theme built around a deep yellow primary color (#27260c) with deep purple accents (#260c27). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#27260c) on a yellow-tinted background (#0b0b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0b04black
Foreground
#0e0d02black
#f9f9f5whitesmoke
Card
#ffffffwhite
#0b0b04black
Card foreground
#0e0d02black
#f9f9f5whitesmoke
Popover
#ffffffwhite
#0b0b04black
Popover foreground
#0e0d02black
#f9f9f5whitesmoke
Primary
#27260cblack
#27260cblack
Primary foreground
#c3bc3cgoldenrod
#c3bc3cgoldenrod
Secondary
#0c2726black
#0c2726black
Secondary foreground
#3cc3bcmediumturquoise
#3cc3bcmediumturquoise
Muted
#d9edeclavender
#122625black
Muted foreground
#586f6edimgray
#90a7a6darkgray
Accent
#260c27black
#260c27black
Accent foreground
#d78adbplum
#d78adbplum
Destructive
#8d3207saddlebrown
#f57438tomato
Destructive foreground
#fcdacabisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#27260cblack
#27260cblack

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button7.75:1AAA
Secondary button7.29:1AAA
Muted text4.40:1AA Large
Accent7.34:1AAA
Destructive6.21:1AA
Dark mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button7.75:1AAA
Secondary button7.29:1AAA
Muted text6.22:1AA
Accent7.34:1AAA
Destructive7.41:1AAA

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.155 0.027 107.101);
  --muted: oklch(0.931 0.021 193.166);
  --muted-foreground: oklch(0.524 0.028 192.544);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.155 0.027 107.101);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.155 0.027 107.101);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.262 0.041 106.162);
  --primary-foreground: oklch(0.779 0.145 106.332);
  --secondary: oklch(0.252 0.033 190.829);
  --secondary-foreground: oklch(0.745 0.114 190.101);
  --accent: oklch(0.209 0.062 325.557);
  --accent-foreground: oklch(0.74 0.141 325.127);
  --destructive: oklch(0.443 0.133 40.431);
  --destructive-foreground: oklch(0.912 0.044 46.372);
  --ring: oklch(0.262 0.041 106.162);
  --chart-1: oklch(0.262 0.041 106.162);
  --chart-2: oklch(0.252 0.033 190.829);
  --chart-3: oklch(0.209 0.062 325.557);
  --chart-4: oklch(0.294 0.04 190.654);
  --chart-5: oklch(0.265 0.043 106.203);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.017 106.216);
  --foreground: oklch(0.981 0.005 104.055);
  --muted: oklch(0.251 0.026 191.525);
  --muted-foreground: oklch(0.711 0.027 192.869);
  --popover: oklch(0.147 0.017 106.216);
  --popover-foreground: oklch(0.981 0.005 104.055);
  --card: oklch(0.147 0.017 106.216);
  --card-foreground: oklch(0.981 0.005 104.055);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.262 0.041 106.162);
  --primary-foreground: oklch(0.779 0.145 106.332);
  --secondary: oklch(0.252 0.033 190.829);
  --secondary-foreground: oklch(0.745 0.114 190.101);
  --accent: oklch(0.209 0.062 325.557);
  --accent-foreground: oklch(0.74 0.141 325.127);
  --destructive: oklch(0.702 0.174 43.268);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.262 0.041 106.162);
  --chart-1: oklch(0.262 0.041 106.162);
  --chart-2: oklch(0.252 0.033 190.829);
  --chart-3: oklch(0.209 0.062 325.557);
  --chart-4: oklch(0.294 0.04 190.654);
  --chart-5: oklch(0.265 0.043 106.203);
}