Skip to content

Quay, a shadcn/ui preset

Harbour blue with Libre Franklin: Charter’s quieter set. It comes from Charter, one of our website themes.

Fonts: Libre Franklin · radius 0.125rem · light and dark · lowest text contrast 6.63:1

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

Quay 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#f4f5f2
  • foreground#18222b
  • primary#1d4660
  • primary-foreground#ffffff
  • secondary#e8eae4
  • muted-foreground#404b55
  • accent#e1eaf0
  • border#d6dbd8
  • destructive#a32a1c
  • ring#1d4660
  • chart-1#9bc7e6
  • chart-2#7198b3
  • chart-3#577991
  • chart-4#415f74
  • chart-5#2e485a

Dark

  • background#0b0e0b
  • foreground#f9faf9
  • primary#8db9d8
  • primary-foreground#0f1310
  • secondary#191f1a
  • muted-foreground#b4b9b5
  • accent#242f38
  • border#292c29
  • destructive#ff9693
  • ring#8cb7d6
  • chart-1#9fcbea
  • chart-2#7da4c0
  • chart-3#62859d
  • chart-4#49677d
  • chart-5#365163

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 background14.74:1 · Lc 9718.58:1 · Lc 104
Secondary text on the pagemuted-foreground on background8.16:1 · Lc 849.72:1 · Lc 63
Text in cardscard-foreground on card16.11:1 · Lc 10317.13:1 · Lc 104
Secondary text in cardsmuted-foreground on card8.91:1 · Lc 908.96:1 · Lc 63
Menus and popoverspopover-foreground on popover16.11:1 · Lc 10317.13:1 · Lc 104
Primary buttonsprimary-foreground on primary10.00:1 · Lc 978.99:1 · Lc 62
Links and outline accentsprimary on background9.15:1 · Lc 879.28:1 · Lc 61
Secondary buttonssecondary-foreground on secondary13.29:1 · Lc 9016.13:1 · Lc 103
Text on muted panelsmuted-foreground on muted7.35:1 · Lc 788.44:1 · Lc 62
Hovered menu itemsaccent-foreground on accent9.09:1 · Lc 8213.02:1 · Lc 100
Error messagesdestructive on background6.63:1 · Lc 789.25:1 · Lc 61
Sidebarsidebar-foreground on sidebar14.22:1 · Lc 9517.67:1 · Lc 104
Sidebar active itemsidebar-primary-foreground on sidebar-primary10.00:1 · Lc 978.99:1 · Lc 62
Sidebar hoversidebar-accent-foreground on sidebar-accent13.29:1 · Lc 9016.13:1 · Lc 103
Focus ringring on background9.15:19.12: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/quay.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/libre-franklin

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

globals.css
:root {
  --radius: 0.125rem;
  --background: oklch(0.969 0.004 121.56);
  --foreground: oklch(0.247 0.022 246.03);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.247 0.022 246.03);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.247 0.022 246.03);
  --primary: oklch(0.378 0.064 239.42);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.934 0.008 121.56);
  --secondary-foreground: oklch(0.247 0.022 246.03);
  --muted: oklch(0.934 0.008 121.56);
  --muted-foreground: oklch(0.407 0.022 245.81);
  --accent: oklch(0.932 0.013 236.63);
  --accent-foreground: oklch(0.353 0.059 239.92);
  --destructive: oklch(0.475 0.16 30.39);
  --border: oklch(0.887 0.007 160.06);
  --input: oklch(0.608 0.017 241.94);
  --ring: oklch(0.378 0.064 239.42);
  --chart-1: oklch(0.81 0.064 239.42);
  --chart-2: oklch(0.66 0.059 239.42);
  --chart-3: oklch(0.56 0.054 239.42);
  --chart-4: oklch(0.47 0.049 239.42);
  --chart-5: oklch(0.39 0.044 239.42);
  --sidebar: oklch(0.957 0.004 121.56);
  --sidebar-foreground: oklch(0.247 0.022 246.03);
  --sidebar-primary: oklch(0.378 0.064 239.42);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.934 0.008 121.56);
  --sidebar-accent-foreground: oklch(0.247 0.022 246.03);
  --sidebar-border: oklch(0.887 0.007 160.06);
  --sidebar-ring: oklch(0.378 0.064 239.42);
}

.dark {
  --background: oklch(0.16 0.008 150);
  --foreground: oklch(0.985 0.002 150);
  --card: oklch(0.205 0.008 150);
  --card-foreground: oklch(0.985 0.002 150);
  --popover: oklch(0.205 0.008 150);
  --popover-foreground: oklch(0.985 0.002 150);
  --primary: oklch(0.765 0.064 239.42);
  --primary-foreground: oklch(0.18 0.008 150);
  --secondary: oklch(0.23 0.012 150);
  --secondary-foreground: oklch(0.985 0.002 150);
  --muted: oklch(0.23 0.012 150);
  --muted-foreground: oklch(0.78 0.008 150);
  --accent: oklch(0.3 0.022 239.42);
  --accent-foreground: oklch(0.985 0.002 150);
  --destructive: oklch(0.782 0.127 22);
  --border: oklch(0.29 0.008 150);
  --input: oklch(0.34 0.008 150);
  --ring: oklch(0.76 0.064 239.42);
  --chart-1: oklch(0.82 0.064 239.42);
  --chart-2: oklch(0.7 0.059 239.42);
  --chart-3: oklch(0.6 0.054 239.42);
  --chart-4: oklch(0.5 0.049 239.42);
  --chart-5: oklch(0.42 0.044 239.42);
  --sidebar: oklch(0.19 0.008 150);
  --sidebar-foreground: oklch(0.985 0.002 150);
  --sidebar-primary: oklch(0.765 0.064 239.42);
  --sidebar-primary-foreground: oklch(0.18 0.008 150);
  --sidebar-accent: oklch(0.23 0.012 150);
  --sidebar-accent-foreground: oklch(0.985 0.002 150);
  --sidebar-border: oklch(0.29 0.008 150);
  --sidebar-ring: oklch(0.76 0.064 239.42);
}

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

The whole site

Quay started as Charter, a website theme

Charter is a complete site for Libraries and community services: 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