Skip to content

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.json
Edit in the generator

Turndown 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.

WherePairLightDark
Body textforeground on background16.41:1 · Lc 9918.59:1 · Lc 104
Secondary text on the pagemuted-foreground on background5.07:1 · Lc 729.86:1 · Lc 64
Text in cardscard-foreground on card16.60:1 · Lc 10017.17:1 · Lc 104
Secondary text in cardsmuted-foreground on card5.13:1 · Lc 739.10:1 · Lc 63
Menus and popoverspopover-foreground on popover16.60:1 · Lc 10017.17:1 · Lc 104
Primary buttonsprimary-foreground on primary4.94:1 · Lc 798.85:1 · Lc 62
Links and outline accentsprimary on background4.54:1 · Lc 689.13:1 · Lc 61
Secondary buttonssecondary-foreground on secondary14.78:1 · Lc 9214.49:1 · Lc 101
Text on muted panelsmuted-foreground on muted4.57:1 · Lc 657.68:1 · Lc 61
Hovered menu itemsaccent-foreground on accent9.94:1 · Lc 8613.25:1 · Lc 100
Error messagesdestructive on background4.51:1 · Lc 659.27:1 · Lc 61
Sidebarsidebar-foreground on sidebar15.84:1 · Lc 9617.17:1 · Lc 104
Sidebar active itemsidebar-primary-foreground on sidebar-primary4.94:1 · Lc 798.85:1 · Lc 62
Sidebar hoversidebar-accent-foreground on sidebar-accent14.78:1 · Lc 9214.49:1 · Lc 101
Focus ringring on background4.27:18.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.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/jost

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

globals.css
: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.

More shadcn/ui presets

All 37 presets