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.
pnpm dlx shadcn add @01orbital/neoconstruct-markerimport * as React from "react"
import { cn } from "cn"
/**
* Constructivist marks, drawn with ruler and compass. Each one comes from the
* period's own vocabulary: Lissitzky's wedge into a circle, the diagonal band,
* Suprematist disc and square, the arrow, the compass-drawn target, the
* printer's registration mark and the heavy typographic rule.
* Numerals live in `MarkerNumeral`.
*/
const shapes = {
// A wedge driving into a ring.
wedge: (
<>
<circle
cx="15"
cy="12"
r="6.5"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<polygon points="1,6.5 16,12 1,17.5" />
</>
),
// A thick band at 30 degrees.
band: <polygon points="2,15.5 19,5.5 22,10 5,20" />,
disc: <circle cx="12" cy="12" r="8" />,
// Two compass-drawn rings around a dot.
target: (
<>
<circle
cx="12"
cy="12"
r="9"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<circle cx="12" cy="12" r="3.5" />
</>
),
// The printer's registration mark: a cross through a ring.
registration: (
<>
<circle
cx="12"
cy="12"
r="6.5"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<path d="M11 1h2v22h-2zM1 11h22v2H1z" />
</>
),
arrow: <path d="M2 10h12V5l8 7-8 7v-5H2z" />,
square: <rect x="5" y="5" width="14" height="14" />,
bar: <rect x="2" y="9" width="20" height="6" />,
} as const
type MarkerVariant = keyof typeof shapes
/** A marker choice for components: any shape, or "none" to render nothing. */
type MarkerProp = MarkerVariant | "none"
/**
* 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.
*/
function Marker({
variant = "wedge",
className,
...props
}: React.ComponentProps<"svg"> & {
/** Which mark to draw; "none" renders nothing. Defaults to "wedge". */
variant?: MarkerProp
}) {
if (variant === "none") return null
return (
<svg
data-slot="marker"
data-theme="neoconstruct"
data-variant={variant}
viewBox="0 0 24 24"
fill="currentColor"
aria-hidden="true"
className={cn("size-4 shrink-0", className)}
{...props}
>
{shapes[variant]}
</svg>
)
}
/**
* 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.
*/
function MarkerNumeral({
n,
className,
...props
}: React.ComponentProps<"span"> & {
/** The number to show, padded to two digits. */
n: number
}) {
return (
<span
data-slot="marker-numeral"
data-theme="neoconstruct"
aria-hidden="true"
className={cn("font-heading leading-none tabular-nums", className)}
{...props}
>
{String(n).padStart(2, "0")}
</span>
)
}
export { Marker, MarkerNumeral }
export type { MarkerVariant }
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>
)
}
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-listimport { Eyebrow } from "@/components/eyebrow/eyebrow"
import {
Marker,
MarkerNumeral,
} from "@/components/graphics/neoconstruct-marker"
import { Grain } from "@/components/texture/grain"
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion"
// The copy: change text here, not in the markup.
const COPY = {
ariaLabel: "Seedline November planting list",
eyebrow: "Seedline / Community seed library",
body: "November in the Willamette Valley. Take a packet, grow what you can, bring seeds back.",
footnote: "Packet pickup: Albina Library · Saturdays, 10 am–1 pm",
title: "In the ground",
aside: "this month.",
} as const
const CROPS = [
{
name: "Garlic",
marker: "wedge",
timing: "Plant outside",
instruction:
"Plant individual cloves 2 inches deep and 6 inches apart, pointed end up. Mulch with 4 inches of straw after the first hard freeze.",
},
{
name: "Winter rye",
marker: "band",
timing: "Sow a cover crop",
instruction:
"Rake the bed, scatter 3 ounces per 100 square feet, and rake again to cover the seed. Water once if the soil is dry.",
},
{
name: "Sugar snap peas",
marker: "square",
timing: "Save for February",
instruction:
"Keep the packet cool and dry. Sow when soil reaches 40°F, about 4–6 weeks before your last frost. Add a trellis before the vines climb.",
},
] as const
/** A Neoconstruct planting list that marks each crop with a Marker and a numeral, with sowing instructions in disclosures. */
export default function NeoconstructMarkerSowingList() {
return (
<section
data-theme="neoconstruct"
aria-label={COPY.ariaLabel}
className="relative isolate w-full max-w-lg overflow-hidden border-2 border-border bg-background p-6 text-foreground"
>
<Grain variant="paper" opacity={0.17} />
<div className="relative">
<header className="flex items-start justify-between gap-4">
<div>
<Eyebrow variant="caps" tone="ink" className="font-bold">
{COPY.eyebrow}
</Eyebrow>
<h3 className="mt-4 text-3xl font-bold tracking-tight">
{COPY.title}
<br />
{COPY.aside}
</h3>
</div>
<MarkerNumeral n={11} className="text-4xl text-main-text" />
</header>
<p className="mt-4 text-sm leading-6 text-muted-foreground">
{COPY.body}
</p>
<Accordion className="mt-6 rounded-none border-0 border-y-2 border-border">
{CROPS.map((crop) => (
<AccordionItem
key={crop.name}
value={crop.name}
className="not-last:border-b-2 data-open:bg-transparent"
>
<AccordionTrigger className="items-center gap-3 px-0 py-5 hover:no-underline">
<Marker
variant={crop.marker}
className="size-5 text-main-text"
/>
<span className="min-w-0 flex-1">
<span className="block text-sm font-bold">{crop.name}</span>
<span className="mt-1 block text-xs font-normal text-muted-foreground">
{crop.timing}
</span>
</span>
</AccordionTrigger>
<AccordionContent className="pt-0 pb-5 pl-4 leading-6">
{crop.instruction}
</AccordionContent>
</AccordionItem>
))}
</Accordion>
<p className="mt-5 text-xs leading-5">{COPY.footnote}</p>
</div>
</section>
)
}
import { mergeProps } from "@base-ui/react/merge-props"
import { useRender } from "@base-ui/react/use-render"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "cn"
// default is a quiet 14px line, cased as written; icon puts a 16px icon in
// front of it; mono is a 12px uppercase mono label for spec-sheet designs;
// caps is the same size in a sans face. tone picks the ink: muted (the
// default) or the surrounding text color, for a label over art or on a dark
// island where muted-foreground is too quiet.
const eyebrowVariants = cva("", {
variants: {
/**
* The label style. `default` (the default) is a 14px line at weight 500,
* cased as written. `icon` is the same line with a 16px icon, placed
* first among the children, 12px before the words. `mono` is a 12px
* uppercase mono label at weight 500 with 0.12em letter spacing. `caps`
* is the same label in the sans face, for a brand and series label such
* as "Studio Neri / Clay school". The color comes from `tone`.
*/
variant: {
default: "text-sm/5 font-medium",
icon: "flex items-center gap-3 text-sm/5 font-medium [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
mono: "font-mono text-xs/5 font-medium tracking-[0.12em] uppercase",
caps: "text-xs/5 font-medium tracking-[0.12em] uppercase",
},
/**
* The ink. `muted` (the default) is `muted-foreground`. `ink` leaves the
* color to the surrounding text, for a label over art, on a dark island
* or anywhere the muted grey is too quiet to read.
*/
tone: {
muted: "text-muted-foreground",
ink: "",
},
},
defaultVariants: { variant: "default", tone: "muted" },
})
/**
* A short label set above a heading, such as a section name, rendered as a
* `<p>`. Leave 8px between it and the heading. Pass `render` to use another
* element.
*
* `default` is a 14px line at weight 500, cased as written. `icon` adds a
* 16px icon before the words: put the icon first, with `aria-hidden`. `mono`
* is a 12px uppercase mono label with 0.12em letter spacing; `caps` the same
* in the sans face, for a brand and series name such as "Studio Neri / Clay
* school". `tone="muted"` (the default) sets it in `muted-foreground`;
* `tone="ink"` takes the surrounding text color, for a label over art or on
* a dark island where the grey is too quiet.
*/
function Eyebrow({
className,
variant = "default",
tone = "muted",
render,
...props
}: useRender.ComponentProps<"p"> & VariantProps<typeof eyebrowVariants>) {
return useRender({
defaultTagName: "p",
render,
state: { slot: "eyebrow", variant, tone },
props: mergeProps<"p">(
{ className: cn(eyebrowVariants({ variant, tone }), className) },
props
),
})
}
export { Eyebrow, eyebrowVariants }
import { cn } from "cn"
import {
PAPER_GRAIN,
SANDPAPER_GRAIN,
SINGLE_NOISE,
SQUARE_GRAIN,
} from "@/components/texture/grain-recipes"
type Intensity = "fine" | "default" | "rich"
// One scale for every texture; `default` is the unscaled value.
const INTENSITY_MULT: Record<Intensity, number> = {
fine: 0.6,
default: 1,
rich: 1.45,
}
const alpha = (base: number, mult: number) => (base * mult).toFixed(4)
// Four grain treatments; each paints a single texture layer.
// Full-bleed art layer — drop inside a `relative` parent; sits behind content.
/** The texture treatment painted by `Grain`. */
type GrainVariant =
// Stylized paper-look variants — heavier filter chain than plain noise.
"paper" | "sandpaper" | "square" | "single"
type Layer = {
src: string
size: string
opacity: number
blend: "overlay" | "soft-light"
}
const BLEND_CLASS: Record<Layer["blend"], string> = {
overlay: "mix-blend-overlay",
"soft-light": "mix-blend-soft-light",
}
const VARIANT_TEXTURES: Record<GrainVariant, Layer> = {
paper: {
src: PAPER_GRAIN,
size: "250px",
opacity: 0.25,
blend: "overlay",
},
sandpaper: {
src: SANDPAPER_GRAIN,
size: "200px",
opacity: 0.25,
blend: "overlay",
},
square: {
src: SQUARE_GRAIN,
size: "200px",
opacity: 0.8,
blend: "soft-light",
},
single: { src: SINGLE_NOISE, size: "200px", opacity: 0.3, blend: "overlay" },
}
/**
* A decorative grain layer that fills a positioned parent without blocking
* clicks. Choose a texture and adjust its strength with `intensity` or
* `opacity`. `className` and other div props land on the outer layer.
*/
function Grain({
variant = "single",
intensity = "default",
opacity,
isolated = false,
className,
...props
}: React.ComponentProps<"div"> & {
/** The grain treatment: `single` (default), `paper`, `sandpaper` or `square`. */
variant?: GrainVariant
/** Multiplies the texture's opacity: `fine` 0.6×, `default` 1×, `rich` 1.45×. */
intensity?: Intensity
/** The texture opacity, from 0 to 1. Takes precedence over `intensity`. */
opacity?: number
/**
* Adds paint containment when true. This creates a stacking context, so
* the texture stops blending with scene layers outside this element.
*/
isolated?: boolean
}) {
const layer = VARIANT_TEXTURES[variant]
const m =
opacity != null ? opacity / layer.opacity : INTENSITY_MULT[intensity]
return (
<div
data-slot="grain"
data-variant={variant}
aria-hidden="true"
className={cn(
"pointer-events-none absolute inset-0",
isolated && "contain-[paint]",
className
)}
{...props}
>
<div
className={cn("absolute inset-0", BLEND_CLASS[layer.blend])}
style={{
backgroundImage: layer.src,
backgroundSize: layer.size,
opacity: layer.opacity * m,
}}
/>
</div>
)
}
export { Grain }
// The grain tiles the kit paints with, as data URIs, each held once. Every
// recipe is a tiny SVG turbulence filter; the component using it chooses
// the tile size, opacity and blend. `*_URI` is the bare image for callers
// that wrap it themselves; the unsuffixed name is ready for `background-image`.
/** Stylized paper: coarse turbulence pushed to high contrast, the grain under most of the painted scenes and the Grain `paper` variant. */
export const PAPER_GRAIN_URI =
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250' viewBox='0 0 100 100'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='turbulence' baseFrequency='1.4' numOctaves='1' seed='2' stitchTiles='stitch' result='n'/%3E%3CfeComponentTransfer result='g'%3E%3CfeFuncR type='linear' slope='4' intercept='1'/%3E%3CfeFuncG type='linear' slope='4' intercept='1'/%3E%3CfeFuncB type='linear' slope='4' intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix type='saturate' values='0' in='g'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const PAPER_GRAIN = `url("${PAPER_GRAIN_URI}")`
/** Sandpaper: finer, two-octave turbulence, the Grain `sandpaper` variant and the pours and pools. */
export const SANDPAPER_GRAIN_URI =
"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 100 100'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='turbulence' baseFrequency='2.2' numOctaves='2' seed='5' stitchTiles='stitch' result='n'/%3E%3CfeComponentTransfer result='g'%3E%3CfeFuncR type='linear' slope='2.5' intercept='0.8'/%3E%3CfeFuncG type='linear' slope='2.5' intercept='0.8'/%3E%3CfeFuncB type='linear' slope='2.5' intercept='0.8'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix type='saturate' values='0' in='g'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const SANDPAPER_GRAIN = `url("${SANDPAPER_GRAIN_URI}")`
/** Square: three-octave turbulence at high contrast, the Grain `square` variant. */
export const SQUARE_GRAIN_URI =
"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22200%22%20height=%22200%22%20viewBox=%220%200%20100%20100%22%3E%3Cfilter%20id=%22n%22%20color-interpolation-filters=%22sRGB%22%3E%3CfeTurbulence%20type=%22turbulence%22%20baseFrequency=%222.1%22%20numOctaves=%223%22%20seed=%2211%22%20stitchTiles=%22stitch%22%20result=%22n%22/%3E%3CfeComponentTransfer%20result=%22g%22%3E%3CfeFuncR%20type=%22linear%22%20slope=%225.5%22%20intercept=%221.4%22/%3E%3CfeFuncG%20type=%22linear%22%20slope=%225.5%22%20intercept=%221.4%22/%3E%3CfeFuncB%20type=%22linear%22%20slope=%225.5%22%20intercept=%221.4%22/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix%20type=%22saturate%22%20values=%220%22%20in=%22g%22/%3E%3C/filter%3E%3Crect%20width=%22100%%22%20height=%22100%%22%20filter=%22url(%23n)%22/%3E%3C/svg%3E"
export const SQUARE_GRAIN = `url("${SQUARE_GRAIN_URI}")`
/** Plain fractal noise on a 200px tile, the Grain `single` variant. */
export const SINGLE_NOISE_URI =
"data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const SINGLE_NOISE = `url("${SINGLE_NOISE_URI}")`
/** Fine fractal noise on a 512px tile, SoftGrain and the Limb scene. */
export const SOFT_NOISE_URI =
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const SOFT_NOISE = `url("${SOFT_NOISE_URI}")`
/** Fine fractal noise the field scenes lay over their art: Fracture Field, Gestural Zip, Solar Flare and Underwater Shaft. */
export const FIELD_NOISE_URI =
"data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const FIELD_NOISE = `url("${FIELD_NOISE_URI}")`
/** Fine fractal noise on a 256px tile, the mist over the radial charts. */
export const CHART_NOISE_URI =
"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const CHART_NOISE = `url("${CHART_NOISE_URI}")`
/** A one-octave dither on a 128px tile, the glass of the neon signs. */
export const DITHER_NOISE_URI =
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"
export const DITHER_NOISE = `url("${DITHER_NOISE_URI}")`
/** A thin film: paper turbulence with its alpha cut to 0.6, the grain GlowSection lays over its light. */
export const GLOW_FILM_URI =
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='sf' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='turbulence' baseFrequency='1.4' numOctaves='1' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23sf)'/%3E%3C/svg%3E"
export const GLOW_FILM = `url("${GLOW_FILM_URI}")`
/** Plain fractal noise on a 400px tile, the canvas finish of ColorField and FeltOrb. */
export const CANVAS_NOISE_URI =
"data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"
export const CANVAS_NOISE = `url("${CANVAS_NOISE_URI}")`
import * as React from "react"
import { cn } from "cn"
/**
* Constructivist marks, drawn with ruler and compass. Each one comes from the
* period's own vocabulary: Lissitzky's wedge into a circle, the diagonal band,
* Suprematist disc and square, the arrow, the compass-drawn target, the
* printer's registration mark and the heavy typographic rule.
* Numerals live in `MarkerNumeral`.
*/
const shapes = {
// A wedge driving into a ring.
wedge: (
<>
<circle
cx="15"
cy="12"
r="6.5"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<polygon points="1,6.5 16,12 1,17.5" />
</>
),
// A thick band at 30 degrees.
band: <polygon points="2,15.5 19,5.5 22,10 5,20" />,
disc: <circle cx="12" cy="12" r="8" />,
// Two compass-drawn rings around a dot.
target: (
<>
<circle
cx="12"
cy="12"
r="9"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<circle cx="12" cy="12" r="3.5" />
</>
),
// The printer's registration mark: a cross through a ring.
registration: (
<>
<circle
cx="12"
cy="12"
r="6.5"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<path d="M11 1h2v22h-2zM1 11h22v2H1z" />
</>
),
arrow: <path d="M2 10h12V5l8 7-8 7v-5H2z" />,
square: <rect x="5" y="5" width="14" height="14" />,
bar: <rect x="2" y="9" width="20" height="6" />,
} as const
type MarkerVariant = keyof typeof shapes
/** A marker choice for components: any shape, or "none" to render nothing. */
type MarkerProp = MarkerVariant | "none"
/**
* 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.
*/
function Marker({
variant = "wedge",
className,
...props
}: React.ComponentProps<"svg"> & {
/** Which mark to draw; "none" renders nothing. Defaults to "wedge". */
variant?: MarkerProp
}) {
if (variant === "none") return null
return (
<svg
data-slot="marker"
data-theme="neoconstruct"
data-variant={variant}
viewBox="0 0 24 24"
fill="currentColor"
aria-hidden="true"
className={cn("size-4 shrink-0", className)}
{...props}
>
{shapes[variant]}
</svg>
)
}
/**
* 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.
*/
function MarkerNumeral({
n,
className,
...props
}: React.ComponentProps<"span"> & {
/** The number to show, padded to two digits. */
n: number
}) {
return (
<span
data-slot="marker-numeral"
data-theme="neoconstruct"
aria-hidden="true"
className={cn("font-heading leading-none tabular-nums", className)}
{...props}
>
{String(n).padStart(2, "0")}
</span>
)
}
export { Marker, MarkerNumeral }
export type { MarkerVariant }
Numeral Masthead Markerneoconstruct-marker-numeral-masthead
Numeral Masthead Marker: an example of neoconstruct-marker.
pnpm dlx shadcn add @01orbital/neoconstruct-marker-numeral-mastheadimport {
Marker,
MarkerNumeral,
} from "@/components/graphics/neoconstruct-marker"
import { Text } from "@/components/text/text"
// The copy: change text here, not in the markup.
const COPY = {
masthead: "Vector",
tagline: "A journal of form and typography",
issue: 12,
season: "Spring edition",
contents: "In this issue: grids, posters, and the case for black type",
} as const
/** A MarkerNumeral issue number and a Marker registration mark on a journal masthead. */
export default function NeoconstructMarkerNumeralMasthead() {
return (
<div className="w-full max-w-2xl bg-background px-6 py-10 text-foreground sm:px-10">
<div className="flex items-start justify-between gap-6 border-b-4 border-foreground pb-6">
<div>
<p className="font-heading text-6xl tracking-tight uppercase sm:text-7xl">
{COPY.masthead}
</p>
<p className="mt-2 text-sm">{COPY.tagline}</p>
</div>
<MarkerNumeral n={COPY.issue} className="text-6xl sm:text-7xl" />
</div>
<div className="mt-4 flex items-center gap-3">
<Marker variant="registration" className="size-6" />
<p className="font-mono text-xs uppercase">{COPY.season}</p>
</div>
<Text className="mt-6 max-w-md">{COPY.contents}</Text>
</div>
)
}
import * as React from "react"
import { cn } from "cn"
/**
* Constructivist marks, drawn with ruler and compass. Each one comes from the
* period's own vocabulary: Lissitzky's wedge into a circle, the diagonal band,
* Suprematist disc and square, the arrow, the compass-drawn target, the
* printer's registration mark and the heavy typographic rule.
* Numerals live in `MarkerNumeral`.
*/
const shapes = {
// A wedge driving into a ring.
wedge: (
<>
<circle
cx="15"
cy="12"
r="6.5"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<polygon points="1,6.5 16,12 1,17.5" />
</>
),
// A thick band at 30 degrees.
band: <polygon points="2,15.5 19,5.5 22,10 5,20" />,
disc: <circle cx="12" cy="12" r="8" />,
// Two compass-drawn rings around a dot.
target: (
<>
<circle
cx="12"
cy="12"
r="9"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<circle cx="12" cy="12" r="3.5" />
</>
),
// The printer's registration mark: a cross through a ring.
registration: (
<>
<circle
cx="12"
cy="12"
r="6.5"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<path d="M11 1h2v22h-2zM1 11h22v2H1z" />
</>
),
arrow: <path d="M2 10h12V5l8 7-8 7v-5H2z" />,
square: <rect x="5" y="5" width="14" height="14" />,
bar: <rect x="2" y="9" width="20" height="6" />,
} as const
type MarkerVariant = keyof typeof shapes
/** A marker choice for components: any shape, or "none" to render nothing. */
type MarkerProp = MarkerVariant | "none"
/**
* 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.
*/
function Marker({
variant = "wedge",
className,
...props
}: React.ComponentProps<"svg"> & {
/** Which mark to draw; "none" renders nothing. Defaults to "wedge". */
variant?: MarkerProp
}) {
if (variant === "none") return null
return (
<svg
data-slot="marker"
data-theme="neoconstruct"
data-variant={variant}
viewBox="0 0 24 24"
fill="currentColor"
aria-hidden="true"
className={cn("size-4 shrink-0", className)}
{...props}
>
{shapes[variant]}
</svg>
)
}
/**
* 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.
*/
function MarkerNumeral({
n,
className,
...props
}: React.ComponentProps<"span"> & {
/** The number to show, padded to two digits. */
n: number
}) {
return (
<span
data-slot="marker-numeral"
data-theme="neoconstruct"
aria-hidden="true"
className={cn("font-heading leading-none tabular-nums", className)}
{...props}
>
{String(n).padStart(2, "0")}
</span>
)
}
export { Marker, MarkerNumeral }
export type { MarkerVariant }
import { mergeProps } from "@base-ui/react/merge-props"
import { useRender } from "@base-ui/react/use-render"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "cn"
// The paragraph under a Heading or Subheading, in a hero or a section
// header. No width of its own: give it one with a `max-w-*` class when the
// layout wants it. Inherits the surrounding ink, so it reads over art;
// muted steps it down on a flat ground.
const textVariants = cva("w-full min-w-0 text-pretty", {
variants: {
/**
* The text color. `default` (the default) keeps the inherited color.
* `muted` uses `muted-foreground`.
*/
variant: {
default: "",
muted: "text-muted-foreground",
},
/**
* The text size: `md` (the default) 16px with 28px lines, `lg` 18px
* with 32px lines, the lead under a page headline.
*/
size: {
md: "text-base/7",
lg: "text-lg/8",
},
},
defaultVariants: { variant: "default", size: "md" },
})
/**
* The paragraph under a heading, a `p` by default. For several paragraphs,
* pass `render={<div />}` and put your own `p` elements inside.
*
* `size` sets the text: `md` (the default) 16px with 28px lines, `lg` 18px
* with 32px lines for the lead under a page headline. `variant="muted"`
* uses the muted text color; the default inherits the ink around it.
*/
function Text({
className,
variant = "default",
size = "md",
render,
...props
}: useRender.ComponentProps<"p"> & VariantProps<typeof textVariants>) {
return useRender({
defaultTagName: "p",
render,
state: { slot: "text", variant, size },
props: mergeProps<"p">(
{ className: cn(textVariants({ variant, size }), className) },
props
),
})
}
export { Text }
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-signimport {
Marker,
MarkerNumeral,
} from "@/components/graphics/neoconstruct-marker"
import { Grain } from "@/components/texture/grain"
// The copy: change text here, not in the markup.
const COPY = {
title: "NORTH",
aside: "WORKSHOP",
body: "Open studio",
location: "Second floor, bay 02",
} as const
/** A Marker target, a MarkerNumeral and an arrow on a mint workshop sign. */
export default function NeoconstructMarkerWorkshopSign() {
return (
// Two inks, mint and deep green. Light mode prints green on mint; dark
// mode swaps them, so the sign reads in both without a forced theme.
<div className="relative isolate flex min-h-[26rem] flex-col justify-between overflow-hidden bg-background p-7 text-foreground [--background:oklch(0.89_0.06_160)] [--font-display:var(--font-unbounded)] [--foreground:oklch(0.24_0.04_175)] dark:[--background:oklch(0.24_0.04_175)] dark:[--foreground:oklch(0.89_0.06_160)]">
<Grain variant="sandpaper" intensity="fine" />
<div className="relative flex items-start justify-between gap-6">
<Marker variant="target" className="size-20" />
<MarkerNumeral n={2} className="font-sans text-7xl font-bold" />
</div>
<div className="relative border-t border-current/25 pt-7">
<p className="font-display text-3xl">
{COPY.title}
<br />
{COPY.aside}
</p>
<div className="mt-6 flex items-center gap-4">
<Marker variant="arrow" className="size-9" />
<p className="text-sm leading-6">
{COPY.body}
<br />
{COPY.location}
</p>
</div>
</div>
</div>
)
}
import { cn } from "cn"
import {
PAPER_GRAIN,
SANDPAPER_GRAIN,
SINGLE_NOISE,
SQUARE_GRAIN,
} from "@/components/texture/grain-recipes"
type Intensity = "fine" | "default" | "rich"
// One scale for every texture; `default` is the unscaled value.
const INTENSITY_MULT: Record<Intensity, number> = {
fine: 0.6,
default: 1,
rich: 1.45,
}
const alpha = (base: number, mult: number) => (base * mult).toFixed(4)
// Four grain treatments; each paints a single texture layer.
// Full-bleed art layer — drop inside a `relative` parent; sits behind content.
/** The texture treatment painted by `Grain`. */
type GrainVariant =
// Stylized paper-look variants — heavier filter chain than plain noise.
"paper" | "sandpaper" | "square" | "single"
type Layer = {
src: string
size: string
opacity: number
blend: "overlay" | "soft-light"
}
const BLEND_CLASS: Record<Layer["blend"], string> = {
overlay: "mix-blend-overlay",
"soft-light": "mix-blend-soft-light",
}
const VARIANT_TEXTURES: Record<GrainVariant, Layer> = {
paper: {
src: PAPER_GRAIN,
size: "250px",
opacity: 0.25,
blend: "overlay",
},
sandpaper: {
src: SANDPAPER_GRAIN,
size: "200px",
opacity: 0.25,
blend: "overlay",
},
square: {
src: SQUARE_GRAIN,
size: "200px",
opacity: 0.8,
blend: "soft-light",
},
single: { src: SINGLE_NOISE, size: "200px", opacity: 0.3, blend: "overlay" },
}
/**
* A decorative grain layer that fills a positioned parent without blocking
* clicks. Choose a texture and adjust its strength with `intensity` or
* `opacity`. `className` and other div props land on the outer layer.
*/
function Grain({
variant = "single",
intensity = "default",
opacity,
isolated = false,
className,
...props
}: React.ComponentProps<"div"> & {
/** The grain treatment: `single` (default), `paper`, `sandpaper` or `square`. */
variant?: GrainVariant
/** Multiplies the texture's opacity: `fine` 0.6×, `default` 1×, `rich` 1.45×. */
intensity?: Intensity
/** The texture opacity, from 0 to 1. Takes precedence over `intensity`. */
opacity?: number
/**
* Adds paint containment when true. This creates a stacking context, so
* the texture stops blending with scene layers outside this element.
*/
isolated?: boolean
}) {
const layer = VARIANT_TEXTURES[variant]
const m =
opacity != null ? opacity / layer.opacity : INTENSITY_MULT[intensity]
return (
<div
data-slot="grain"
data-variant={variant}
aria-hidden="true"
className={cn(
"pointer-events-none absolute inset-0",
isolated && "contain-[paint]",
className
)}
{...props}
>
<div
className={cn("absolute inset-0", BLEND_CLASS[layer.blend])}
style={{
backgroundImage: layer.src,
backgroundSize: layer.size,
opacity: layer.opacity * m,
}}
/>
</div>
)
}
export { Grain }
// The grain tiles the kit paints with, as data URIs, each held once. Every
// recipe is a tiny SVG turbulence filter; the component using it chooses
// the tile size, opacity and blend. `*_URI` is the bare image for callers
// that wrap it themselves; the unsuffixed name is ready for `background-image`.
/** Stylized paper: coarse turbulence pushed to high contrast, the grain under most of the painted scenes and the Grain `paper` variant. */
export const PAPER_GRAIN_URI =
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250' viewBox='0 0 100 100'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='turbulence' baseFrequency='1.4' numOctaves='1' seed='2' stitchTiles='stitch' result='n'/%3E%3CfeComponentTransfer result='g'%3E%3CfeFuncR type='linear' slope='4' intercept='1'/%3E%3CfeFuncG type='linear' slope='4' intercept='1'/%3E%3CfeFuncB type='linear' slope='4' intercept='1'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix type='saturate' values='0' in='g'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const PAPER_GRAIN = `url("${PAPER_GRAIN_URI}")`
/** Sandpaper: finer, two-octave turbulence, the Grain `sandpaper` variant and the pours and pools. */
export const SANDPAPER_GRAIN_URI =
"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 100 100'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='turbulence' baseFrequency='2.2' numOctaves='2' seed='5' stitchTiles='stitch' result='n'/%3E%3CfeComponentTransfer result='g'%3E%3CfeFuncR type='linear' slope='2.5' intercept='0.8'/%3E%3CfeFuncG type='linear' slope='2.5' intercept='0.8'/%3E%3CfeFuncB type='linear' slope='2.5' intercept='0.8'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix type='saturate' values='0' in='g'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const SANDPAPER_GRAIN = `url("${SANDPAPER_GRAIN_URI}")`
/** Square: three-octave turbulence at high contrast, the Grain `square` variant. */
export const SQUARE_GRAIN_URI =
"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22200%22%20height=%22200%22%20viewBox=%220%200%20100%20100%22%3E%3Cfilter%20id=%22n%22%20color-interpolation-filters=%22sRGB%22%3E%3CfeTurbulence%20type=%22turbulence%22%20baseFrequency=%222.1%22%20numOctaves=%223%22%20seed=%2211%22%20stitchTiles=%22stitch%22%20result=%22n%22/%3E%3CfeComponentTransfer%20result=%22g%22%3E%3CfeFuncR%20type=%22linear%22%20slope=%225.5%22%20intercept=%221.4%22/%3E%3CfeFuncG%20type=%22linear%22%20slope=%225.5%22%20intercept=%221.4%22/%3E%3CfeFuncB%20type=%22linear%22%20slope=%225.5%22%20intercept=%221.4%22/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix%20type=%22saturate%22%20values=%220%22%20in=%22g%22/%3E%3C/filter%3E%3Crect%20width=%22100%%22%20height=%22100%%22%20filter=%22url(%23n)%22/%3E%3C/svg%3E"
export const SQUARE_GRAIN = `url("${SQUARE_GRAIN_URI}")`
/** Plain fractal noise on a 200px tile, the Grain `single` variant. */
export const SINGLE_NOISE_URI =
"data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const SINGLE_NOISE = `url("${SINGLE_NOISE_URI}")`
/** Fine fractal noise on a 512px tile, SoftGrain and the Limb scene. */
export const SOFT_NOISE_URI =
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const SOFT_NOISE = `url("${SOFT_NOISE_URI}")`
/** Fine fractal noise the field scenes lay over their art: Fracture Field, Gestural Zip, Solar Flare and Underwater Shaft. */
export const FIELD_NOISE_URI =
"data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const FIELD_NOISE = `url("${FIELD_NOISE_URI}")`
/** Fine fractal noise on a 256px tile, the mist over the radial charts. */
export const CHART_NOISE_URI =
"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"
export const CHART_NOISE = `url("${CHART_NOISE_URI}")`
/** A one-octave dither on a 128px tile, the glass of the neon signs. */
export const DITHER_NOISE_URI =
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"
export const DITHER_NOISE = `url("${DITHER_NOISE_URI}")`
/** A thin film: paper turbulence with its alpha cut to 0.6, the grain GlowSection lays over its light. */
export const GLOW_FILM_URI =
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='sf' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='turbulence' baseFrequency='1.4' numOctaves='1' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23sf)'/%3E%3C/svg%3E"
export const GLOW_FILM = `url("${GLOW_FILM_URI}")`
/** Plain fractal noise on a 400px tile, the canvas finish of ColorField and FeltOrb. */
export const CANVAS_NOISE_URI =
"data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"
export const CANVAS_NOISE = `url("${CANVAS_NOISE_URI}")`
import * as React from "react"
import { cn } from "cn"
/**
* Constructivist marks, drawn with ruler and compass. Each one comes from the
* period's own vocabulary: Lissitzky's wedge into a circle, the diagonal band,
* Suprematist disc and square, the arrow, the compass-drawn target, the
* printer's registration mark and the heavy typographic rule.
* Numerals live in `MarkerNumeral`.
*/
const shapes = {
// A wedge driving into a ring.
wedge: (
<>
<circle
cx="15"
cy="12"
r="6.5"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<polygon points="1,6.5 16,12 1,17.5" />
</>
),
// A thick band at 30 degrees.
band: <polygon points="2,15.5 19,5.5 22,10 5,20" />,
disc: <circle cx="12" cy="12" r="8" />,
// Two compass-drawn rings around a dot.
target: (
<>
<circle
cx="12"
cy="12"
r="9"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<circle cx="12" cy="12" r="3.5" />
</>
),
// The printer's registration mark: a cross through a ring.
registration: (
<>
<circle
cx="12"
cy="12"
r="6.5"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
/>
<path d="M11 1h2v22h-2zM1 11h22v2H1z" />
</>
),
arrow: <path d="M2 10h12V5l8 7-8 7v-5H2z" />,
square: <rect x="5" y="5" width="14" height="14" />,
bar: <rect x="2" y="9" width="20" height="6" />,
} as const
type MarkerVariant = keyof typeof shapes
/** A marker choice for components: any shape, or "none" to render nothing. */
type MarkerProp = MarkerVariant | "none"
/**
* 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.
*/
function Marker({
variant = "wedge",
className,
...props
}: React.ComponentProps<"svg"> & {
/** Which mark to draw; "none" renders nothing. Defaults to "wedge". */
variant?: MarkerProp
}) {
if (variant === "none") return null
return (
<svg
data-slot="marker"
data-theme="neoconstruct"
data-variant={variant}
viewBox="0 0 24 24"
fill="currentColor"
aria-hidden="true"
className={cn("size-4 shrink-0", className)}
{...props}
>
{shapes[variant]}
</svg>
)
}
/**
* 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.
*/
function MarkerNumeral({
n,
className,
...props
}: React.ComponentProps<"span"> & {
/** The number to show, padded to two digits. */
n: number
}) {
return (
<span
data-slot="marker-numeral"
data-theme="neoconstruct"
aria-hidden="true"
className={cn("font-heading leading-none tabular-nums", className)}
{...props}
>
{String(n).padStart(2, "0")}
</span>
)
}
export { Marker, MarkerNumeral }
export type { MarkerVariant }
Anatomy
Neoconstruct Marker is built from 2 parts. In the example they nest like this:
Marker
MarkerNumeralMarker: 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 atsize-4and 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 withclassName. 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.