UI kit

Style
Mode
Accent
Second

Sections

The blocks a site is built from. Each installs on its own with shadcn add; the two layouts use all of them.

Use it

npx shadcn add @mtkl6/landing-page
npx shadcn add @mtkl6/one-screen-page

# or one section at a time
npx shadcn add @mtkl6/site-header

Page

The paper, the content width and the style's texture: a dot grid in Mono, paper grain over everything in Print shop, nothing in Desk. The texture fades out down the first screen with texture="top", covers the page with "full" and is left off with "none". Here, the top of two pages.

Shed

texture="top"

Shed

texture="none"

npx shadcn@latest add https://ui.devmtkl.com/r/page.json
import { Page } from "@/components/page"

<Page texture="top">
  <SiteHeader>…</SiteHeader>
  <main>…</main>
  <SiteFooter>…</SiteFooter>
</Page>

Wordmark

npx shadcn@latest add https://ui.devmtkl.com/r/wordmark.json
import { Wordmark } from "@/components/wordmark"

<Wordmark>Shed</Wordmark>
<Wordmark href="https://beep.sh" dot={false}>beep</Wordmark>

Site header

Under 640px the plain links hide and the last one, the action, stays.

Shed
npx shadcn@latest add https://ui.devmtkl.com/r/site-header.json
import { SiteHeader, SiteNav } from "@/components/site-header"

<SiteHeader>
  <Wordmark>Shed</Wordmark>
  <SiteNav>
    <a href="#how-it-works">How it works</a>
    <a href="#questions">Questions</a>
    <a href="https://github.com/…">GitHub</a>
    <Button asChild size="sm"><a href="/new">List a tool</a></Button>
  </SiteNav>
</SiteHeader>

Hero

The hero holds the page's one h1, so it is shown on its own page: the landing layout. Its columns stack under 640px.

npx shadcn@latest add https://ui.devmtkl.com/r/hero.json
import { Hero, HeroActions, HeroLede, HeroTitle } from "@/components/hero"

<Hero aside={<Card>…</Card>}>
  <Badge>Free while in beta</Badge>
  <HeroTitle>Borrow a drill from next door.</HeroTitle>
  <HeroLede>Shed lists the tools on your street and who has them this week.</HeroLede>
  <HeroActions>
    <Button asChild size="lg"><a href="/new">List a tool</a></Button>
    <Button asChild variant="outline"><a href="#how-it-works">See your street</a></Button>
  </HeroActions>
</Hero>

Section

How it works

Ask, pick up, hand back.

Each section starts with a rule. The heading is an h2, so a page keeps one h1.

npx shadcn@latest add https://ui.devmtkl.com/r/section.json
import { Section } from "@/components/section"

<Section id="how-it-works" eyebrow="How it works" title="Ask, pick up, hand back.">
  …
</Section>

Facts

212

tools listed

38

streets in Berlin

0 €

in fees, ever

npx shadcn@latest add https://ui.devmtkl.com/r/facts.json
import { Fact, Facts } from "@/components/facts"

<Facts>
  <Fact value="212">tools listed</Fact>
  <Fact value="38">streets in Berlin</Fact>
  <Fact value="0 €">in fees, ever</Fact>
</Facts>

Feature list

One list per street
Everything your neighbours are happy to lend, with who has it and until when.
Asking is one tap
They get a note. You get a yes, a no or a "Saturday?". No chat to keep up with.
It comes back
Each loan has a day to hand it back, and a nudge the evening before.
npx shadcn@latest add https://ui.devmtkl.com/r/feature-list.json
import { Feature, FeatureList } from "@/components/feature-list"

<FeatureList>
  <Feature title="One list per street">Everything your neighbours are happy to lend…</Feature>
  <Feature title="Asking is one tap">They get a note…</Feature>
</FeatureList>

Steps

  1. List what you have

    A drill, a ladder, a tent. A photo is optional.

  2. Ask a neighbour

    Pick a day. They say yes or suggest another.

  3. Hand it back

    Ring the bell, say thanks, mark it returned.

npx shadcn@latest add https://ui.devmtkl.com/r/steps.json
import { Step, Steps } from "@/components/steps"

<Steps>
  <Step title="List what you have">A drill, a ladder, a tent.</Step>
  <Step title="Ask a neighbour">Pick a day.</Step>
  <Step title="Hand it back">Ring the bell, say thanks.</Step>
</Steps>

Questions

What if something breaks?
You sort it out between you, the way you would without an app. Shed shows how old a tool is and what came with it, so nobody is surprised.
Do I need an account?
An email address, so your neighbours know a request came from you.
Which streets can use it?
Any street with three people on it. The first three get a note when a fourth joins.
npx shadcn@latest add https://ui.devmtkl.com/r/faq.json
import { Faq, FaqItem } from "@/components/faq"

<Faq>
  <FaqItem question="What if something breaks?" open>
    You sort it out between you…
  </FaqItem>
  <FaqItem question="Do I need an account?">An email address…</FaqItem>
</Faq>

Call to action

Your street already has a drill.

npx shadcn@latest add https://ui.devmtkl.com/r/call-to-action.json
import { CallToAction } from "@/components/call-to-action"

<CallToAction title="Your street already has a drill.">
  <Button asChild size="lg"><a href="/new">List a tool</a></Button>
</CallToAction>

Note and ink spot

Decoration, hidden from screen readers. Only Desk draws the note, and only Print shop the spot of ink; in Mono this space is empty on purpose.

Hammer drill
Ines has it, three doors down.
npx shadcn@latest add https://ui.devmtkl.com/r/note.json
import { InkSpot, Note } from "@/components/note"

// Against a positioned parent, such as HeroActions or a Card.
<Note arrow="up" className="top-[66px] left-[34px]">takes a minute</Note>
<Note arrow="left" className="top-1 left-[calc(100%+58px)]">first 100 are free</Note>

<Card>
  <InkSpot />
  …
</Card>

One screen

The frame of a page that fits one laptop screen. It holds the page's one h1 and its main, so it is shown on its own page: the one-screen layout. The title is in capitals in Mono and Print shop, as written in Desk.

npx shadcn@latest add https://ui.devmtkl.com/r/one-screen.json
import { OneScreen, OneScreenLede, OneScreenTitle } from "@/components/one-screen"

<Page texture="full">
  <OneScreen header={<SiteHeader>…</SiteHeader>} aside={<StepPanels>…</StepPanels>} footer={<SiteFooter>…</SiteFooter>}>
    <OneScreenTitle lines={["Ping", "when", "done."]} />
    <OneScreenLede>Free to start. One line at the end of your script…</OneScreenLede>
    <Signup onSignup={joinWaitlist} />
  </OneScreen>
</Page>

Step panels

  1. Get a key

    curl beep.sh/key // signs you in with GitHub

  2. Add one line

    beep "build done" // at the end of your script

  3. Get the ping

    ● build done · 14:02 // on your phone

npx shadcn@latest add https://ui.devmtkl.com/r/step-panels.json
import { StepPanel, StepPanels } from "@/components/step-panels"

<StepPanels>
  <StepPanel title="Get a key" code={<><b>curl</b> beep.sh/key</>} comment="signs you in with GitHub" />
  <StepPanel title="Add one line" code={<>beep <b>"build done"</b></>} comment="at the end of your script" />
</StepPanels>

Signup

It has no backend: it hands the address to onSignup and shows what came of it. This one waits 300ms and says yes.

Calls to onSignup: 0

npx shadcn@latest add https://ui.devmtkl.com/r/signup.json
"use client" // in Next, a page that hands Signup a function is a client component

import { Signup } from "@/components/signup"

async function joinWaitlist(email: string) {
  const response = await fetch("/api/waitlist", { method: "POST", body: JSON.stringify({ email }) })
  if (!response.ok) throw new Error("signup failed")
}

<Signup
  onSignup={joinWaitlist}
  action="Get early access"
  placeholder="you@example.com"
  done="You're on the list. We'll write when it's ready."
/>

Signup that fails

When onSignup rejects, the address stays and the form says so. This one always fails.

Calls to onSignup: 0

Site footer

npx shadcn@latest add https://ui.devmtkl.com/r/site-footer.json
import { SiteFooter } from "@/components/site-footer"

<SiteFooter note="Shed, made in Berlin on weekends.">
  <a href="https://github.com/…">GitHub</a>
  <a href="/privacy">Privacy</a>
  <a href="/terms">Terms</a>
</SiteFooter>