Right for shadcn/ui

Right is a shadcn/ui theme built around a deep indigo primary color (#2e2e57) with deep yellow accents (#57562e). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#2e2e57) on an indigo-tinted background (#05050f).

Color palette

TokenLightDark
Background
#ffffffwhite
#05050fblack
Foreground
#020209black
#ffffffwhite
Card
#fcfcfcsnow
#060713black
Card foreground
#010104black
#ffffffwhite
Popover
#fcfcfcsnow
#060713black
Popover foreground
#010104black
#ffffffwhite
Primary
#2e2e57darkslategray
#2e2e57darkslategray
Primary foreground
#d0d1e6gainsboro
#d0d1e6gainsboro
Secondary
#57562edarkolivegreen
#57562edarkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5e5e0gainsboro
#1f1e1ablack
Muted foreground
#505049darkslategray
#b6b6afdarkgray
Accent
#57562edarkolivegreen
#57562edarkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#95180fdarkred
#df2316crimson
Destructive foreground
#fbdcdamistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e2e57darkslategray
#2e2e57darkslategray

Contrast

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

Light mode
Text on background20.68:1AAA
Text on card20.39:1AAA
Primary button8.45:1AAA
Secondary button7.55:1AAA
Muted text6.45:1AA
Accent7.55:1AAA
Destructive6.80:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.07:1AAA
Primary button8.45:1AAA
Secondary button7.55:1AAA
Muted text8.16:1AAA
Accent7.55:1AAA
Destructive4.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.089 0.026 278.235);
  --muted: oklch(0.922 0.007 105.745);
  --muted-foreground: oklch(0.43 0.012 106.108);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.071 0.021 278.235);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.071 0.021 278.235);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.324 0.071 280.942);
  --primary-foreground: oklch(0.866 0.03 284.983);
  --secondary: oklch(0.444 0.059 107.74);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.444 0.059 107.74);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.432 0.161 29.534);
  --destructive-foreground: oklch(0.92 0.035 22.675);
  --ring: oklch(0.324 0.071 280.942);
  --chart-1: oklch(0.324 0.071 280.942);
  --chart-2: oklch(0.444 0.059 107.74);
  --chart-3: oklch(0.444 0.059 107.74);
  --chart-4: oklch(0.479 0.065 107.763);
  --chart-5: oklch(0.319 0.078 280.309);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.024 281.212);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.235 0.009 106.295);
  --muted-foreground: oklch(0.775 0.01 105.856);
  --popover: oklch(0.134 0.028 280.944);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.134 0.028 280.944);
  --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.324 0.071 280.942);
  --primary-foreground: oklch(0.866 0.03 284.983);
  --secondary: oklch(0.444 0.059 107.74);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.444 0.059 107.74);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.58 0.22 29.659);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.324 0.071 280.942);
  --chart-1: oklch(0.324 0.071 280.942);
  --chart-2: oklch(0.444 0.059 107.74);
  --chart-3: oklch(0.444 0.059 107.74);
  --chart-4: oklch(0.479 0.065 107.763);
  --chart-5: oklch(0.319 0.078 280.309);
}