I see a focus on javascript frameworks, to write css directly in javascript, example ...
new Vue({
el : "#style",
data : {
ctn : {
display: "flex",
alignItems: "center",
justifyContent: "center",
flexDirection: "column",
height: "100vh",
},
header : {
fontSize: "20pt",
color: "blue",
},
article : {
fontSize: "13pt",
color: "green",
}
}
})
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script><divid="style" :style="ctn">
<header :style="header">Hello world!</header>
<article :style="article">StackOverflow</article>
</div>
This makes it much easier because it allows the use of variables and functions, but for an extended project, would this practice imply any problems?
Edit
I recently found this article Peace in css (Medium)
And I realized that this debate is happening vehemently on the internet (As always Brazil is not much inside.)