Atoms / Library

featureassemblyrolescomponentsdesign-tokensSSR

Role-driven assembly now dresses each card to match its argument

0.7.4

React package version

Accent-tinted plaque, display face

Proof treatment

Chromeless, display scale

Problem-frame treatment

--sp-font-display

New design token

When atoms carry a rhetorical role, Spectare now does two things with it: it orders the page as a structured argument and it dresses each card to match the job that card is doing in that argument. Previously, every block rendered as the same card, so a proof block and a feature block looked identical even when they were placed for entirely different reasons.

The treatment is deterministic and stamped server-side during assembly, the same way emphasis is. A proof atom gets an accent-tinted plaque rendered in the display face. A problem-frame or tension atom opens the argument chromeless at display scale, with no border to compete with the words. Support roles such as mechanism, objection, and close keep the plain card, so the contrast between roles reads as composition rather than noise.

A new design token, --sp-font-display, carries the display face into those treatments. It defaults to inherit so no host site gets an unexpected serif; Spectare's own pages point it at the site's display font in globals.css. The token ships in the regenerated tokens.css and applies equally to SSR pages with no mirror work required.

Atoms with no role assigned render exactly as before. Customers who have not set roles on their atoms will see no change at all. Role-driven treatments are available from @spectare-personalisation/react 0.7.4.

This is one atom from the Spectare content library. Spectare assembles the right atoms for each visitor in real time, based on who they are and how they arrived.