feat: skeleton — dithered loading placeholders (chart-silhouette variant)#16
Open
DloomPlz wants to merge 1 commit into
Open
feat: skeleton — dithered loading placeholders (chart-silhouette variant)#16DloomPlz wants to merge 1 commit into
DloomPlz wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adds
<DitherSkeleton>, a loading placeholder in the kit's own texture: a slow shimmer band sweeping through the ordered dither instead of a flat pulsing rect.variant="block"— size it like any skeleton (className="h-4 w-40 rounded"), text lines / cards / avatar squares.variant="chart"— draws a seeded area silhouette (two seeded sine waves via the kit'sfnv1a/xorshift32), so a chart slot loads "in character". Same seed → same shape, so a reloading chart never pops between two different placeholder silhouettes.pixel.ts+palette.ts, no chart engine.prefers-reduced-motion(static frame, no loop), alwaysaria-hidden(placeholders are decorative), cleans up rAF + ResizeObserver, backing resolution capped.Details
skeletonHeights,shimmerLift) are exported and unit-tested; a mount test pins the aria-hidden contract (happy-dom safe — the painter no-ops on a null 2D context).r/JSON regenerated withnpm run build:registry.Battle-tested in a production dashboard where it replaced every
animate-pulsechart placeholder.