Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 745 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 745 Bytes

CSS to TypeStyle converter

Convert your raw CSS to TypeScript

npm version Build Status Downloads

Why build this?

CSS comes from all kinds of sources. Rather than sticking css in cssRaw in TypeStyle, why not convert it to TypeStyle?

How to use it

import { convertCss } from 'css-to-typestyle';

convertCss('.redClass{ color: red }')
  .then((typestyleSource) => {
    // write out to file
  });