v0.1.0-beta.5
Pre-release
Pre-release
Highlights
This version expands Fluentic Style beyond regular element styles into attachable selector sheets, Preact css-prop support, and better interop tools for real third-party component styling.
Selector Sheets
- Added
style.selector(...)targets andcreateSheet(...)from@fluentic/style/css. - Selector sheets attach through generated Fluentic classes instead of emitting global CSS.
- Added
&and&?selector handling for attached-element and portal-friendly rules. - Added selector sheet extraction, token overrides, debug class names, source tracing, and sourcemap support.
Third-Party Styling
- Added
createStyleTarget(...)for explicit DOM targets such asdocument.body. - Added shared-target reference counting for overlapping portal users.
- Added a React Select selector-sheet example and refreshed the third-party styling guide.
Composition
combineStyle(...)can now compose sheets directly.- Added
combineStyle.with(...)and array-onlycombineStyle.multi(...)for cache-friendly composition.
Framework Support
- Added Preact css-prop support through
CssPropPresets.Preact. - Added runtime adapters, JSX types, and a Vite Preact example.
- Kept plugin css-prop configuration focused on
CssPropPresets.
Priority And Interop
- Added
style.weight(...)as the style-object counterpart toclassName.weight(...). - Added
style.important(...)andclassName.important(...)for interop cases that need emitted!important, especially selector sheets wrapping third-party CSS.
Size
The extracted production runtime remains under the 5 KB min+gzip budget:
- extracted production runtime:
4.92 KBmin+gzip - extracted JSX runtime:
2.73 KBmin+gzip - extracted generated helpers:
778 Bmin+gzip