Mosque for shadcn/ui

Mosque is a shadcn/ui theme built around a muted green primary color (#a3ad94) with muted light green accents (#c9d2bc). The light mode uses a neutral background (#fafbf8). Dark mode keeps the muted green primary (#a3ad94) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fafbf8snow
#000000black
Foreground
#000000black
#ffffffwhite
Card
#f8faf5whitesmoke
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fafbf8snow
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#a3ad94darkgray
#a3ad94darkgray
Primary foreground
#080907black
#080907black
Secondary
#dee1dbgainsboro
#151712black
Secondary foreground
#464b3fdarkslategray
#afb7a4darkgray
Muted
#e9ede3beige
#181c12black
Muted foreground
#61635fdimgray
#9ea09cdarkgray
Accent
#c9d2bcsilver
#2d3422darkslategray
Accent foreground
#303725darkslategray
#c7d1b8silver
Destructive
#c10f06firebrick
#f82216red
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a3ad94darkgray
#a3ad94darkgray

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card19.93:1AAA
Primary button8.51:1AAA
Secondary button6.79:1AA
Muted text5.12:1AA
Accent7.88:1AAA
Destructive6.08:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.51:1AAA
Secondary button8.72:1AAA
Muted text6.54:1AA
Accent8.09:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 124.406);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.941 0.015 124.57);
  --muted-foreground: oklch(0.496 0.006 124.529);
  --popover: oklch(0.988 0.004 124.406);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.006 124.438);
  --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.733 0.036 125.065);
  --primary-foreground: oklch(0.136 0.005 124.161);
  --secondary: oklch(0.906 0.008 124.478);
  --secondary-foreground: oklch(0.404 0.021 125.111);
  --accent: oklch(0.85 0.03 124.863);
  --accent-foreground: oklch(0.323 0.031 125.795);
  --destructive: oklch(0.514 0.205 29.545);
  --destructive-foreground: oklch(0.989 0.005 20.952);
  --ring: oklch(0.733 0.036 125.065);
  --chart-1: oklch(0.733 0.036 125.065);
  --chart-2: oklch(0.906 0.008 124.478);
  --chart-3: oklch(0.85 0.03 124.863);
  --chart-4: oklch(0.928 0.006 124.444);
  --chart-5: oklch(0.739 0.044 125.226);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.219 0.021 125.769);
  --muted-foreground: oklch(0.703 0.006 124.464);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.733 0.036 125.065);
  --primary-foreground: oklch(0.136 0.005 124.161);
  --secondary: oklch(0.2 0.01 125.074);
  --secondary-foreground: oklch(0.768 0.029 124.885);
  --accent: oklch(0.314 0.033 125.919);
  --accent-foreground: oklch(0.845 0.035 124.949);
  --destructive: oklch(0.624 0.242 29.36);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.733 0.036 125.065);
  --chart-1: oklch(0.733 0.036 125.065);
  --chart-2: oklch(0.2 0.01 125.074);
  --chart-3: oklch(0.314 0.033 125.919);
  --chart-4: oklch(0.236 0.013 125.162);
  --chart-5: oklch(0.739 0.044 125.226);
}