Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luavolk/css2lit

Converts css file to a lit-element css export
https://github.com/luavolk/css2lit

Last synced: 27 days ago
JSON representation

Converts css file to a lit-element css export

Awesome Lists containing this project

README

        

# CSS2Lit

Executable that converts css file to a lit-element css export

## Instalation

```bash
$ npm install css2lit
```

## Usage

```bash
$ npx css2lit path/to/file
```

## Example

```css
.body { color: blue }
```

Output:

```js
import {css} from 'lit-element';
export const style = css`.body { color: blue }`;
```