Socket
Socket
Sign inDemoInstall

css-rough

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-rough

using `css-paint-es` instance of native api


Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

css-rough

using css-paint-es instance of native api

example

Using Houdini CSS Paint API with Rough.js

<style>
  .card {
    --rough-border-width: 3;
    --rough-fill: red;
    --rough-fill-weight: 9;
    --rough-fill-style: zigzag;
  }

  input {
    --rough-border-width: 3;
    --rough-fill: white;
    --rough-fill-style: solid;
  }
</style>
<div class="card">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
  <input type="text" placeholder="Enter some text">
</div>

Install

import 'css-rough'

CSS Properties

Following properties corresponding to rough.js options can be set using CSS:

--rough-fill - color to fill the element background with.

--rough-fill-style - Fill style. Default is hachure. Other values can be solid, zigzag, cross-hatch, dots. See rough.js fill style.

--rough-roughness - Numeric value defining how rough the shape is. (more)

--rough-hachure-gap - Numeric gap between hachure lines (more)

--rough-hachure-angle - Numeric angle in degrees of hachure lines (more)

--rough-fill-weight - Numeric value indicating the width of fill lines (more)

--rough-border-width - Draw a rough border with the specified numeric width.

--rough-border-color - Color of the rough border.

FAQs

Package last updated on 26 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc