JSFiddle - React, Tailwind, and code Playground
HTML
<div id="report">
</div>
<div id="target">
</div>
CSS
#report {
color: cyan;
background: black;
}
#target {
filter: brightness(-20);
}
JavaScript
report.textContent = getComputedStyle(target).filter;