Use textures.js in CSS
yarn add -D postcss-textures
npm i -D postcss-textures
postcss([textures])
For example, if you want to use the following on this page
textures.lines().heavier(10).thinner(1.5);
Write CSS like this.
(It resembles a function like linear-gradient
of the CSS)
.a {
background: textures.lines(heavier 10, thinner 1.5)
}
The functions are as follows.
textures.lines
textures.circles
textures.paths
http://riccardoscalco.github.io/textures/
MIT Copyright (c) 2015 Riccardo Scalco https://github.com/riccardoscalco/textures/blob/master/LICENSE.md#readme
The MIT License (MIT)
Copyright (c) 2017 nju33 nju33.ki@gmail.com