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...
- Bomfunk MC's — Freestyler
- Fifth generation
- Lightweight
- Lightning fast
- Just-in-time CSS
- Code splitting
- Dead code elimination
- Variables
- Scoped styles without selectors
- Nested selectors
- Mixins
- Media queries, keyframes, ...
- Atoms
- Global styles
- CSS Resets
- "Styled" component generator
- Theming
npm i freestyler --save
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.
- Terminology
- Generic: Low-level API
- Generic: 3rd Generation Interfaces
rule()
InterfaceStyleSheet.create()
Interface with lazy rendering
- React: 4th Generation Interfaces
styled()()
Component Interface@css
Static Class Decorator Interface@css()
Class Decorator Interface@css()
.render()
Decorator Interfacehoc
generator- Component
- hyperstyle
- React: 5th Generation Interfaces
styleit
syntaxjsxstyle
facc
generator
- Environment variables
libreact
— must-have utilities for every React project.themestyler
— theming primitives designed forfreestyler
, 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.
Unlicense — public domain.
Are you a freestyler?