so I am working on this project and I am using next js (react) and a certain css package that is really helpful and it has two themes Dark mode and Light mode. but they are both in separate css files meaning that if I want to use the light mode I have to import it this way :
import '-packagename/light-something.css'
and for Dark mode:
import '-packagename/dark-something.css'
my question here is if there a possibility to have a certain button event to dynamically change from dark to light mode, like a theme button.