Wasteful for shadcn/ui

Wasteful is a shadcn/ui theme built around a near-black primary color (#020e07) with near-black accents (#0e0702). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#020e07) on a green-tinted background (#040b07).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b07black
Foreground
#041109black
#f6f9f7whitesmoke
Card
#ffffffwhite
#040b07black
Card foreground
#041109black
#f6f9f7whitesmoke
Popover
#ffffffwhite
#040b07black
Popover foreground
#041109black
#f6f9f7whitesmoke
Primary
#020e07black
#020e07black
Primary foreground
#17c45fmediumseagreen
#17c45fmediumseagreen
Secondary
#07020eblack
#07020eblack
Secondary foreground
#ceb1f6plum
#ceb1f6plum
Muted
#d7cde4gainsboro
#241b32darkslategray
Muted foreground
#534c5ddimgray
#a9a2b3darkgray
Accent
#0e0702black
#0e0702black
Accent foreground
#eb9456sandybrown
#eb9456sandybrown
Destructive
#79300csaddlebrown
#e85d17chocolate
Destructive foreground
#f9d2bepeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020e07black
#020e07black

Contrast

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

Light mode
Text on background19.27:1AAA
Text on card19.27:1AAA
Primary button8.53:1AAA
Secondary button11.00:1AAA
Muted text5.37:1AA
Accent8.49:1AAA
Destructive6.69:1AA
Dark mode
Text on background18.75:1AAA
Text on card18.75:1AAA
Primary button8.53:1AAA
Secondary button11.00:1AAA
Muted text6.66:1AA
Accent8.49:1AAA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.16 0.026 159.012);
  --muted: oklch(0.864 0.033 304.518);
  --muted-foreground: oklch(0.429 0.029 304.117);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.16 0.026 159.012);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.16 0.026 159.012);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.146 0.027 160.242);
  --primary-foreground: oklch(0.72 0.192 150.321);
  --secondary: oklch(0.107 0.038 306.264);
  --secondary-foreground: oklch(0.81 0.099 303.325);
  --accent: oklch(0.135 0.022 69.369);
  --accent-foreground: oklch(0.745 0.131 54.708);
  --destructive: oklch(0.407 0.111 43.006);
  --destructive-foreground: oklch(0.89 0.051 48.121);
  --ring: oklch(0.146 0.027 160.242);
  --chart-1: oklch(0.146 0.027 160.242);
  --chart-2: oklch(0.107 0.038 306.264);
  --chart-3: oklch(0.135 0.022 69.369);
  --chart-4: oklch(0.14 0.054 300.955);
  --chart-5: oklch(0.146 0.028 160.178);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.015 160.903);
  --foreground: oklch(0.979 0.005 160.902);
  --muted: oklch(0.244 0.044 302.422);
  --muted-foreground: oklch(0.725 0.025 304.564);
  --popover: oklch(0.139 0.015 160.903);
  --popover-foreground: oklch(0.979 0.005 160.902);
  --card: oklch(0.139 0.015 160.903);
  --card-foreground: oklch(0.979 0.005 160.902);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.146 0.027 160.242);
  --primary-foreground: oklch(0.72 0.192 150.321);
  --secondary: oklch(0.107 0.038 306.264);
  --secondary-foreground: oklch(0.81 0.099 303.325);
  --accent: oklch(0.135 0.022 69.369);
  --accent-foreground: oklch(0.745 0.131 54.708);
  --destructive: oklch(0.649 0.187 41.886);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.146 0.027 160.242);
  --chart-1: oklch(0.146 0.027 160.242);
  --chart-2: oklch(0.107 0.038 306.264);
  --chart-3: oklch(0.135 0.022 69.369);
  --chart-4: oklch(0.14 0.054 300.955);
  --chart-5: oklch(0.146 0.028 160.178);
}