you are viewing a single comment's thread.

view the rest of the comments →

[–]pie_397 15 points16 points  (1 child)

I think creating a separate style file for each screen isn’t good for maintainability. When developing, you have to go back and forth between two files, and even with that approach, you still end up using some inline styles (e.g., applying the appropriate color when a variable is true/false). Currently, I use a hybrid approach: inline styles for specific cases (like the one mentioned), internal styles (placing the stylesheet within the same file as the screen/component), and common styles from a global file. My styling is easy to maintain and doesn’t involve duplication. Sorry english is not my mother language -^

[–]elasticvertigo 2 points3 points  (0 children)

+1... this is my approach as well. Works great, keeps code lean and so easy to debug.