mamo-shared for shadcn/ui

mamo-shared is a shadcn/ui theme built around a vivid blue primary color (#0098fd) with near-white accents (#ebebeb). The light mode uses a neutral background (#ffffff). Dark mode switches to a purple primary (#77397f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#131514black
#fbf8fcghostwhite
Card
#f9f9f9ghostwhite
#000000black
Card foreground
#131514black
#fbf8fcghostwhite
Popover
#f9f9f9ghostwhite
#000000black
Popover foreground
#131514black
#fbf8fcghostwhite
Primary
#0098fddodgerblue
#77397frebeccapurple
Primary foreground
#ffffffwhite
#f8f1f9whitesmoke
Secondary
#aaca3fyellowgreen
#417f39darkolivegreen
Secondary foreground
#1f3305darkgreen
#ffffffwhite
Muted
#f1f1f1whitesmoke
#1e2b1dblack
Muted foreground
#747474dimgray
#a0b49ddarkgray
Accent
#ebebeblinen
#417f39darkolivegreen
Accent foreground
#131514black
#ffffffwhite
Destructive
#da3636crimson
#f07642coral
Destructive foreground
#ffdbccbisque
#000000black
Border
#d6d6d6lightgrey
#271f28darkslategray
Input
#e5e4e7gainsboro
#271f28darkslategray
Ring
#0098fddodgerblue
#77397frebeccapurple

Contrast

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

Light mode
Text on background18.33:1AAA
Text on card17.43:1AAA
Primary button3.03:1AA Large
Secondary button7.31:1AAA
Muted text4.14:1AA Large
Accent15.43:1AAA
Destructive3.56:1AA Large
Dark mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button7.10:1AAA
Secondary button4.87:1AA
Muted text6.71:1AA
Accent4.87:1AA
Destructive7.38:1AAA

CSS variables

Paste this into your globals.css to use mamo-shared in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.193 0.004 164.63);
  --muted: oklch(0.959 0 187.595);
  --muted-foreground: oklch(0.558 0 225);
  --popover: oklch(0.982 0 161.565);
  --popover-foreground: oklch(0.193 0.004 164.63);
  --card: oklch(0.982 0 180);
  --card-foreground: oklch(0.193 0.004 164.63);
  --border: oklch(0.876 0 180);
  --input: oklch(0.921 0.004 302.153);
  --primary: oklch(0.666 0.182 248.717);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.79 0.165 121.564);
  --secondary-foreground: oklch(0.293 0.074 130.626);
  --accent: oklch(0.941 0 180);
  --accent-foreground: oklch(0.193 0.004 164.63);
  --destructive: oklch(0.587 0.2 25.919);
  --destructive-foreground: oklch(0.917 0.045 44.55);
  --ring: oklch(0.666 0.182 248.717);
  --chart-1: oklch(0.666 0.182 248.717);
  --chart-2: oklch(0.79 0.165 121.564);
  --chart-3: oklch(0.809 0.149 69.122);
  --chart-4: oklch(0.885 0 172.405);
  --chart-5: oklch(0.603 0.097 121.402);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.006 322.135);
  --muted: oklch(0.272 0.031 141.719);
  --muted-foreground: oklch(0.747 0.039 141.933);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.006 322.135);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.006 322.135);
  --border: oklch(0.253 0.021 322.384);
  --input: oklch(0.253 0.021 322.384);
  --primary: oklch(0.453 0.128 322.834);
  --primary-foreground: oklch(0.965 0.013 322.157);
  --secondary: oklch(0.537 0.121 141.424);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.537 0.121 141.424);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.7 0.164 42.499);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.453 0.128 322.834);
  --chart-1: oklch(0.453 0.128 322.834);
  --chart-2: oklch(0.537 0.121 141.424);
  --chart-3: oklch(0.537 0.121 141.424);
  --chart-4: oklch(0.569 0.129 141.421);
  --chart-5: oklch(0.453 0.137 322.849);
}