This is a little package to fetch colors from Figma for your project. It's a WIP.
You can clone this repo and add it to your project. You'll need to create a personal Figma access token by following the steps here and adding the token to a .env
file.
- Clone this repository,
[email protected]:bakkenbaeck/figma_package.git
cd
into the directory it was cloned into- Update the variables in
./figma/constants.js
- Add your access token to
.env
- Run
yarn figma
- You should see the color tokens generated from your Figma file in
./generated/colors.css
- Make configurable
- Support text styles
- Support more than one frame on a page
- Make a plugin ?
- Better error handling
- ...
✨