Nonsense for shadcn/ui

Nonsense is a shadcn/ui theme built around a cyan primary color (#5090aa) with green accents (#90aa50). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#5090aa) on a cyan-tinted background (#060c0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#060c0eblack
Foreground
#041116black
#fcfdfdwhite
Card
#fcfcfcsnow
#080f12black
Card foreground
#030d11black
#ffffffwhite
Popover
#fcfcfcsnow
#080f12black
Popover foreground
#030d11black
#ffffffwhite
Primary
#5090aasteelblue
#5090aasteelblue
Primary foreground
#000000black
#000000black
Secondary
#aa5090palevioletred
#aa5090palevioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebe5ealavender
#1a1418black
Muted foreground
#434243darkslategray
#bdbcbdsilver
Accent
#90aa50yellowgreen
#90aa50yellowgreen
Accent foreground
#1b1f0fblack
#1b1f0fblack
Destructive
#6f260bsaddlebrown
#e95620chocolate
Destructive foreground
#f8c7b5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5090aasteelblue
#5090aasteelblue

Contrast

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

Light mode
Text on background19.14:1AAA
Text on card19.21:1AAA
Primary button5.93:1AA
Secondary button4.92:1AA
Muted text8.04:1AAA
Accent6.44:1AA
Destructive7.05:1AAA
Dark mode
Text on background19.31:1AAA
Text on card19.32:1AAA
Primary button5.93:1AA
Secondary button4.92:1AA
Muted text9.60:1AAA
Accent6.44:1AA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.166 0.023 223.527);
  --muted: oklch(0.928 0.01 335.384);
  --muted-foreground: oklch(0.379 0.002 335.305);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.151 0.02 221.457);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.151 0.02 221.457);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.622 0.076 225.817);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.565 0.142 339.419);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.699 0.121 122.661);
  --accent-foreground: oklch(0.23 0.03 121.722);
  --destructive: oklch(0.375 0.111 38.473);
  --destructive-foreground: oklch(0.867 0.061 40.931);
  --ring: oklch(0.622 0.076 225.817);
  --chart-1: oklch(0.622 0.076 225.817);
  --chart-2: oklch(0.565 0.142 339.419);
  --chart-3: oklch(0.699 0.121 122.661);
  --chart-4: oklch(0.589 0.138 339.135);
  --chart-5: oklch(0.626 0.082 226.165);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.011 222.212);
  --foreground: oklch(0.993 0 223.135);
  --muted: oklch(0.2 0.015 336.463);
  --muted-foreground: oklch(0.797 0.002 335.236);
  --popover: oklch(0.162 0.013 223.838);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.162 0.013 223.838);
  --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.622 0.076 225.817);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.565 0.142 339.419);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.699 0.121 122.661);
  --accent-foreground: oklch(0.23 0.03 121.722);
  --destructive: oklch(0.643 0.193 38.261);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.622 0.076 225.817);
  --chart-1: oklch(0.622 0.076 225.817);
  --chart-2: oklch(0.565 0.142 339.419);
  --chart-3: oklch(0.699 0.121 122.661);
  --chart-4: oklch(0.589 0.138 339.135);
  --chart-5: oklch(0.626 0.082 226.165);
}