Turndown, a shadcn/ui preset
Burnt orange with Jost, from a hotel theme. It comes from Turndown, one of our website themes.
Fonts: Jost · radius 0.25rem · light and dark · lowest text contrast 4.51:1
npx shadcn@latest add https://www.themes.dev/r/presets/turndown.jsonTurndown 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#f8f5f0
- foreground#1a1714
- primary#b95100
- primary-foreground#ffffff
- secondary#eee9e2
- muted-foreground#6c6866
- accent#ffeddf
- border#e8e4e1
- destructive#e30103
- ring#be5601
- chart-1#ffa369
- chart-2#d6743a
- chart-3#af5a24
- chart-4#8d4310
- chart-5#702f00
Dark
- background#0f0d0b
- foreground#fbfaf9
- primary#ff9859
- primary-foreground#14110f
- secondary#292523
- muted-foreground#bcb8b5
- accent#422616
- border#2e2b28
- destructive#ff9693
- ring#fe9050
- chart-1#ffa871
- chart-2#e48147
- chart-3#bc6632
- chart-4#974b1c
- chart-5#79380c
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 | 16.41:1 · Lc 99 | 18.59:1 · Lc 104 |
| Secondary text on the page | muted-foreground on background | 5.07:1 · Lc 72 | 9.86:1 · Lc 64 |
| Text in cards | card-foreground on card | 16.60:1 · Lc 100 | 17.17:1 · Lc 104 |
| Secondary text in cards | muted-foreground on card | 5.13:1 · Lc 73 | 9.10:1 · Lc 63 |
| Menus and popovers | popover-foreground on popover | 16.60:1 · Lc 100 | 17.17:1 · Lc 104 |
| Primary buttons | primary-foreground on primary | 4.94:1 · Lc 79 | 8.85:1 · Lc 62 |
| Links and outline accents | primary on background | 4.54:1 · Lc 68 | 9.13:1 · Lc 61 |
| Secondary buttons | secondary-foreground on secondary | 14.78:1 · Lc 92 | 14.49:1 · Lc 101 |
| Text on muted panels | muted-foreground on muted | 4.57:1 · Lc 65 | 7.68:1 · Lc 61 |
| Hovered menu items | accent-foreground on accent | 9.94:1 · Lc 86 | 13.25:1 · Lc 100 |
| Error messages | destructive on background | 4.51:1 · Lc 65 | 9.27:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 15.84:1 · Lc 96 | 17.17:1 · Lc 104 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 4.94:1 · Lc 79 | 8.85:1 · Lc 62 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 14.78:1 · Lc 92 | 14.49:1 · Lc 101 |
| Focus ring | ring on background | 4.27:1 | 8.62: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/turndown.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/jostThe registry item: themes.dev/r/presets/turndown.json. Free to use in any project.
:root {
--radius: 0.25rem;
--background: oklch(0.971 0.007 80.72);
--foreground: oklch(0.207 0.008 67.39);
--card: oklch(0.975 0.007 80.72);
--card-foreground: oklch(0.207 0.008 67.39);
--popover: oklch(0.975 0.007 80.72);
--popover-foreground: oklch(0.207 0.008 67.39);
--primary: oklch(0.56 0.153 47.97);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.936 0.011 80.72);
--secondary-foreground: oklch(0.207 0.008 67.39);
--muted: oklch(0.936 0.011 80.72);
--muted-foreground: oklch(0.52 0.006 56);
--accent: oklch(0.957 0.027 60.59);
--accent-foreground: oklch(0.362 0.114 39.86);
--destructive: oklch(0.576 0.236 29.05);
--border: oklch(0.922 0.006 56);
--input: oklch(0.87 0.006 56);
--ring: oklch(0.575 0.154 48.95);
--chart-1: oklch(0.796 0.132 52.06);
--chart-2: oklch(0.66 0.142 48.95);
--chart-3: oklch(0.56 0.129 48.95);
--chart-4: oklch(0.47 0.117 48.95);
--chart-5: oklch(0.39 0.105 48.83);
--sidebar: oklch(0.959 0.007 80.72);
--sidebar-foreground: oklch(0.207 0.008 67.39);
--sidebar-primary: oklch(0.56 0.153 47.97);
--sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent: oklch(0.936 0.011 80.72);
--sidebar-accent-foreground: oklch(0.207 0.008 67.39);
--sidebar-border: oklch(0.922 0.006 56);
--sidebar-ring: oklch(0.575 0.154 48.95);
}
.dark {
--background: oklch(0.16 0.006 56);
--foreground: oklch(0.985 0.002 56);
--card: oklch(0.205 0.006 56);
--card-foreground: oklch(0.985 0.002 56);
--popover: oklch(0.205 0.006 56);
--popover-foreground: oklch(0.985 0.002 56);
--primary: oklch(0.775 0.146 50.75);
--primary-foreground: oklch(0.18 0.006 56);
--secondary: oklch(0.269 0.006 56);
--secondary-foreground: oklch(0.985 0.002 56);
--muted: oklch(0.269 0.006 56);
--muted-foreground: oklch(0.785 0.006 56);
--accent: oklch(0.3 0.05 48.95);
--accent-foreground: oklch(0.985 0.002 56);
--destructive: oklch(0.782 0.127 22);
--border: oklch(0.29 0.006 56);
--input: oklch(0.34 0.006 56);
--ring: oklch(0.76 0.154 48.95);
--chart-1: oklch(0.806 0.125 52.3);
--chart-2: oklch(0.7 0.142 48.95);
--chart-3: oklch(0.6 0.129 48.95);
--chart-4: oklch(0.5 0.117 48.95);
--chart-5: oklch(0.42 0.105 48.95);
--sidebar: oklch(0.205 0.006 56);
--sidebar-foreground: oklch(0.985 0.002 56);
--sidebar-primary: oklch(0.775 0.146 50.75);
--sidebar-primary-foreground: oklch(0.18 0.006 56);
--sidebar-accent: oklch(0.269 0.006 56);
--sidebar-accent-foreground: oklch(0.985 0.002 56);
--sidebar-border: oklch(0.29 0.006 56);
--sidebar-ring: oklch(0.76 0.154 48.95);
}
@theme inline {
--font-sans: "Jost Variable", "Jost", ui-sans-serif, system-ui, sans-serif;
--font-heading: "Jost Variable", "Jost", ui-sans-serif, system-ui, sans-serif;
}
The whole site
Turndown started as Turndown, a website theme
Turndown is a complete site for Small hotels, guesthouses and inns: 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.
