This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Julia Carlson
Posted Mar 09 - Read on Facebook

Does anyone have an example of a color library in the form of a module?

4 Comments

Steve Ruiz

On larger projects I make my own, just creating an object like 'colors' with color codes stored as properties. This way I can point to the object in my layers (e.g. Layer.backgroundColor: colors.secondary) throughout the project and only have to make changes to that colors object when I'm tweaking the design layer. This doesn't have to be in a module, though it can be; I mostly put my colors object in a simple code fold at the top. Is that what you meant?

Julia Carlson

I need to be able to reference the colors between other modules in my project so I think it needs to be in a module itself.

Steve Ruiz

Right on, easily done. I used a module to store my colors in this project, if you still need to see an example. https://framer.cloud/RnQqt/

Julia Carlson

Thank you so much!

Read the entire post on Facebook