Engram

Tier watermark

component

The season/tier corner assembly shared by the item tile and the inspect popup header: a soft scrim, the season crest, and a colored diamond per gear tier — the diamonds and gradient are drawn in CSS (no baked-in Bungie asset margins), so the whole stack aligns precisely.

Install

npx shadcn@latest add @engram/tier-watermark

Registry item: /r/tier-watermark.json — the machine-readable definition agents install from.

Example

Props

PropTypeDefaultDescription
seasonIconImageRefClean season glyph (`DestinyIconDefinition.secondaryBackground`).
tiernumber0Gear tier (1–5). Drawn as that many diamonds — gold at tier 5, light blue/purple below; tier 1 (and untiered) shows none.
corner"top-left" | "top-right""top-left"Corner the crest + diamonds sit in. Default top-left.
glyphSizenumber16Season crest width, px.
diamondSizenumber5Diamond edge length, px.
scrimWidthnumber32Width of the top-to-bottom scrim strip down the crest's column, px.
crestGapnumber3Gap between the crest and the diamonds, px.
diamondGapnumber4Gap between adjacent diamonds, px. Scaled down with the tile so a full 5-diamond stack never runs off the bottom edge on small tiles.
classNamestring

Composition

pulled in on install

Dependencies

npm
@engram/core

Own the code: shadcn add copies this component's source into your repo to read and edit directly. Extend without forking — edit the source, use asChild to swap the element, or pass the typed annotations prop for curated data.