styled-to-jss
v2.4.0
Published
styled-components sheet convertion to jss one
Downloads
2
Readme
Version is still in beta and only does line by line convertions at the moment
Set up
We use yarn as our package manager. To get dependencies run
yarn install
For development run:
yarn install --dev
CLI usage
Run yarn global add styled-to-jss
or npm install styled-to-jss -g
if you use npm
Example usage
styled-to-jss --path="./style.js" --output="./style.converted.js"
Flags
--path [Relative path to the file that will be converted]
--output [Where the converted version be written to (if not specified it will output to stdout)]
Regular usage
import extractor from 'styled-to-jss';
const newString = extractor('background-color: red;');
console.log(newString);// backgroundColor: 'red',