I understand that you can use withMediaQuery to write custom media queries. But what I’m trying to accomplish here is actually the class strategy as described here. This would allow you to toggle dark mode on and off, which translates to css that looks like this:
.class-name {
color : rgb(0 0 0);
}
.dark .class-name {
color : rbg(255 255 255);
}