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.jsonDoorstep 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.
| Where | Pair | Light | Dark |
|---|---|---|---|
| Body text | foreground on background | 13.26:1 · Lc 95 | 15.46:1 · Lc 94 |
| Secondary text on the page | muted-foreground on background | 5.93:1 · Lc 76 | 9.18:1 · Lc 63 |
| Text in cards | card-foreground on card | 14.67:1 · Lc 102 | 14.02:1 · Lc 93 |
| Secondary text in cards | muted-foreground on card | 6.56:1 · Lc 82 | 8.33:1 · Lc 62 |
| Menus and popovers | popover-foreground on popover | 14.67:1 · Lc 102 | 14.02:1 · Lc 93 |
| Primary buttons | primary-foreground on primary | 12.56:1 · Lc 100 | 10.07:1 · Lc 69 |
| Links and outline accents | primary on background | 11.35:1 · Lc 89 | 10.29:1 · Lc 69 |
| Secondary buttons | secondary-foreground on secondary | 11.94:1 · Lc 88 | 13.00:1 · Lc 92 |
| Text on muted panels | muted-foreground on muted | 5.34:1 · Lc 69 | 7.72:1 · Lc 61 |
| Hovered menu items | accent-foreground on accent | 10.22:1 · Lc 82 | 9.16:1 · Lc 74 |
| Error messages | destructive on background | 5.95:1 · Lc 74 | 8.79:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 12.79:1 · Lc 92 | 14.49:1 · Lc 93 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 12.56:1 · Lc 100 | 10.07:1 · Lc 69 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 11.94:1 · Lc 88 | 13.00:1 · Lc 92 |
| Focus ring | ring on background | 11.35:1 | 10.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.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/lexendThe registry item: themes.dev/r/presets/doorstep.json. Free to use in any project.
: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.
