@pebbble/gradients
v0.0.2
Published
Pebbble.io color gradient generator
Downloads
5
Readme
pebbble-gradients
Pebbble.io color gradient generator
how to use
import
import pebbbleGradient from '@pebbble/gradients';
const color = '#ff9900';
const gradient = pebbbleGradient.hex(color);
require
const pebbbleGradient = require('@pebbble/gradients');
const color = '#ff9900';
const gradient = pebbbleGradient.hex(color);
static import
<script src="path/to/pebbble-gradients/bundle.min.js"></script>
<script>
window.onload = function() {
var color = '#ff9900';
var gradient = pebbbleGradient.hex(color);
};
</script>
API
available methods
pebbbleGradient.hex()
pebbbleGradient.rgb()
pebbbleGradient.hsl()
pebbbleGradient.lch()
pebbbleGradient.oklch()
available constants
pebbbleGradient.defaults