-
I am developing an application which allows users to load CSS fragment dynamically to customize the UI. As the class name is generated dynamically and may be changed over time, is it possible to keep some of the class name unchanged, so user can override them using the traditional CSS techniques? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If it's just a few styles, then you could use globalStyle('.stableClassname', {
color: 'red'
}); However this comes with some restrictions compared to the Alternatively you could generate custom identifiers that don't have a |
Beta Was this translation helpful? Give feedback.
If it's just a few styles, then you could use
globalStyle
to create a global classname, e.g.: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.