Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flexcodelabs/rangi-figma
A Figma plugin to help generate hues, tints, and/or shades
https://github.com/flexcodelabs/rangi-figma
figma figma-plugin preact typescript
Last synced: 2 days ago
JSON representation
A Figma plugin to help generate hues, tints, and/or shades
- Host: GitHub
- URL: https://github.com/flexcodelabs/rangi-figma
- Owner: flexcodelabs
- Created: 2022-09-20T10:45:59.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-07T13:43:09.000Z (over 1 year ago)
- Last Synced: 2023-06-07T14:35:37.971Z (over 1 year ago)
- Topics: figma, figma-plugin, preact, typescript
- Language: TypeScript
- Homepage: https://www.figma.com/community/plugin/1153959136228678599
- Size: 6.99 MB
- Stars: 14
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rangi
A Figma plugin to help generate hues, tints, and/or shades
## Features
- [x] Generate hues from a given color.
- [x] Generate tints from a given color
- [x] Generate shades from a given color
## How it works
### Generating Hues
rangi takes a color input and an interval value. It converts the color to HSL(Hue, Saturation, Light) value and plus or minus the interval value from the H value until it's either greater or equal to 0 or less or equal to 359. The max is set to 359 because some color values would give a black color when they hit 360.
### Generating Tints
To generate Tints, rangi takes the initial color, converts it to HSL(Hue, Saturation, Light) value adds the interval value to the L value until the L value is less or equal to 100.
### Generating Shades
Shades generation is similar to tints generation except instead of adding the interval value to the L value, rangi substracts it until the L value is less or equal to 0.
## Todo & Roadmap
If the plugin gains traction, the plan is to do the following:
- [ ] Refactor code
- [ ] Add ability for users to configure the generated frames, things like size, frame orientation, shape, naming, etc.## Assets & Links
UI design of the plugin:
https://www.figma.com/community/file/1157058671138458897Plugin in Figma community:
https://www.figma.com/community/plugin/1153959136228678599Built and maintained with ❤ by [Flexcode Labs](https://flexocelabs.com)