Skip to content

streamich/freestyler

Repository files navigation

libreact logo

freestyler

5th generation React styling library — it is lightning fast, lean, and with gazillion features.

        Yeah, straight from the top of my dome
            As I rock, rock, rock, rock, rock the microphone
                Yeah, straight from the top of my dome
                    As I rock, rock, rock, rock, rock the microphone...

feat.

Installation

npm i freestyler --save

Usage

import {css, styled} from 'freestyler';

Decorate stateful components.

@css({
    border: '1px solid tomato',
})
class App extends Component {
    render () {
        return <div>Hello world!</div>;
    }
}

Or, create "styled" stateless components.

const Bordered = styled.div({
    border: '1px solid tomato',
});
const App = () =>
    <Bordered>Hello world!</Bordered>;

See more interfaces below.

Reference

Packages

  • libreact — must-have utilities for every React project.
  • themestyler — theming primitives designed for freestyler, but can be used in any React project.
  • freestyler-context — generic React context pub/sub that shallowly merges contexts with the same name.
  • freestyler-observable — observable factory.

License

Unlicense — public domain.


Are you a freestyler?