framer-icon

0.2.0 • Public • Published

Framer icon module

Dynamically tinted icons based off of a template image.

Usage

cd <myProject>.framer
$ npm install framer-icon

modules/myModule.coffee:

exports.Icon = require "framer-icon"

app.coffee:

{Icon} = require "myModule"
 
new Icon
  width: 30
  height: 30
  image: "images/icon.png"
  tintColor: "cornflowerblue"

API

Icon#tintColor <string>

Get or set the tint color. Anything accepted by Layer#backgroundColor is valid, with the addition of CSS gradients. Icon#color and Icon#backgroundColor are aliases.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    2
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i framer-icon

Weekly Downloads

4

Version

0.2.0

License

MIT

Last publish

Collaborators

  • peteschaffner