Extend brand-raster.mjs with a brand/social target #102
Labels
No labels
area:docs
area:identity
area:ops
area:plugin
area:server
channel:community
channel:direct
channel:owned
channel:press
channel:social
e2ee-constrained
gate:at-ga
gate:pre-ga
marketing
parity
relay:absent
relay:planned
relay:requested
relay:supported
risk:additive
risk:contract
risk:none
usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Nectenda/nectenda#102
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The social profiles need avatars and banners. Exporting them by hand means they
drift from the design system the first time a token moves, and nothing notices.
What to do
Extend
scripts/brand-raster.mjswith abrand/social/target. The scriptalready does exactly this job for two other consumers — it renders SVG through
resvg to a named output directory and has a
--checkmode that re-renders to atemp dir, diffs, and exits 1 on drift. A third consumer fits its existing shape,
and the drift check means the social art cannot silently diverge.
Sizes:
site/static/og-card.pngis already 1200×630 and is the reference forcomposition.
Constraints
site/static/tokens.css—--withy#B08A2E,--withy-lift#D9B65A,--ink#14201B,--vellum#EEF0EA. The file is generatedfrom the design system; do not hand-edit it.
ctbind lives in the contour, soit must not be re-set in live Literata.
on anything else it shows as a halo — which constrains what background an
avatar can use. Check every export against both light and dark surrounds.
Verification
node scripts/brand-raster.mjs --checkexits 0 on a clean tree, and exits 1when a token is deliberately changed — check both directions, or the drift
check is a check that cannot fail.
Moved to the Vikunja board as NEC-78: https://projectron.nerchure.com/tasks/78