3 ms·
>"<style> :root { --body-color: white; --body-bg-color: black; --color-primary: #09d; } </style>" ....what? Is this even valid CSS?
by aphextron 9y ago
>"<style>
:root {
--body-color: white;
--body-bg-color: black;
--color-primary: #09d;
}
</style>"
....what? Is this even valid CSS?
- tickthokk 9y agoYep! https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_v... https://developer.mozilla.org/en-US/docs/Web/CSS/:root https://developer.mozilla.org/en-US/docs/Web/CSS/:root Unfortunately since IE doesn't use it, most of us won't be able to either, as much as we want to :(