Investor for shadcn/ui

Investor is a shadcn/ui theme built around a near-white primary color (#faf8fc) with near-white accents (#fbf8fc). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the near-white primary (#faf8fc) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#000000black
Foreground
#020104black
#ffffffwhite
Card
#f9f7fdghostwhite
#000000black
Card foreground
#020104black
#ffffffwhite
Popover
#f9f7fdghostwhite
#000000black
Popover foreground
#020104black
#ffffffwhite
Primary
#faf8fcghostwhite
#faf8fcghostwhite
Primary foreground
#5b3f83darkslateblue
#5b3f83darkslateblue
Secondary
#f8f8fcghostwhite
#f8f8fcghostwhite
Secondary foreground
#3f4583darkslateblue
#3f4583darkslateblue
Muted
#cccee5lightgrey
#1a1c33midnightblue
Muted foreground
#3d3e52darkslategray
#adafc2silver
Accent
#fbf8fcghostwhite
#fbf8fcghostwhite
Accent foreground
#7d3f83rebeccapurple
#7d3f83rebeccapurple
Destructive
#d22a04firebrick
#fa3a0forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faf8fcghostwhite
#faf8fcghostwhite

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button8.00:1AAA
Secondary button8.31:1AAA
Muted text6.74:1AA
Accent6.85:1AA
Destructive5.15:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.00:1AAA
Secondary button8.31:1AAA
Muted text7.72:1AAA
Accent6.85:1AA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 304.931);
  --foreground: oklch(0.081 0.017 306.159);
  --muted: oklch(0.858 0.032 281.57);
  --muted-foreground: oklch(0.372 0.034 280.566);
  --popover: oklch(0.98 0.008 304.931);
  --popover-foreground: oklch(0.081 0.017 306.159);
  --card: oklch(0.98 0.008 304.931);
  --card-foreground: oklch(0.081 0.017 306.159);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.982 0.005 304.975);
  --primary-foreground: oklch(0.432 0.111 301.111);
  --secondary: oklch(0.981 0.004 282.139);
  --secondary-foreground: oklch(0.416 0.103 277.048);
  --accent: oklch(0.983 0.006 323.162);
  --accent-foreground: oklch(0.473 0.126 324.151);
  --destructive: oklch(0.56 0.207 32.546);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.982 0.005 304.975);
  --chart-1: oklch(0.982 0.005 304.975);
  --chart-2: oklch(0.981 0.004 282.139);
  --chart-3: oklch(0.983 0.006 323.162);
  --chart-4: oklch(1.009 0.002 102.247);
  --chart-5: oklch(0.981 0.005 304.969);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.236 0.044 278.461);
  --muted-foreground: oklch(0.758 0.028 281.576);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.982 0.005 304.975);
  --primary-foreground: oklch(0.432 0.111 301.111);
  --secondary: oklch(0.981 0.004 282.139);
  --secondary-foreground: oklch(0.416 0.103 277.048);
  --accent: oklch(0.983 0.006 323.162);
  --accent-foreground: oklch(0.473 0.126 324.151);
  --destructive: oklch(0.643 0.232 32.907);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.982 0.005 304.975);
  --chart-1: oklch(0.982 0.005 304.975);
  --chart-2: oklch(0.981 0.004 282.139);
  --chart-3: oklch(0.983 0.006 323.162);
  --chart-4: oklch(1.009 0.002 102.247);
  --chart-5: oklch(0.981 0.005 304.969);
}