3 ms·
> Whether you style in stylesheets or by some other means (CSS-in-JS?) We're specifically talking here about putting styling logic - "left" "shiny" "big" etc -
by nailer 10y ago
> Whether you style in stylesheets or by some other means (CSS-in-JS?)
We're specifically talking here about putting styling logic - "left" "shiny" "big" etc - in HTML.
> is an implementation choice rather than something that affects the fundamental pattern.
Sure, you can still use a component pattern with styling split into HTML and stylesheets - it certainly doesn't effect the pattern.
The issue is: when you want to change the appearance of your component, do you want to modify styling logic in two places or one?
- andrewingram 10y agoOne, that's why I style inline :)
- nailer 10y agoDo you mean inline in CSS / style tags, avoiding visual HTML classes (in which case we're in agreement - there's one way to edit how something looks, though style tags have other issues) or combining either of those with visual HTML classes like this library uses?
- andrewingram 10y agoOkay, I think we're in agreement and are just crossing wires a but. The main reason i'm loosely okay with Semantic UI is that I just see it as using HTML fragments as building blocks rather than using JavaScript components. I wouldn't advocate it for anything elaborate, but I think it can work well within a certain problem space.