Repository navigation
v1.7.4
What's changed
Bug fixes
- Fix opacity overlap on container bones — Container bones (
c: true) were rendered as semi-transparent with child bones stacked on top, creating darker overlap regions. Container bones are now skipped during rendering across all frameworks. - Fix dark mode detection — Reverted to
.darkclass-only detection. Theprefers-color-schememedia query was incorrectly overriding app-level theme control — OS dark mode would force dark bone colors even in light-themed apps. Skeleton now only responds to the.darkclass on<html>or parent elements, giving app developers explicit control. - Fix demo page dark mode — Demo uses CSS
filter: invert()for dark mode. Adding.darkclass caused Skeleton to use dark colors which inversion flipped back to light. Removed.darktoggle from demo — CSS inversion handles everything correctly. - Fix scaleY in React — React was the only framework missing vertical scaling when the container height differs from capture height. Restored
scaleYto match all other frameworks. - Fix circle detection — Added capture-width safety check across Angular, Svelte, and runtime to prevent pill-shaped elements from being incorrectly rendered as circles.
- Fix React console warning — Shimmer bones no longer set both
backgroundandbackgroundSize(shorthand conflict). Switched tobackgroundImage.
New features
- Configurable shimmer/animation via
boneyard.config.json— New runtime config keys:shimmerColor,darkShimmerColor,speed,shimmerAngle. The config file is the primary customization point — values are baked into the generatedregistry.jsviaconfigureBoneyard(). Per-component props still override.{ "shimmerColor": "#ebebeb", "darkShimmerColor": "#333333", "speed": "2s", "shimmerAngle": 110 }
Improvements
- Centralized animation constants —
SHIMMER,PULSE,DEFAULTSdefined once inshared.ts, consumed by every framework. One change propagates everywhere. - Opaque default bone colors — Switched from
rgba(0,0,0,0.08)to#f0f0f0(light) /#222222(dark). Eliminates transparency stacking artifacts. - Refined shimmer highlights — Tuned to
#f7f7f7(light) /#2c2c2c(dark) for a visible but not overpowering shimmer sweep. - Cleaned up unused code — Removed
CONTAINERimports from all framework files since container bones are no longer rendered. - Updated agent/llms.txt documentation — Full config table with all build-time and runtime options, dark mode behavior, and new configurable fields so AI assistants have complete context.
Docs
- Revamped responsive page with interactive drag-to-resize demo
- Removed all hardcoded color overrides — docs now demonstrate package defaults
- Fixed how-it-works page skeleton/component mismatch at different widths
Frameworks affected
React, Preact, Vue, Svelte, Angular, React Native, vanilla runtime (renderBones)
Full changelog: v1.7.2...v1.7.4