Skip to content

How to override styles generated by VE using css #1257

Answered by askoufis
Yaojian asked this question in Q&A
Discussion options

You must be logged in to vote

If it's just a few styles, then you could use globalStyle to create a global classname, e.g.:

globalStyle('.stableClassname', {
  color: 'red'
});

However this comes with some restrictions compared to the style API.

Alternatively you could generate custom identifiers that don't have a hash in them, or alternatively provide your own hash that's still unique, but more stable.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Yaojian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants