Specimen Desk
A Three.js desk study with a pinned fan of Modus type specimen cards, paper-white by day and lamplit by night.
A fan of seven type specimen cards pinned at one corner on a desk, beside a closed notebook, a pencil and an ink pot. Each card is set in a Modus font and toned from the theme, from paper through the primary to ink. Drag sideways, use the arrow keys or click a card to bring it to the front of the fan; click it again (or press Enter) to lift it for a closer look. In light mode the desk sits in pale daylight on a paper-white mat; in dark mode a single lamp pools light over an oak desk. Colours follow the theme and palette live. It fills its positioned parent, pauses when off screen or when the tab is hidden and renders a still frame when the user prefers reduced motion.
Specimen 04 / 07
Italic
Installation
CLI
npx @modus-ui/cli add specimen-deskManual
- Install
three. - Copy the code from the component tab.
- Create a file at
components/ui/specimen-desk.tsx. - Paste the code.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
cards | SpecimenDeskCard[] | DEFAULT_CARDS | Cards in the fan, bottom first. Each has a name, a large glyph and a face (heading, body or mono). |
className | string | none | Extra classes for the wrapper. |
Comments