Skip to content

Galley, a shadcn/ui preset

A green for developer tools, with Mona Sans and a cool off-white. It comes from Galley, one of our website themes.

Fonts: Mona Sans · radius 0.625rem · light and dark · lowest text contrast 5.05:1

npx shadcn@latest add https://www.themes.dev/r/presets/galley.json
Edit in the generator

Galley on six free blocks from themes.dev UI. Scroll inside the preview.

The colours

The main variables, light and dark. The full set of 31 per mode, sidebar and charts included, is in the CSS below.

Light

  • background#f4f7f5
  • foreground#0b1a17
  • primary#0b7a3b
  • primary-foreground#ffffff
  • secondary#e6ece8
  • muted-foreground#46574f
  • accent#dcf3e3
  • border#d3ded8
  • destructive#b42318
  • ring#0b7a3b
  • chart-1#7bd994
  • chart-2#53a76b
  • chart-3#3a8751
  • chart-4#276a3c
  • chart-5#16522b

Dark

  • background#111e19
  • foreground#e6ede9
  • primary#3deb6b
  • primary-foreground#03140c
  • secondary#212f2a
  • muted-foreground#aebdb5
  • accent#143b28
  • border#293e36
  • destructive#ff998c
  • ring#3deb6b
  • chart-1#7fdd97
  • chart-2#60b477
  • chart-3#47935d
  • chart-4#307344
  • chart-5#205b33

Contrast, checked

Every pair shadcn/ui draws text with, measured as WCAG 2 contrast (AA needs 4.5:1) and APCA Lc (we ask 60 for text). Focus rings need 3:1 on the page.

WherePairLightDark
Body textforeground on background16.56:1 · Lc 9914.48:1 · Lc 94
Secondary text on the pagemuted-foreground on background7.10:1 · Lc 818.79:1 · Lc 63
Text in cardscard-foreground on card17.88:1 · Lc 10512.77:1 · Lc 92
Secondary text in cardsmuted-foreground on card7.66:1 · Lc 877.75:1 · Lc 62
Menus and popoverspopover-foreground on popover17.88:1 · Lc 10512.77:1 · Lc 92
Primary buttonsprimary-foreground on primary5.45:1 · Lc 8211.99:1 · Lc 77
Links and outline accentsprimary on background5.05:1 · Lc 7110.89:1 · Lc 76
Secondary buttonssecondary-foreground on secondary14.95:1 · Lc 9311.78:1 · Lc 91
Text on muted panelsmuted-foreground on muted6.41:1 · Lc 757.15:1 · Lc 61
Hovered menu itemsaccent-foreground on accent6.97:1 · Lc 779.61:1 · Lc 83
Error messagesdestructive on background6.10:1 · Lc 768.33:1 · Lc 61
Sidebarsidebar-foreground on sidebar15.99:1 · Lc 9713.37:1 · Lc 93
Sidebar active itemsidebar-primary-foreground on sidebar-primary5.45:1 · Lc 8211.99:1 · Lc 77
Sidebar hoversidebar-accent-foreground on sidebar-accent14.95:1 · Lc 9311.78:1 · Lc 91
Focus ringring on background5.05:110.89:1

Use it

With the shadcn CLI, in a project set up with shadcn init:

npx shadcn@latest add https://www.themes.dev/r/presets/galley.json

Or paste the CSS into globals.css (Next.js) or your main stylesheet (Vite, Astro), replacing the :root and .dark values that are there.

Then load the font:

npm i @fontsource-variable/mona-sans

The registry item: themes.dev/r/presets/galley.json. Free to use in any project.

globals.css
:root {
  --radius: 0.625rem;
  --background: oklch(0.973 0.004 157.18);
  --foreground: oklch(0.203 0.022 179.77);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.203 0.022 179.77);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.203 0.022 179.77);
  --primary: oklch(0.508 0.133 151.02);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.938 0.008 157.18);
  --secondary-foreground: oklch(0.203 0.022 179.77);
  --muted: oklch(0.938 0.008 157.18);
  --muted-foreground: oklch(0.44 0.025 165.07);
  --accent: oklch(0.943 0.032 155.38);
  --accent-foreground: oklch(0.417 0.109 150.98);
  --destructive: oklch(0.5 0.182 29.51);
  --border: oklch(0.891 0.014 162.44);
  --input: oklch(0.585 0.026 165.27);
  --ring: oklch(0.508 0.133 151.02);
  --chart-1: oklch(0.81 0.133 151.02);
  --chart-2: oklch(0.66 0.122 151.02);
  --chart-3: oklch(0.56 0.112 151.02);
  --chart-4: oklch(0.47 0.101 151.02);
  --chart-5: oklch(0.39 0.09 151.02);
  --sidebar: oklch(0.961 0.004 157.18);
  --sidebar-foreground: oklch(0.203 0.022 179.77);
  --sidebar-primary: oklch(0.508 0.133 151.02);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.938 0.008 157.18);
  --sidebar-accent-foreground: oklch(0.203 0.022 179.77);
  --sidebar-border: oklch(0.891 0.014 162.44);
  --sidebar-ring: oklch(0.508 0.133 151.02);
}

.dark {
  --background: oklch(0.22 0.02 171.03);
  --foreground: oklch(0.94 0.009 161.34);
  --card: oklch(0.265 0.022 171.13);
  --card-foreground: oklch(0.94 0.009 161.34);
  --popover: oklch(0.265 0.022 171.13);
  --popover-foreground: oklch(0.94 0.009 161.34);
  --primary: oklch(0.827 0.22 147.66);
  --primary-foreground: oklch(0.172 0.03 162.89);
  --secondary: oklch(0.29 0.02 171.03);
  --secondary-foreground: oklch(0.94 0.009 161.34);
  --muted: oklch(0.29 0.02 171.03);
  --muted-foreground: oklch(0.784 0.02 162.79);
  --accent: oklch(0.318 0.056 159.44);
  --accent-foreground: oklch(0.9 0.107 152.82);
  --destructive: oklch(0.785 0.125 28.1);
  --border: oklch(0.342 0.03 169.21);
  --input: oklch(0.554 0.036 171.1);
  --ring: oklch(0.827 0.22 147.66);
  --chart-1: oklch(0.82 0.133 151.02);
  --chart-2: oklch(0.7 0.122 151.02);
  --chart-3: oklch(0.6 0.112 151.02);
  --chart-4: oklch(0.5 0.101 151.02);
  --chart-5: oklch(0.42 0.09 151.02);
  --sidebar: oklch(0.25 0.02 171.03);
  --sidebar-foreground: oklch(0.94 0.009 161.34);
  --sidebar-primary: oklch(0.827 0.22 147.66);
  --sidebar-primary-foreground: oklch(0.172 0.03 162.89);
  --sidebar-accent: oklch(0.29 0.02 171.03);
  --sidebar-accent-foreground: oklch(0.94 0.009 161.34);
  --sidebar-border: oklch(0.342 0.03 169.21);
  --sidebar-ring: oklch(0.827 0.22 147.66);
}

@theme inline {
  --font-sans: "Mona Sans Variable", "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Mona Sans Variable", "Mona Sans", ui-sans-serif, system-ui, sans-serif;
}

The whole site

Galley started as Galley, a website theme

Galley is a complete site for Developer tools: every page, the content model and a live demo, built from the same blocks, in Astro and Next.js + Sanity. It comes with UI Pro, from €199 once, with every other theme.

More shadcn/ui presets

All 37 presets