Skip to content

Releases: 8tentaculos/cssfun

v0.0.7

08 Oct 00:47
Compare
Choose a tag to compare

Changes

  • Add nested global prefix.

    css({
        root : {
            '@global a' : {
                color : 'black'
            }
        }
    }).toString();
    Renders to:
    <style id="fun-1">
        .fun-1-root-1 a {
            color : black;
        }
    </style>

v0.0.6

03 Oct 18:35
Compare
Choose a tag to compare

Changes

  • Use es6.
  • Docs.

v0.0.5

26 Sep 18:28
Compare
Choose a tag to compare

Fixes

  • Fix package exports for node and bundlers.

v0.0.4

24 Sep 20:25
Compare
Choose a tag to compare

Changes

  • Improve code for StyleSheet parse and render.
  • Improve createTheme code.

v0.0.3

22 Sep 22:52
Compare
Choose a tag to compare

Changes

  • Docs.
  • Improve parseStyles.

Fixes

  • Fix deep nested parent reference at parseStyles.

v0.0.2

21 Sep 21:23
Compare
Choose a tag to compare

Changes

StyleSheet

  • Make prefix for ids configurable as options.idPrefix.

createTheme

  • Add options.createStyleSheet to configure StyleSheet creation. By default css is used.

Breaking Changes

StyleSheet

  • StyleSheet.classPrefix is now StyleSheet.prefix

createTheme

  • createTheme is not more a higher order function. Now it receives a themes object and an options object and returns a theme StyleSheet.
  • Fix css vars. Use dashes for nested objects. And keep camelized keys. { palette : { backgroundColor : 'black' } } will be transformed into --fun-palette-backgroundColor instead of --fun-palette-background-color.

v0.0.1

19 Sep 03:12
Compare
Choose a tag to compare

Initial release