styled-funcs
Set of utility functions for working with styled components
Table of Contents
About
Explain the problem the package is trying to solve.
Features
- Name key features e.g. size, performance, how it differs from similar solutions etc.
Usage
;; const theme = colors: primary: 'tomato' black: '#333' white: '#fff' const Container = styleddiv` padding: ; background-color: ; ` const Button = styledbutton` padding: ; border: none; background-color: ; ` const Text = styledp` ; color: ;` { return <ThemeProvider theme=theme> <Container className="App" background="pink" flex small> <Text fontSize="33px">Hello CodeSandbox</Text> <Button size='1' borderRadius="10px">Click me</Button> </Container> </ThemeProvider> ;} const rootElement = document;ReactDOM;
Install
This project uses node and npm.
$ npm install styled-funcs$ # OR $ yarn add styled-funcs
Contribute
- Fork it and create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
MIT