sassy-inline-gradients
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

sassy-inline-gradients

Sass extension to inline gradients as base64-encoded images.

Installation

npm install sass sassy-inline-gradients --save-dev
+ const createInlineGradientsFunctions = require("sassy-inline-gradients");

const sassOptions = {
  functions: {
+    ...createInlineGradientsFunctions(),
  },
  indentWidth: 2,
};

Usage

Code examples:

.alfa {
  background: inline-linear-gradient(
    200px,
    45deg,
    red,
    green 100px,
    blue 150px,
    yellow 95%
  );
}
.bravo {
  background: inline-linear-gradient(
    200px,
    to top,
    red 10.5%,
    green 33.3%,
    blue
  );
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.00
1.1.00
1.0.00

Package Sidebar

Install

npm i sassy-inline-gradients

Weekly Downloads

0

Version

1.2.0

License

MIT

Unpacked Size

34.2 kB

Total Files

37

Last publish

Collaborators

  • borodean