stylight

A CSS-In-JS module that's been made as simple as we probably wanted

Downloads
44
Stars
0
Committers
1

Bot releases are hidden (Show)

stylight - 0.5.9 Latest Release

Published by zelbov 4 months ago

Fix: prevent seeding of arbitrary strings passed to class picker that are not listed in a style sheet top-level scope as class selectors

stylight - 0.5.8rev2

Published by zelbov 4 months ago

Workspace: fix vulnerable dev dependencies

stylight - 0.5.8

Published by zelbov 4 months ago

React tweaks and performance upgrades:

  • Breaking change: useStyle hook now accepts options as second parameter instead of just seed. A seed property is passed into options object instead, along with mutate for conditional stylesheet mutations upon render
  • Fixed StyleRenderer bugs producing duplicate/inconsistent styles during hydration
stylight - 0.5.7rev2

Published by zelbov 4 months ago

Intermediate release. No changes to actual code, only updated documentation and tests.

stylight - 0.5.7

Published by zelbov 4 months ago

Breaking change: replaced all mentions of mixins with literals in all property descriptors type defs and all documentation for better explanation of what they actually mean

stylight - 0.5.6

Published by zelbov 5 months ago

  • Dev: fixed union type errors appeared after recent Typescript updates
  • Removed usage of common btoa from default seeding function in favor to Buffer or window.btoa depending on execution platform
  • Added support for multiple nested selector declarations, and those succeeding element selectors via mixins
stylight - 0.5.5 (hotfix)

Published by zelbov over 1 year ago

Version 0.5.5 (hotfix)

Fixes:

  • Prevent keyframes from producing semicolon separators in global rules scope
stylight - 0.5.4

Published by zelbov over 1 year ago

Version 0.5.4 (still alpha)

Fixes

  • Does not render semicolon after last CSS property anymore
  • Implemented keyframes rule definition and rendering (currently only inside selector or nested selector scope)
stylight - 0.5.3 (hotfix)

Published by zelbov over 1 year ago

Hotfix release for previous version

  • Fixed useStyle React hook misbehavior when passing StyleSheetObject or StyleSheetInit parameter type leading to further usage of keyof Object as completion target by class picker instead of actual stylesheet defined properties as keys
stylight - 0.5.2

Published by zelbov over 1 year ago

Version 0.5.2 (still alpha)

Breaking change:

  • Type definition for ThemeStyleSheet was invalidated and replaced with StyleSheetObject. Therefore, type definition export was replaced accordingly

Fix:

  • React useStyle hook now also accepts whole output of createStyleSheet call as a single parameter, aside of simple stylesheet object definition. Therefore, useStyle and its returning class picker function now process seeding provided to a stylesheet initialized with createStyleSheet in a proper manner.