https://github.com/luavolk/css2lit
Converts css file to a lit-element css export
https://github.com/luavolk/css2lit
Last synced: about 1 year ago
JSON representation
Converts css file to a lit-element css export
- Host: GitHub
- URL: https://github.com/luavolk/css2lit
- Owner: luaVolk
- License: mit
- Created: 2019-10-12T18:20:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-31T02:54:57.000Z (about 5 years ago)
- Last Synced: 2025-02-04T03:09:50.345Z (over 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 }`;
```