Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/asiffer/roughlify

Make your SVG rough
https://github.com/asiffer/roughlify

roughjs sketch svg

Last synced: 2 months ago
JSON representation

Make your SVG rough

Awesome Lists containing this project

README

        

# roughlify

Make your SVG rough ([❤️ rough.js](https://roughjs.com/)).

![Heroicons sample](assets/heroicons.png)

Example with heroicons


## Online app

For an online version of `roughlify`, visit [https://asiffer.github.io/roughlify/](https://asiffer.github.io/roughlify/)!

## Installation

```shell
yarn global add roughlify
```

## Usage

You can either provide a SVG or HTML file (local or remote). In the HTML case, it will make all the svg rough.

```shell
roughlify --stroke "#3500d3" --fill "#3500d3" examples/truck.svg
```

| Before | After |
| -------------------------------- | -------------------------------------- |
| ![truck.svg](examples/truck.svg) | ![truck.svg](examples/truck.rough.svg) |

Currently `roughlify` follows the [`rough.js` options](https://github.com/rough-stuff/rough/wiki#options) through CLI flags.