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.jsonQuay 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.
| Where | Pair | Light | Dark |
|---|---|---|---|
| Body text | foreground on background | 14.74:1 · Lc 97 | 18.58:1 · Lc 104 |
| Secondary text on the page | muted-foreground on background | 8.16:1 · Lc 84 | 9.72:1 · Lc 63 |
| Text in cards | card-foreground on card | 16.11:1 · Lc 103 | 17.13:1 · Lc 104 |
| Secondary text in cards | muted-foreground on card | 8.91:1 · Lc 90 | 8.96:1 · Lc 63 |
| Menus and popovers | popover-foreground on popover | 16.11:1 · Lc 103 | 17.13:1 · Lc 104 |
| Primary buttons | primary-foreground on primary | 10.00:1 · Lc 97 | 8.99:1 · Lc 62 |
| Links and outline accents | primary on background | 9.15:1 · Lc 87 | 9.28:1 · Lc 61 |
| Secondary buttons | secondary-foreground on secondary | 13.29:1 · Lc 90 | 16.13:1 · Lc 103 |
| Text on muted panels | muted-foreground on muted | 7.35:1 · Lc 78 | 8.44:1 · Lc 62 |
| Hovered menu items | accent-foreground on accent | 9.09:1 · Lc 82 | 13.02:1 · Lc 100 |
| Error messages | destructive on background | 6.63:1 · Lc 78 | 9.25:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 14.22:1 · Lc 95 | 17.67:1 · Lc 104 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 10.00:1 · Lc 97 | 8.99:1 · Lc 62 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 13.29:1 · Lc 90 | 16.13:1 · Lc 103 |
| Focus ring | ring on background | 9.15:1 | 9.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.jsonOr 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-franklinThe registry item: themes.dev/r/presets/quay.json. Free to use in any project.
: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.
