Hi. First of all if my English is not very good. I found it useful to share this little snippet from LESS for those who have the FoF Night Mode extension and want to be able to make changes depending on the chosen theme. For example, if you want to set the font darker only for white mode, or if you want to set white letters in dark mode.
The code is very simple:
/* Apply css changes according to active mode */
:root {
& when (@config-dark-mode = true) {
/* Your modifications for night mode */
}
& when (@config-dark-mode = false) {
/* Your modifications for white mode */
}
I'm sure there is a more elegant and better way to do it, but this works for me with no problems.