You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
515 B
30 lines
515 B
2 years ago
|
# convert-css
|
||
|
|
||
|
This is a script that takes a string of css on stdin
|
||
|
and outputs imba css on stdout.
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
```
|
||
|
npm link
|
||
|
```
|
||
|
|
||
|
The binary will be available as `css`.
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
Until this is integrated into tooling,
|
||
|
on MacOS you can pipe the output to your clipboard:
|
||
|
|
||
|
```sh
|
||
|
pbpaste | css | pbcopy
|
||
|
```
|
||
|
|
||
|
## Todo
|
||
|
|
||
|
- Convert px to imba units?
|
||
|
- Convert colors to imba colors?
|
||
|
- Convert `p:0 8px` to `py:0 px:2`?
|
||
|
- Convert `w:1 h:1` to `s:1`
|
||
|
- If there are repeat values (such as `p:10 pr:5`), preserve order.
|