Skip to content

Doorstep, a shadcn/ui preset

Ultramarine with Lexend, from a housing portal. It comes from Doorstep, one of our website themes.

Fonts: Lexend · radius 0.75rem · light and dark · lowest text contrast 5.34:1

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

Doorstep 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#f4f3f0
  • foreground#24292e
  • primary#2802a9
  • primary-foreground#ffffff
  • secondary#eae8e2
  • muted-foreground#585e65
  • accent#e9e5fb
  • border#dcdad4
  • destructive#b42318
  • ring#2802a9
  • chart-1#aabbff
  • chart-2#7081ff
  • chart-3#5764de
  • chart-4#424bb6
  • chart-5#303693

Dark

  • background#121418
  • foreground#ecebe7
  • primary#c7b8ff
  • primary-foreground#15161c
  • secondary#21242b
  • muted-foreground#b2b7bf
  • accent#2a2849
  • border#2b2f35
  • destructive#ff9788
  • ring#c7b8ff
  • chart-1#aebfff
  • chart-2#7e91ff
  • chart-3#6171ec
  • chart-4#4955c0
  • chart-5#373f9d

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 background13.26:1 · Lc 9515.46:1 · Lc 94
Secondary text on the pagemuted-foreground on background5.93:1 · Lc 769.18:1 · Lc 63
Text in cardscard-foreground on card14.67:1 · Lc 10214.02:1 · Lc 93
Secondary text in cardsmuted-foreground on card6.56:1 · Lc 828.33:1 · Lc 62
Menus and popoverspopover-foreground on popover14.67:1 · Lc 10214.02:1 · Lc 93
Primary buttonsprimary-foreground on primary12.56:1 · Lc 10010.07:1 · Lc 69
Links and outline accentsprimary on background11.35:1 · Lc 8910.29:1 · Lc 69
Secondary buttonssecondary-foreground on secondary11.94:1 · Lc 8813.00:1 · Lc 92
Text on muted panelsmuted-foreground on muted5.34:1 · Lc 697.72:1 · Lc 61
Hovered menu itemsaccent-foreground on accent10.22:1 · Lc 829.16:1 · Lc 74
Error messagesdestructive on background5.95:1 · Lc 748.79:1 · Lc 61
Sidebarsidebar-foreground on sidebar12.79:1 · Lc 9214.49:1 · Lc 93
Sidebar active itemsidebar-primary-foreground on sidebar-primary12.56:1 · Lc 10010.07:1 · Lc 69
Sidebar hoversidebar-accent-foreground on sidebar-accent11.94:1 · Lc 8813.00:1 · Lc 92
Focus ringring on background11.35:110.29: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/doorstep.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/lexend

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

globals.css
:root {
  --radius: 0.75rem;
  --background: oklch(0.965 0.004 91.45);
  --foreground: oklch(0.278 0.012 248.25);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.278 0.012 248.25);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.278 0.012 248.25);
  --primary: oklch(0.35 0.22 274.18);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.93 0.008 91.45);
  --secondary-foreground: oklch(0.278 0.012 248.25);
  --muted: oklch(0.93 0.008 91.45);
  --muted-foreground: oklch(0.479 0.014 252.2);
  --accent: oklch(0.932 0.03 294.16);
  --accent-foreground: oklch(0.35 0.22 274.18);
  --destructive: oklch(0.5 0.182 29.51);
  --border: oklch(0.888 0.008 91.49);
  --input: oklch(0.608 0.012 256.72);
  --ring: oklch(0.35 0.22 274.18);
  --chart-1: oklch(0.804 0.098 272.82);
  --chart-2: oklch(0.652 0.186 274.25);
  --chart-3: oklch(0.56 0.185 274.18);
  --chart-4: oklch(0.47 0.167 274.18);
  --chart-5: oklch(0.39 0.15 274.18);
  --sidebar: oklch(0.953 0.004 91.45);
  --sidebar-foreground: oklch(0.278 0.012 248.25);
  --sidebar-primary: oklch(0.35 0.22 274.18);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.93 0.008 91.45);
  --sidebar-accent-foreground: oklch(0.278 0.012 248.25);
  --sidebar-border: oklch(0.888 0.008 91.49);
  --sidebar-ring: oklch(0.35 0.22 274.18);
}

.dark {
  --background: oklch(0.191 0.009 264.35);
  --foreground: oklch(0.94 0.005 95.1);
  --card: oklch(0.234 0.011 260.69);
  --card-foreground: oklch(0.94 0.005 95.1);
  --popover: oklch(0.234 0.011 260.69);
  --popover-foreground: oklch(0.94 0.005 95.1);
  --primary: oklch(0.82 0.1 293.78);
  --primary-foreground: oklch(0.202 0.012 277.81);
  --secondary: oklch(0.261 0.013 264.35);
  --secondary-foreground: oklch(0.94 0.005 95.1);
  --muted: oklch(0.261 0.013 264.35);
  --muted-foreground: oklch(0.779 0.012 256.71);
  --accent: oklch(0.296 0.06 285.26);
  --accent-foreground: oklch(0.865 0.073 293.45);
  --destructive: oklch(0.781 0.128 29.18);
  --border: oklch(0.304 0.012 258.37);
  --input: oklch(0.618 0.014 255.55);
  --ring: oklch(0.82 0.1 293.78);
  --chart-1: oklch(0.814 0.093 272.66);
  --chart-2: oklch(0.692 0.162 273.98);
  --chart-3: oklch(0.6 0.185 274.18);
  --chart-4: oklch(0.5 0.167 274.18);
  --chart-5: oklch(0.42 0.15 274.18);
  --sidebar: oklch(0.221 0.009 264.35);
  --sidebar-foreground: oklch(0.94 0.005 95.1);
  --sidebar-primary: oklch(0.82 0.1 293.78);
  --sidebar-primary-foreground: oklch(0.202 0.012 277.81);
  --sidebar-accent: oklch(0.261 0.013 264.35);
  --sidebar-accent-foreground: oklch(0.94 0.005 95.1);
  --sidebar-border: oklch(0.304 0.012 258.37);
  --sidebar-ring: oklch(0.82 0.1 293.78);
}

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

The whole site

Doorstep started as Doorstep, a website theme

Doorstep is a complete site for Property portals and estate agents: 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