JSFiddle - React, Tailwind, and code Playground

by charlescarver

HTML

<label for="blue_theme">Blue</label>
<input type="checkbox" id="blue_theme"/>
<div id="container"></div>

CSS

.blue_theme{
    background-color:blue;
    width:200px;
    height:200px;
}

JavaScript

$("#blue_theme").click(function() {
    $("#container").attr('class', 'blue_theme');
})