Skip to Content

Neoconstruct Marker

Neoconstruct marker symbols in a ruler-and-compass style: wedge, slash, disc, ring, plus, square, bar and star, plus a zero-padded numeral. Comes with the Neoconstruct theme.

View as Markdown
pnpm dlx shadcn add @01orbital/neoconstruct-marker

Usage

import {
  Marker,
  MarkerNumeral,
  type MarkerVariant,
} from "@/components/graphics/neoconstruct-marker"

const variants = [
  "wedge",
  "band",
  "disc",
  "target",
  "registration",
  "arrow",
  "square",
  "bar",
] as const satisfies readonly MarkerVariant[]

export default function MarkerDemo() {
  return (
    <div className="flex flex-col gap-8">
      <div className="flex flex-wrap justify-center gap-6">
        {variants.map((variant) => (
          <div key={variant} className="flex w-16 flex-col items-center gap-2">
            <Marker variant={variant} className="size-8 text-main-text" />
            <span className="font-heading text-xs tracking-wider uppercase">
              {variant}
            </span>
          </div>
        ))}
      </div>
      {/* Wraps on a phone, so the third step never runs off the edge. */}
      <div className="flex flex-wrap items-end justify-center gap-x-6 gap-y-4">
        {[1, 2, 3].map((n) => (
          <div key={n} className="flex items-end gap-2">
            <MarkerNumeral n={n} className="text-5xl text-main-text" />
            <span className="font-heading text-sm tracking-wider uppercase">
              Step
            </span>
          </div>
        ))}
      </div>
    </div>
  )
}

Examples

Sowing Listneoconstruct-marker-sowing-list

Planting list example showing the Neoconstruct Marker: each crop gets a marker and a numeral, with sowing instructions in disclosures.

pnpm dlx shadcn add @01orbital/neoconstruct-marker-sowing-list

Numeral Masthead Markerneoconstruct-marker-numeral-masthead

Numeral Masthead Marker: an example of neoconstruct-marker.

pnpm dlx shadcn add @01orbital/neoconstruct-marker-numeral-masthead

Workshop Signneoconstruct-marker-workshop-sign

Workshop sign example showing the Neoconstruct Marker: a marker target, a MarkerNumeral and an arrow on a mint sign.

pnpm dlx shadcn add @01orbital/neoconstruct-marker-workshop-sign

Anatomy

Neoconstruct Marker is built from 2 parts. In the example they nest like this:

Marker
MarkerNumeral
  • Marker: A small Constructivist mark for buttons, badges and list items: a wedge, band, disc, target, registration mark, arrow, square or bar. It draws in the text color at size-4 and is hidden from assistive tech.
  • MarkerNumeral: A zero-padded step or issue number in the heading font: 1 shows as "01". It has no size of its own, so set one with className. It is hidden from assistive tech, so pair it with text that names the step.

API reference

Marker

A small Constructivist mark for buttons, badges and list items: a wedge, band, disc, target, registration mark, arrow, square or bar. It draws in the text color at size-4 and is hidden from assistive tech.

Prop

Type

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

MarkerNumeral

A zero-padded step or issue number in the heading font: 1 shows as "01". It has no size of its own, so set one with className. It is hidden from assistive tech, so pair it with text that names the step.

Prop

Type

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

Dependencies

npm: cn. The CLI installs them for you. cn merges Tailwind class names, in place of clsx and tailwind-merge.

Registry pieces it installs with it:

  • font-unbounded

Used in blocks

One block is built with Neoconstruct Marker.