Skip to Content

Linen

Linen texture: a woven overlay of fine horizontal and vertical threads on coprime periods so the repeat stays hidden. White threads by default, recolored for light grounds; three intensities.

pnpm dlx shadcn add @01orbital/linen

The example also uses card. Install it too:

pnpm dlx shadcn add @01orbital/card

Usage

import { Linen } from "@/components/texture/linen"
import {
  Card,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"

/** A sized linen surface with readable studio details. */
export default function LinenDemo() {
  return (
    <div className="flex min-h-full w-full flex-1 items-center justify-center p-4 sm:p-8">
      <Card className="relative isolate w-full max-w-sm gap-6 overflow-hidden rounded-xl bg-[#e0d9ce] p-6 wrap-anywhere text-[#38332c] shadow-sm ring-1 ring-black/10 [--muted-foreground:#51483d] sm:p-8">
        <Linen intensity="rich" className="[--linen-color:#38332c]" />
        <CardHeader className="relative z-20 gap-6 px-0">
          <p className="text-sm font-medium">Selvedge Studio</p>
          <div className="grid gap-1">
            <CardTitle className="text-2xl/8 font-medium tracking-tight">
              Nora Ellis
            </CardTitle>
            <CardDescription>Textile designer</CardDescription>
          </div>
        </CardHeader>
        <CardFooter className="relative z-20 flex-wrap justify-between gap-3 border-t border-current/20 px-0 pt-5 text-xs/5">
          <span>8 Loom Street, Leeds</span>
          <a
            href="mailto:hello@selvedge.example"
            className="break-all underline underline-offset-4 focus-visible:outline-2 focus-visible:outline-offset-4"
          >
            hello@selvedge.example
          </a>
        </CardFooter>
      </Card>
    </div>
  )
}

Examples

New

linen-studio-card

linen-studio-card

· Studio card

Linen texture example: a contact card on oatmeal linen with a textile designer's name, a Leeds address and an email link. Use it for a studio or business card.

pnpm dlx shadcn add @01orbital/linen-studio-card

New

linen-workshop-invitation

linen-workshop-invitation

· Workshop invitation

Linen texture example: a plant-dye workshop invitation on oatmeal linen with a large date, a short introduction and booking details. Use it for an event invitation.

pnpm dlx shadcn add @01orbital/linen-workshop-invitation

New

linen-seasonal-menu

linen-seasonal-menu

· Seasonal menu

Linen texture example: an autumn lunch menu on ivory linen with leek soup, a mushroom sourdough and apple crumble, plus an allergy note. Use it for a cafe or supper-club menu.

pnpm dlx shadcn add @01orbital/linen-seasonal-menu

New

linen-field-note

linen-field-note

· Field note

Linen texture example: a dated dye-studio note on oatmeal linen about onion skins and a warm yellow, with a short list for next time. Use it for a studio journal entry.

pnpm dlx shadcn add @01orbital/linen-field-note

New

linen-edition-cover

linen-edition-cover

· Edition cover

Linen texture example: a brown-black linen cover in a fine weave with a large issue number and the title Cloth, color, place. Use it for a lookbook or catalog cover.

pnpm dlx shadcn add @01orbital/linen-edition-cover

New

linen-order-receipt

linen-order-receipt

· Order receipt

Linen texture example: an itemized order on oatmeal linen with a paid total and a collection note from a textile studio. Use it for a shop receipt.

pnpm dlx shadcn add @01orbital/linen-order-receipt

New

linen-collection-label

linen-collection-label

· Collection label

Linen texture example: a collection label on a pale sage-gray ground with woven linen grain, listing material, dimensions and edition. Use it for a textile or print caption.

pnpm dlx shadcn add @01orbital/linen-collection-label

New

linen-studio-letter

linen-studio-letter

· Studio letter

Linen texture example: a short studio letter on oatmeal linen with an inset address line, two paragraphs and a signature. Use it for a customer note or follow-up.

pnpm dlx shadcn add @01orbital/linen-studio-letter

New

linen-quote-card

linen-quote-card

· Quote card

Linen texture example: a quotation about how cloth is made, in cream ink on a brown-black linen ground, with a textile designer credit. Use it for a testimonial.

pnpm dlx shadcn add @01orbital/linen-quote-card

New

linen-day-programme

linen-day-programme

· Day program

Linen texture example: a one-day natural dyeing program on oatmeal linen with session times beside each activity. Use it for a workshop schedule.

pnpm dlx shadcn add @01orbital/linen-day-programme

API reference

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs them for you.

No other registry pieces.