DEV Community

loading...

Discussion on: Custom Elements Everywhere for Page Layout, Parts I and II

Collapse
djwebdroid profile image
DJWebdroid

Yes, great article. Question, you apply classes to the custom elements, could you not use the custom element directly in your css? Or is there something I am missing? Thanks you.

Collapse
jaredcwhite profile image
Jared White Author

In a "greenfield" project, sure, I could write custom-element-name { color: green } and so forth…but in a project with a traditional CSS framework (Bulma for example), you still need to use classes in your HTML to pick up the framework styles you want.