Skip to content

v1.7.4

Choose a tag to compare

@0xGF 0xGF released this 12 Apr 17:47
· 69 commits to main since this release

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 .dark class-only detection. The prefers-color-scheme media 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 .dark class on <html> or parent elements, giving app developers explicit control.
  • Fix demo page dark mode — Demo uses CSS filter: invert() for dark mode. Adding .dark class caused Skeleton to use dark colors which inversion flipped back to light. Removed .dark toggle 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 scaleY to 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 background and backgroundSize (shorthand conflict). Switched to backgroundImage.

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 generated registry.js via configureBoneyard(). Per-component props still override.
    {
      "shimmerColor": "#ebebeb",
      "darkShimmerColor": "#333333",
      "speed": "2s",
      "shimmerAngle": 110
    }

Improvements

  • Centralized animation constants — SHIMMER, PULSE, DEFAULTS defined once in shared.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 CONTAINER imports 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