Skip to content

Commit b4cf948

Browse files
authored
Merge pull request #1 from flexcodelabs/version-two
New UI
2 parents d219f3c + 4b59a96 commit b4cf948

File tree

14 files changed

+5028
-2064
lines changed

14 files changed

+5028
-2064
lines changed

.gitignore

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
# Node
1+
.DS_Store
22
*.log
3-
*.log.*
4-
node_modules
5-
6-
out/
7-
dist/
8-
src/*.js
9-
code.js
3+
*.css.d.ts
4+
build/
5+
node_modules/
6+
manifest.json

README.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,43 @@
22

33
A Figma plugin to help generate hues, tints, and/or shades
44

5+
![showcase gif](./showcase.gif 'rangi in Figma')
6+
57
## Features
68

7-
- [x] Generate a hue spectrum from a given color by keeping its saturation and brightness constant.
9+
- [x] Generate a hues from a given color.
810

911
- [x] Generate tints from a given color
1012

1113
- [x] Generate shades from a given color
1214

13-
Find it in Figma community: https://www.figma.com/community/plugin/1153959136228678599
15+
## How it works
16+
17+
### Generating Hues
18+
19+
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.
20+
21+
### Generating Tints
22+
23+
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.
24+
25+
### Generating Shades
26+
27+
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.
28+
29+
## Todo & Roadmap
30+
31+
If the plugin gains traction, the plan is to do the following:
32+
33+
- [ ] Refactor code
34+
- [ ] Add ability for users to configure the generated frames, things like size, frame orientation, shape, naming, etc.
35+
36+
## Assets & Links
37+
38+
UI design of the plugin:
39+
https://www.figma.com/community/file/1157058671138458897
1440

15-
## Roadmap
41+
Plugin in Figma community:
42+
https://www.figma.com/community/plugin/1153959136228678599
1643

17-
- [ ] Update the UI to this: https://www.figma.com/community/file/1157058671138458897
44+
Built and maintained with ❤ by [Flexcode Labs](https://flexocelabs.com)

manifest.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "rangi",
3-
"id": "1153959136228678599",
42
"api": "1.0.0",
5-
"main": "code.js",
63
"editorType": [
74
"figma"
85
],
9-
"ui": "ui.html"
10-
}
6+
"id": "1153959136228678599",
7+
"name": "rangi",
8+
"main": "build/main.js",
9+
"ui": "build/ui.js"
10+
}

0 commit comments

Comments
 (0)