Embossing for shadcn/ui

Embossing is a shadcn/ui theme built around a near-black primary color (#060802) with near-black accents (#050208). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#060802) on a green-tinted background (#0b1004).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b1004black
Foreground
#060902black
#ffffffwhite
Card
#ffffffwhite
#0b1004black
Card foreground
#060902black
#ffffffwhite
Popover
#ffffffwhite
#0b1004black
Popover foreground
#060902black
#ffffffwhite
Primary
#060802black
#060802black
Primary foreground
#76ac2aolivedrab
#76ac2aolivedrab
Secondary
#050208black
#050208black
Secondary foreground
#ccb5edthistle
#ccb5edthistle
Muted
#e9e4f2lavender
#130d1bblack
Muted foreground
#3f3a45darkslategray
#bebac5silver
Accent
#050208black
#050208black
Accent foreground
#ccb5edthistle
#ccb5edthistle
Destructive
#670404maroon
#e10909red
Destructive foreground
#fba2a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#060802black
#060802black

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button7.38:1AAA
Secondary button11.19:1AAA
Muted text8.83:1AAA
Accent11.19:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button7.38:1AAA
Secondary button11.19:1AAA
Muted text9.97:1AAA
Accent11.19:1AAA
Destructive4.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.13 0.023 124.115);
  --muted: oklch(0.926 0.02 304.753);
  --muted-foreground: oklch(0.358 0.021 304.252);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.13 0.023 124.115);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.13 0.023 124.115);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.128 0.021 124.207);
  --primary-foreground: oklch(0.683 0.166 130.031);
  --secondary: oklch(0.099 0.024 306.351);
  --secondary-foreground: oklch(0.812 0.081 303.649);
  --accent: oklch(0.099 0.024 306.351);
  --accent-foreground: oklch(0.812 0.081 303.649);
  --destructive: oklch(0.325 0.129 28.486);
  --destructive-foreground: oklch(0.801 0.106 19.673);
  --ring: oklch(0.128 0.021 124.207);
  --chart-1: oklch(0.128 0.021 124.207);
  --chart-2: oklch(0.099 0.024 306.351);
  --chart-3: oklch(0.099 0.024 306.351);
  --chart-4: oklch(0.137 0.036 302.811);
  --chart-5: oklch(0.129 0.022 124.172);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.164 0.027 125.959);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.176 0.029 302.673);
  --muted-foreground: oklch(0.795 0.017 304.753);
  --popover: oklch(0.164 0.027 125.959);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.164 0.027 125.959);
  --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.128 0.021 124.207);
  --primary-foreground: oklch(0.683 0.166 130.031);
  --secondary: oklch(0.099 0.024 306.351);
  --secondary-foreground: oklch(0.812 0.081 303.649);
  --accent: oklch(0.099 0.024 306.351);
  --accent-foreground: oklch(0.812 0.081 303.649);
  --destructive: oklch(0.574 0.232 28.93);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.128 0.021 124.207);
  --chart-1: oklch(0.128 0.021 124.207);
  --chart-2: oklch(0.099 0.024 306.351);
  --chart-3: oklch(0.099 0.024 306.351);
  --chart-4: oklch(0.137 0.036 302.811);
  --chart-5: oklch(0.129 0.022 124.172);
}