@fest-lib/style-lib
v0.1.20
Published
fest-lib style: CSS-in-JS (S/css), Typed OM, adopted sheets, WAAPI helpers
Maintainers
Readme
style.ts (@fest-lib/style-lib)
CSS-in-JS for fest: S / css templates, Typed OM, adopted sheets, and WAAPI helpers.
Extends @fest-lib/dom (sheets / handleStyleChange) and @fest-lib/lure (bindWith). Import from @fest-lib/style-lib. fest/lure and fest/dom re-export the public names for existing callers.
Modules
| File | Role |
| --- | --- |
| src/types.ts | interfaces / types / meta |
| src/maps.ts | Map / Set / WeakMap / WeakSet caches |
| src/constants.ts | CSS unit / property / theme-attr / layer tables |
| src/utils.ts | small shared helpers (detectors, parse, CSSOM guards) |
| src/Styles.ts | S, css, bindStyle, compileInlineStyleAttribute |
| src/layers.ts | @layer order / wrap / unwrap / CSSOM getOrCreateLayerRule |
| src/cssom.ts | getStyleRule, ensureStyleScopeSelector, fetch/cache |
| src/baker.ts | computed-style bake into @layer ux-baked (#id / data-style-id) |
| src/sheets.ts | loadAsAdopted, observeStyleTree, rehydrate |
| src/property.ts | setStyleProperty / Typed OM write |
| src/Animate.ts / Animatable.ts | WAAPI templates |
Hierarchy
Level 2.5: may import core, object, dom, lure. fl-ui may import this package. Do not import fl-ui from here.
