Skip to content

typestyle/css-to-typestyle

Repository files navigation

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
  });