包详细信息

figx

n0rush2.4kMIT0.1.3

A comprehensive and reliable figma utilities library

utilities, figma, figma plugin, figma api

自述文件

Figx

A comprehensive and reliable figma utilities library [![npm-version-img]][npm-link] [![npm-downloads-img]][npm-link] [![license-img]][license-link] ![bundle-size-img] [npm-link]: https://www.npmjs.com/package/figx [npm-version-img]: https://img.shields.io/npm/v/figx.svg?style=flat [npm-downloads-img]: https://img.shields.io/npm/dm/figx.svg?style=flat [license-img]: https://img.shields.io/badge/license-MIT-blue.svg [license-link]: https://github.com/n0ruSh/figx/blob/main/LICENSE [bundle-size-img]: https://img.shields.io/bundlephobia/minzip/figx?cacheSeconds=1800

📚 Documentation

✨ Features

  • A comprehensive collection of utilities
  • Easy to learn and use with clear documentation
  • Written in TypeScript with native type support

📦 Install

$ npm install figx --save
# or
$ yarn add figx

🔨 Usage

import { toRgb, ColorFormat } from 'figx';
toRgb('#FF0000'); // => 'rgb(255, 0, 0)';
toRgb({ r: 255, g: 0, b: 0 }, ColorFormat.ARRAY); // => [255, 0, 0]
toRgb('hsl(0, 100%, 50%)', ColorFormat.OBJECT); // => { r: 255, g: 0, b: 0 }

💻 Demos

🤝 Contributing

$ git clone git@github.com:n0ruSh/figx.git
$ yarn
$ yarn start

Open your browser and visit http://127.0.0.1:8000

🙏 Credit

Inspired by the following awesome work:

create-figma-plugin

figma-plugin-helpers