Skip to content

ShareGradient v1.0.0

Latest

Choose a tag to compare

@mobiwise-dev mobiwise-dev released this 18 Mar 15:20

ShareGradient 1.0.0 is the first stable release of the project.

ShareGradient is a small browser-focused library that generates animated gradients, exports them as image URLs, and injects them into CSS custom properties so the same gradient can be reused across backgrounds, text, borders, overlays, and more.

Highlights

  • Stable public builder API
  • Support for linear, radial, and conic gradients
  • Animation modes: static, swirl, and rotate
  • Shared CSS variable workflow for multi-element reuse
  • Cleaner package exports for ESM and CJS consumers
  • Improved runtime safety for invalid inputs
  • Better controller lifecycle handling and listener cleanup
  • Updated README and landing page
  • Test coverage added for controller lifecycle, builder behavior, edge cases, and conic fallback
  • Coverage command available with npm run test:coverage

Notes

  • ShareGradient is designed for browser environments.
  • If createConicGradient() is not supported by the browser, conic gradients fall back to a linear gradient instead of throwing.

Verification

  • npm test -- --run
  • npm run test:coverage
  • npm run build
  • npx publint
  • npm audit

All checks passed for this release.