Absolute for shadcn/ui

Absolute is a shadcn/ui theme built around a near-black primary color (#050505) with near-black accents (#050505). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#050505) on a cyan-tinted background (#050e10).

Color palette

TokenLightDark
Background
#ffffffwhite
#050e10black
Foreground
#020708black
#fcfdfdwhite
Card
#fcfcfcsnow
#061214black
Card foreground
#010404black
#ffffffwhite
Popover
#ffffffwhite
#050e10black
Popover foreground
#020708black
#fcfdfdwhite
Primary
#050505black
#050505black
Primary foreground
#97a3a5darkgray
#97a3a5darkgray
Secondary
#050505black
#050505black
Secondary foreground
#a59997darkgray
#a59997darkgray
Muted
#f5eceblinen
#140c0ablack
Muted foreground
#755a57dimgray
#a88d8arosybrown
Accent
#050505black
#050505black
Accent foreground
#a59997darkgray
#a59997darkgray
Destructive
#a01d08firebrick
#e92a0corangered
Destructive foreground
#fde1ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#050505black
#050505black

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.13:1AAA
Primary button7.84:1AAA
Secondary button7.38:1AAA
Muted text5.37:1AA
Accent7.38:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.02:1AAA
Primary button7.84:1AAA
Secondary button7.38:1AAA
Muted text6.30:1AA
Accent7.38:1AAA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.013 203.48);
  --muted: oklch(0.949 0.01 26.508);
  --muted-foreground: oklch(0.495 0.036 27.102);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.013 203.48);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.097 0.01 203.48);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.117 0.002 205.992);
  --primary-foreground: oklch(0.707 0.014 206.336);
  --secondary: oklch(0.115 0.002 26.924);
  --secondary-foreground: oklch(0.692 0.014 26.589);
  --accent: oklch(0.115 0.002 26.924);
  --accent-foreground: oklch(0.692 0.014 26.589);
  --destructive: oklch(0.457 0.169 31.435);
  --destructive-foreground: oklch(0.932 0.031 28.139);
  --ring: oklch(0.117 0.002 205.992);
  --chart-1: oklch(0.117 0.002 205.992);
  --chart-2: oklch(0.115 0.002 26.924);
  --chart-3: oklch(0.115 0.002 26.924);
  --chart-4: oklch(0.157 0.003 26.563);
  --chart-5: oklch(0.117 0.002 205.809);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.016 205.367);
  --foreground: oklch(0.993 0.001 206.433);
  --muted: oklch(0.164 0.015 27.352);
  --muted-foreground: oklch(0.668 0.033 26.851);
  --popover: oklch(0.156 0.016 205.367);
  --popover-foreground: oklch(0.993 0.001 206.433);
  --card: oklch(0.171 0.018 206.023);
  --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.117 0.002 205.992);
  --primary-foreground: oklch(0.707 0.014 206.336);
  --secondary: oklch(0.115 0.002 26.924);
  --secondary-foreground: oklch(0.692 0.014 26.589);
  --accent: oklch(0.115 0.002 26.924);
  --accent-foreground: oklch(0.692 0.014 26.589);
  --destructive: oklch(0.601 0.226 31.26);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.117 0.002 205.992);
  --chart-1: oklch(0.117 0.002 205.992);
  --chart-2: oklch(0.115 0.002 26.924);
  --chart-3: oklch(0.115 0.002 26.924);
  --chart-4: oklch(0.157 0.003 26.563);
  --chart-5: oklch(0.117 0.002 205.809);
}