https://github.com/typestyle/css-to-typestyle
Convert raw CSS to TypeStyle
https://github.com/typestyle/css-to-typestyle
converter css post-css typescript typestyle
Last synced: about 1 year ago
JSON representation
Convert raw CSS to TypeStyle
- Host: GitHub
- URL: https://github.com/typestyle/css-to-typestyle
- Owner: typestyle
- Created: 2017-01-20T03:19:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-01T16:30:56.000Z (almost 9 years ago)
- Last Synced: 2025-03-24T18:52:35.131Z (over 1 year ago)
- Topics: converter, css, post-css, typescript, typestyle
- Language: TypeScript
- Homepage:
- Size: 67.4 KB
- Stars: 12
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CSS to TypeStyle converter
> Convert your raw CSS to TypeScript
[](https://badge.fury.io/js/css-to-typestyle)
[](https://travis-ci.org/typestyle/css-to-typestyle)
[](https://www.npmjs.com/package/css-to-typestyle)
## 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
```ts
import { convertCss } from 'css-to-typestyle';
convertCss('.redClass{ color: red }')
.then((typestyleSource) => {
// write out to file
});
```