CSS Custom Properties in Site...

User 2979665 Photo

8 posts

Hi there! Is it at all possible to use CSS custom properties - similar to 'variables' in LESS/SASS - to define values to be reused throughout a project? For example, defining a value for 'main-colour', 'base-font-size' or 'main-font', which can then be changed easily throughout the project, simply by changing the value in one location?

If not, is there a different way to do this and achieve the same result? All guidance appreciated.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.