How to apply custom styling depending on Theme (light/dark?) #58
Answered
by
sergeythrees
jasonserafino
asked this question in
Q&A
-
I've followed the approach in Styling Multiple Components but this sets it regardless of theme (light/dark). How to apply custom styles depending on theme? |
Beta Was this translation helpful? Give feedback.
Answered by
sergeythrees
Mar 11, 2025
Replies: 1 comment
-
Hi, @jasonserafino If you need to style the form editor itself, then there are also classes there: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sergeythrees
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, @jasonserafino
You can use the parent css selector
.rs-theme-dark .optimajet-formviewer
and also.rs-theme-light .optimajet-formviewer
for this:If you need to style the form editor itself, then there are also classes there:
.optimajet-formbuilder.dark
and also.optimajet-formbuilder.light