forsalo-my for shadcn/ui

forsalo-my is a shadcn/ui theme built around a deep green primary color (#176d17) with muted light green accents (#d3ded3). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid pink primary (#de1b6c) on a neutral background (#111111).

Color palette

TokenLightDark
Background
#ffffffwhite
#111111black
Foreground
#010401black
#ffffffwhite
Card
#fcfcfcsnow
#1a1a1ablack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#282828darkslategray
Popover foreground
#000000black
#282828darkslategray
Primary
#176d17darkgreen
#de1b6cmediumvioletred
Primary foreground
#ffffffwhite
#161616black
Secondary
#d3ded3lightgrey
#282828darkslategray
Secondary foreground
#374937darkslategray
#b4b4b4darkgray
Muted
#dbe6dbgainsboro
#161616black
Muted foreground
#435143darkslategray
#aebcaedarkgray
Accent
#d3ded3lightgrey
#282828darkslategray
Accent foreground
#374937darkslategray
#dcdcdcgainsboro
Destructive
#cc3f0ffirebrick
#f11616red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8e9e8lavender
#433d3ddarkslategray
Input
#e8e9e8lavender
#aaaaaadarkgray
Ring
#176d17darkgreen
#de1b6cmediumvioletred

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.54:1AAA
Primary button6.45:1AA
Secondary button6.99:1AA
Muted text6.53:1AA
Accent6.99:1AA
Destructive4.91:1AA
Dark mode
Text on background18.88:1AAA
Text on card17.40:1AAA
Primary button3.85:1AA Large
Secondary button7.10:1AAA
Muted text9.13:1AAA
Accent10.74:1AAA
Destructive4.30:1AA Large

CSS variables

Paste this into your globals.css to use forsalo-my in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.026 143.298);
  --muted: oklch(0.913 0.018 145.427);
  --muted-foreground: oklch(0.419 0.031 145.004);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.932 0.002 145.563);
  --input: oklch(0.932 0.002 145.563);
  --primary: oklch(0.469 0.143 142.86);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.89 0.018 145.418);
  --secondary-foreground: oklch(0.383 0.037 144.8);
  --accent: oklch(0.89 0.018 145.418);
  --accent-foreground: oklch(0.383 0.037 144.8);
  --destructive: oklch(0.568 0.185 36.304);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.469 0.143 142.86);
  --chart-1: oklch(0.469 0.143 142.86);
  --chart-2: oklch(0.89 0.018 145.418);
  --chart-3: oklch(0.89 0.018 145.418);
  --chart-4: oklch(0.912 0.015 145.454);
  --chart-5: oklch(0.475 0.148 142.806);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.178 0 180);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.2 0 180);
  --muted-foreground: oklch(0.781 0.026 145.318);
  --popover: oklch(0.277 0 172.875);
  --popover-foreground: oklch(0.277 0 172.875);
  --card: oklch(0.218 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.366 0.008 17.51);
  --input: oklch(0.738 0 164.055);
  --primary: oklch(0.587 0.224 4.398);
  --primary-foreground: oklch(0.2 0 180);
  --secondary: oklch(0.277 0 172.875);
  --secondary-foreground: oklch(0.77 0 141.34);
  --accent: oklch(0.277 0 172.875);
  --accent-foreground: oklch(0.894 0 180);
  --destructive: oklch(0.608 0.241 28.515);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.588 0.225 4.429);
  --chart-1: oklch(0.587 0.224 4.398);
  --chart-2: oklch(0.277 0 172.875);
  --chart-3: oklch(0.277 0 172.875);
  --chart-4: oklch(0.308 0 165.964);
  --chart-5: oklch(0.592 0.229 5.072);
}