You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 331c1f3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,17 @@ It also comes with a snazzy CLI:
10
10
11
11
[This example site](https://tiltshift.github.io/figmint/) shows a figma file above html and css generated using the JSON that figmint outputs. This example can be found and run in the `example` folder in this repo.
12
12
13
+
👩🏽🏫*Recommendations*:
14
+
15
+
- Use names in figma that work well in javascript. `darkGreen` vs. `Dark Green`
16
+
- Figma lets you name two styles the same thing. This will cause overwrite issues in your exports.
17
+
13
18
🚨*Notes*:
14
19
15
20
- Currently only Fill styles, Text styles, and exports are supported. PR's welcome for Grid and Effect styles!
16
21
- Figmint will only pick up a style if it is used in the file you pass it. If you are finding a style isn't syncing make sure an element in the file is using that style.
17
-
- Exports work only with with scale values (2x for example) and not with width or height values (512w). This is a limitation of the figma API.
22
+
- PNG and JPG exports work only with with scale values (2x for example) and not with width or height values (512w). This is a limitation of the figma API.
23
+
- Color styles with multiple properties are available as part of the raw export. The simpler named exports will only display the final property.
18
24
19
25
## Install and Config
20
26
@@ -88,13 +94,13 @@ You can connect the example to your own figma file by editing `.figmintrc.json`
88
94
89
95
The CLI for figmint is pretty simple, just run `yarn figmint` or `npm run figmint` in your project after it is installed.
90
96
91
-
### Watch Mode
97
+
### Watch Mode (alpha)
92
98
93
99
It is also possible to run the CLI in watch mode. This will update your json as things change on figma without you needing to re-run the command.
94
100
95
101
🚨*Notes*:
96
102
97
-
- Currently watch mode will overrite your Figma file every second. Depending on your dev enviroment this may cause your site to reload more than expected. Ideally figmint would only write files that have chagned. PR's welcome!
103
+
- Currently watch mode will overrite the output every second. Depending on your dev enviroment this may cause your site to reload more than expected. Ideally figmint would only write files that have chagned. PR's welcome!
0 commit comments