A simple API to switch the themes on certain conditions.