Absolute for shadcn/ui

Absolute is a shadcn/ui theme built around a near-black primary color (#0c0405) with muted light red accents (#d5b4ba). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the near-black primary (#0c0405) on a red-tinted background (#0b0405).

Color palette

TokenLightDark
Background
#fdf7f8snow
#0b0405black
Foreground
#000000black
#ffffffwhite
Card
#fcf2f4lavenderblush
#0f0507black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf7f8snow
#0b0405black
Popover foreground
#000000black
#ffffffwhite
Primary
#0c0405black
#0c0405black
Primary foreground
#d46e80palevioletred
#d46e80palevioletred
Secondary
#e2d5d7gainsboro
#3a272bdarkslategray
Secondary foreground
#4f363adarkslategray
#d4bfc3silver
Muted
#e9e7e7linen
#181616black
Muted foreground
#483d3fdarkslategray
#c2b7b9silver
Accent
#d5b4basilver
#4f2b32darkslategray
Accent foreground
#371f24darkslategray
#e2cacfthistle
Destructive
#b80f0ffirebrick
#ec1313red
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c0405black
#0c0405black

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.21:1AAA
Primary button6.14:1AA
Secondary button7.64:1AAA
Muted text8.45:1AAA
Accent7.98:1AAA
Destructive6.52:1AA
Dark mode
Text on background20.30:1AAA
Text on card20.06:1AAA
Primary button6.14:1AA
Secondary button7.99:1AAA
Muted text9.26:1AAA
Accent7.85:1AAA
Destructive4.50:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 4.505);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.929 0.003 4.399);
  --muted-foreground: oklch(0.372 0.015 5.37);
  --popover: oklch(0.98 0.007 4.505);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.971 0.011 4.605);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.12 0.02 4.857);
  --primary-foreground: oklch(0.659 0.129 9.643);
  --secondary: oklch(0.883 0.015 4.769);
  --secondary-foreground: oklch(0.362 0.037 6.952);
  --accent: oklch(0.8 0.039 5.57);
  --accent-foreground: oklch(0.274 0.038 7.991);
  --destructive: oklch(0.496 0.197 28.465);
  --destructive-foreground: oklch(0.989 0.005 17.235);
  --ring: oklch(0.12 0.02 4.857);
  --chart-1: oklch(0.12 0.02 4.857);
  --chart-2: oklch(0.883 0.015 4.769);
  --chart-3: oklch(0.8 0.039 5.57);
  --chart-4: oklch(0.908 0.012 4.659);
  --chart-5: oklch(0.12 0.021 4.922);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.018 4.737);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.202 0.005 4.9);
  --muted-foreground: oklch(0.79 0.012 4.723);
  --popover: oklch(0.122 0.018 4.737);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.02 5.685);
  --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.12 0.02 4.857);
  --primary-foreground: oklch(0.659 0.129 9.643);
  --secondary: oklch(0.297 0.028 6.779);
  --secondary-foreground: oklch(0.824 0.024 5.061);
  --accent: oklch(0.338 0.053 8.477);
  --accent-foreground: oklch(0.861 0.027 5.137);
  --destructive: oklch(0.597 0.238 28.618);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.12 0.02 4.857);
  --chart-1: oklch(0.12 0.02 4.857);
  --chart-2: oklch(0.297 0.028 6.779);
  --chart-3: oklch(0.338 0.053 8.477);
  --chart-4: oklch(0.325 0.032 6.864);
  --chart-5: oklch(0.12 0.021 4.922);
}