Loading bootstrap css and then overriding root variables #4523
Unanswered
scdigitalmedia
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@scdigitalmedia are you able to create a reproducible demo of your use case? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have GrapesJs loading with Bootstrap styles, however, I'm building a CMS and on my front end I have overrides for certain bootstrap root variables, ie. primary, secondary colors. I'd like to be able to import these overrides into GrapesJS so the editor is using the same styles(and overrides) as the front end of the site.
I've tried adding CSS rules, with "!important" but it looks like the CSS url from Canvas -> styles is being loaded first, and then my css rule being added afterwards. I've also tried the cssParser as well, but it looks to be loading in the same order(bootstrap first, then overrides)
What would be the best way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions