Styleframe Logo
Back to changelog
v3.0.0

One instance, and the scanner

Version 3 changes the shape of a Styleframe project. Instead of threading an instance through your code, there is now one global instance, and a scanner that reads your markup to decide which utilities to generate. This is the foundation the rest of the 3.x line builds on.

New

  • A global Styleframe instance. You no longer pass an instance around — it's global, so authoring styles is more direct.
  • The scanner, integrated. The scanner algorithm is now part of the pipeline, collecting the utilities your markup actually uses.
  • The recipe factory. The Badge recipe arrived on a new createUseRecipe factory — the pattern every later recipe follows.

Notes

This is a major version. Expect to adjust how you initialize Styleframe; the global instance replaces the per-project instance you passed explicitly in 2.x.

View the v3.0.0 release on GitHub