Custom css for light/dark mode

Home Forums Legacy Support 4.0 Bugs & Issues Custom css for light/dark mode

Tagged: 

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #301269
    shynkaryk
    Participant
    Dear support, tell me, please: is it possible to differentiate the parameters of the selectors in the custom css for light and dark mode? For example, I need for light mode .selector {     color: green; } and for dark mode the same selector in blue color: .selector {    color: blue; } How can I do it? I will be grateful for the answer!
    #301655
    Diana
    Participant
    You can change the colors from wp-admin > Appearance > Customize > Vibebp Settings http://prntscr.com/udhv7h But these changes will be applied to other places as well where these colors called
    #301807
    shynkaryk
    Participant
    Thanks for the answer. But I mean something else. I have a lot of blocks with a custom css, which do not display well in dark mode. I want to fix them only for the dark mode. Here is an example: https://prnt.sc/udvf5l
    #301952
    Diana
    Participant
    Sir, Better to share the full page screenshot so we can locate the same and will share custom CSS for only that page or part of block In this screenshot, I can't figure out which component is this
    #309957
    shynkaryk
    Participant
    Light mode: https://prnt.sc/ug5i8j Dark mode: https://prnt.sc/ug5ih7 I need to change background color of div ".punkt_vyznachennya" in dark mode and color of "strong" text in dark mode: https://prnt.sc/udvf5l Thank you!
    #311030
    Diana
    Participant
    I can check that if it is possible or not via custom CSS Share the page URL here
    #311269
    shynkaryk
    Participant
    This reply has been marked as private.
    #311642
    Diana
    Participant
    I am sorry sir, for this element it is not possible you can provide inline CSS but with custom CSS not possible
    #311774
    shynkaryk
    Participant
    Ok, thank you. Then please show me an example of how I can make a separate inline css for light and dark modes.
    #311987
    Diana
    Participant
    Edit your unit in the backend and in the component add the CSS as you did before due to which it is showing in green color But the CSS will remain the same for both light and dark mode because the code is written in the core and the custom CSS will not change the styling
    #314270
    shynkaryk
    Participant
    Thank you. How can I set different colors of element for light and dark mode?
    #314519
    Diana
    Participant
    Sir, I can help you with setting up css but that will remain same for light as well as dark mode because even if i provide inline css for both the modes to show different colors it will not reflect any changes because the css is decided and fetched from the code Are you okay with that? so we can proceed
    #314538
    shynkaryk
    Participant
    Thank you for your willingness to help. But the option you offer is not what I need. I can use inline css, but in this case I have the same color in light mode and in dark mode. But I only need to change the color for dark mode. You somehow define in WPLMS different colors of elements for light and dark modes... How you do it? Can I apply this to certain new items? Thank you.
    #314872
    Diana
    Participant
    Please ping me tomorrow once by posting here so I will contact developer and ask him if we can do something or not
    #315037
    shynkaryk
    Participant
    I am pinging :) Thank You!
Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘Custom css for light/dark mode’ is closed to new replies.