I have <body class="dark">
and <body class="light">
I'm trying to edit css colors based on body class
. Is there a better approach than this:
body.light .card {
color: #292b2c;
background-color: #CCC;
}
body.dark .card {
color: #f7f7f7;
background-color: #444;
}
body.light .jumbotron {
color: #292b2c;
background-color: #CCC;
}
body.dark .jumbotron {
color: #f7f7f7;
background-color: #444;
}