Skip to content

SpotlightData/styled-to-jss

Repository files navigation

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',

About

Converts styled components syntax to jss

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published