JSFiddle - React, Tailwind, and code Playground

by culaido

HTML

<div class='c1'>I'm c1</div>

<div class='c2'><div class='c1'>Inside c2</div></div>

<div id='id1' class='c2'><div class='c1'>Inside id1</div></div>

CSS

.c1		{color:#f00; ...}
.c2 .c1	{color:#0f0;}
#id1 .c1{color:#00f;}