Issue #1614💬 AnsweredOpened November 28, 2018by gcoda0 reactions

Adding css variables as style manager property

Quick answerby artf

Hi @gcoda you should use property for the CSS property name (eg. color)

Read full answer below ↓

Question

trying to add css variable to style manager causing error: Uncaught TypeError: Cannot read property 'toUpperCase' of undefined fiddle Am i doing something wrong? Fixed by changing utils/mixins.js#L76 to

Answers (3)

artfNovember 30, 2018

Hi @gcoda you should use property for the CSS property name (eg. color)

gcodaNovember 30, 2018

Yes, it works with regular properties like color, is there another way to edit css custom properties on components?

artfDecember 1, 2018

is there another way to edit css custom properties on components?

Well, not currently, the style manager was made to edit style properties and not CSS custom one, but they have a lot in common

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.