Rise for shadcn/ui

Rise is a shadcn/ui theme built around a near-black primary color (#202222) with near-black accents (#222021). The light mode uses a neutral background (#fbfefd). Dark mode keeps the near-black primary (#202222) on a teal-tinted background (#04100d).

Color palette

TokenLightDark
Background
#fbfefdwhite
#04100dblack
Foreground
#000000black
#fcfdfdwhite
Card
#fbfefdwhite
#04100dblack
Card foreground
#000000black
#fcfdfdwhite
Popover
#fbfefdwhite
#04100dblack
Popover foreground
#000000black
#fcfdfdwhite
Primary
#202222black
#202222black
Primary foreground
#b7bdbbsilver
#b7bdbbsilver
Secondary
#222021black
#222021black
Secondary foreground
#bdb7b9silver
#bdb7b9silver
Muted
#e8d8ddgainsboro
#27171bblack
Muted foreground
#575253dimgray
#ada8aadarkgray
Accent
#222021black
#222021black
Accent foreground
#bdb7b9silver
#bdb7b9silver
Destructive
#662505maroon
#f45c10orangered
Destructive foreground
#fbc0a2navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#202222black
#202222black

Contrast

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

Light mode
Text on background20.67:1AAA
Text on card20.67:1AAA
Primary button8.35:1AAA
Secondary button8.20:1AAA
Muted text5.60:1AA
Accent8.20:1AAA
Destructive7.15:1AAA
Dark mode
Text on background18.96:1AAA
Text on card18.96:1AAA
Primary button8.35:1AAA
Secondary button8.20:1AAA
Muted text7.34:1AAA
Accent8.20:1AAA
Destructive6.38:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 178.698);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.898 0.018 359.361);
  --muted-foreground: oklch(0.443 0.007 359.228);
  --popover: oklch(0.994 0.003 178.698);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 178.698);
  --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.251 0.004 178.305);
  --primary-foreground: oklch(0.793 0.006 178.548);
  --secondary: oklch(0.246 0.004 359.269);
  --secondary-foreground: oklch(0.786 0.007 359.02);
  --accent: oklch(0.246 0.004 359.269);
  --accent-foreground: oklch(0.786 0.007 359.02);
  --destructive: oklch(0.358 0.102 42.503);
  --destructive-foreground: oklch(0.853 0.079 47.777);
  --ring: oklch(0.251 0.004 178.305);
  --chart-1: oklch(0.251 0.004 178.305);
  --chart-2: oklch(0.246 0.004 359.269);
  --chart-3: oklch(0.246 0.004 359.269);
  --chart-4: oklch(0.277 0.005 359.298);
  --chart-5: oklch(0.253 0.007 177.949);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.02 176.191);
  --foreground: oklch(0.993 0.001 178.767);
  --muted: oklch(0.226 0.027 2.019);
  --muted-foreground: oklch(0.737 0.006 359.019);
  --popover: oklch(0.16 0.02 176.191);
  --popover-foreground: oklch(0.993 0.001 178.767);
  --card: oklch(0.16 0.02 176.191);
  --card-foreground: oklch(0.993 0.001 178.767);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.251 0.004 178.305);
  --primary-foreground: oklch(0.793 0.006 178.548);
  --secondary: oklch(0.246 0.004 359.269);
  --secondary-foreground: oklch(0.786 0.007 359.02);
  --accent: oklch(0.246 0.004 359.269);
  --accent-foreground: oklch(0.786 0.007 359.02);
  --destructive: oklch(0.667 0.2 40.912);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.251 0.004 178.305);
  --chart-1: oklch(0.251 0.004 178.305);
  --chart-2: oklch(0.246 0.004 359.269);
  --chart-3: oklch(0.246 0.004 359.269);
  --chart-4: oklch(0.277 0.005 359.298);
  --chart-5: oklch(0.253 0.007 177.949);
}