4 ms·
You’re going to use CSS anyway because that’s how things are styled Essentially the discussion is around how should you use it - define it as inline attribute
by youngtaff 3y ago
You’re going to use CSS anyway because that’s how things are styled
Essentially the discussion is around how should you use it
- define it as inline attributes on individual elements
- use some thing like Andy Bell’s CUBE approach to define styles for layout and components
With something like Andy’s approach you’ll end up with far less CSS, it’ll adapt to devices and you won’t actually have to write much CSS for new components
- incrudible 3y ago> You’re going to use CSS anyway because that’s how things are styled I am speaking in principle. Im am not even sure if inline styles are correctly referred to as CSS, as there is no cascading and no sheet. Aren’t they just styles? With templates/components, I do not find myself writing a lot of style code at all, plus they remain more composable. The segregation into CSS, despite its inevitable coupling to the structure of the document, has no value to me. I also do not buy the adaptation argument. I can adapt in code just fine, in fact it is necessary because proper adaptation needs more than just styling.