Positive for shadcn/ui

Positive is a shadcn/ui theme built around a deep red primary color (#4e2018) with deep cyan accents (#18464e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#4e2018) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#ffffffwhite
#040201black
Foreground
#0c0504black
#f9f6f6whitesmoke
Card
#fcfcfcsnow
#080302black
Card foreground
#080302black
#fbf9f9snow
Popover
#ffffffwhite
#040201black
Popover foreground
#0c0504black
#f9f6f6whitesmoke
Primary
#4e2018maroon
#4e2018maroon
Primary foreground
#e7b9b1lightpink
#e7b9b1lightpink
Secondary
#18464edarkslategray
#18464edarkslategray
Secondary foreground
#b1dfe7powderblue
#b1dfe7powderblue
Muted
#e2eceelavender
#111b1dblack
Muted foreground
#4b5658darkslategray
#a7b2b4darkgray
Accent
#18464edarkslategray
#18464edarkslategray
Accent foreground
#b1dfe7powderblue
#b1dfe7powderblue
Destructive
#6f1a0bmaroon
#e33516orangered
Destructive foreground
#f8bfb5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4e2018maroon
#4e2018maroon

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.06:1AAA
Primary button7.74:1AAA
Secondary button7.23:1AAA
Muted text6.30:1AA
Accent7.23:1AAA
Destructive7.14:1AAA
Dark mode
Text on background19.30:1AAA
Text on card19.53:1AAA
Primary button7.74:1AAA
Secondary button7.23:1AAA
Muted text8.07:1AAA
Accent7.23:1AAA
Destructive4.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.016 34.954);
  --muted: oklch(0.936 0.011 209.442);
  --muted-foreground: oklch(0.445 0.014 209.433);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.016 34.954);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.109 0.014 35.09);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.309 0.07 31.637);
  --primary-foreground: oklch(0.825 0.054 29.84);
  --secondary: oklch(0.365 0.05 211.056);
  --secondary-foreground: oklch(0.873 0.048 209.494);
  --accent: oklch(0.365 0.05 211.056);
  --accent-foreground: oklch(0.873 0.048 209.494);
  --destructive: oklch(0.361 0.122 32.34);
  --destructive-foreground: oklch(0.852 0.067 29.96);
  --ring: oklch(0.309 0.07 31.637);
  --chart-1: oklch(0.309 0.07 31.637);
  --chart-2: oklch(0.365 0.05 211.056);
  --chart-3: oklch(0.365 0.05 211.056);
  --chart-4: oklch(0.401 0.056 211.158);
  --chart-5: oklch(0.309 0.074 31.778);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.011 35.09);
  --foreground: oklch(0.976 0.003 29.478);
  --muted: oklch(0.213 0.015 209.573);
  --muted-foreground: oklch(0.755 0.013 209.434);
  --popover: oklch(0.087 0.011 35.09);
  --popover-foreground: oklch(0.976 0.003 29.478);
  --card: oklch(0.109 0.014 35.09);
  --card-foreground: oklch(0.984 0.002 29.475);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.309 0.07 31.637);
  --primary-foreground: oklch(0.825 0.054 29.84);
  --secondary: oklch(0.365 0.05 211.056);
  --secondary-foreground: oklch(0.873 0.048 209.494);
  --accent: oklch(0.365 0.05 211.056);
  --accent-foreground: oklch(0.873 0.048 209.494);
  --destructive: oklch(0.6 0.214 32.122);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.309 0.07 31.637);
  --chart-1: oklch(0.309 0.07 31.637);
  --chart-2: oklch(0.365 0.05 211.056);
  --chart-3: oklch(0.365 0.05 211.056);
  --chart-4: oklch(0.401 0.056 211.158);
  --chart-5: oklch(0.309 0.074 31.778);
}