Components

Desk

The surface everything else lies on: sage bookcloth under a lamp (linen weave, mottling, a warm vignette), with an optional layer of objects behind your content: a coffee ring, a pencil, paper clips, a ruler, push-pins. Paper is only paper against something darker than itself.

Install

terminal
npx shadcn@latest add @wobko/desk

First time here? Add the registry to components.json first. How to install

Examples

The bare desk

Sage bookcloth under a lamp. Paper lies on it with a short umber shadow and the light from the upper left.

Things on the blotter

`objects` lays a coffee ring, a pencil, paper clips, a ruler and push-pins behind your content. Pick some or take them all.

Lamp strength

The vignette darkens toward the corners. `lamp={0}` is a flat blotter, `1` the theme's own (a whisper of shade), `2.5` a dim room.

A morning at the desk

A whole workspace: a punched page, an index card taped up and two sticky notes, with the pencil and the coffee ring behind them.

API reference

Desk

A `div` with the `ll-desk` surface. It brings the two desk textures with it (a deduplicated `<style>` each, also in server markup), so it works without a provider.

PropTypeDefaultDescription
as"div" | "main" | "section" | "article""div"The element.
objectsDeskObject[] | booleanfalseThings lying on the blotter behind the content: `coffee`, `pencil`, `clips`, `ruler`, `pins`. `true` is all five. Hidden below the `sm` breakpoint and in calm density.
lampnumber | boolean1Strength of the vignette: 0 (or false) removes it, 1 is the theme's own (a whisper of shade), above 1 darkens the corners quickly (2.5 is a dim room).
seedstring | number-Pins the hand of the objects.

DeskObjects

The layer of objects on its own: absolutely positioned, aria-hidden, clipped to its container. Place it in any relative container; `Desk` mounts it for you.

PropTypeDefaultDescription
objectsDeskObject[]-Which objects to lay out.
seedstring | number-Pins the hand.

Accessibility

  • The desk is a plain element (`div` by default); pass `as="main"` with an `aria-label` if it is your main landmark. Its texture and objects are decoration: aria-hidden, pointer-events-none.
  • Objects lie behind the content (z-index below every sheet) and are hidden on narrow screens and in calm density, so they never crowd a small or a quiet layout.
  • Text set straight on the desk must be ink, ink-soft or muted (all at least 4.5:1 on the sage). Windows high contrast replaces the texture with the system canvas.

Source

The files the CLI copies into your project.

Loading the source