jitendravyas / Q-A

7 stars 0 forks source link

Isn't using inline css is more convenient than atomic css and we get all the benefit of atomic too? #8

Open jitendravyas opened 6 years ago

jitendravyas commented 6 years ago

ACSS

<div class="D(f) W(20%) C(#666)">
    Preview
</div>

Inline Styles

<div class="segment-box" style="display:flex; width:20%; color: #666;">
    Preview
</div>

<style>
.segment-box {background-color:#ccc}
</style>

No tooling required. No need to learn new naming convention. For things like pseudo-classes or pseudo-elements a class can be used.

VinSpee commented 6 years ago

There are several reasons.