Thursday 31 January 2019

Dev Shortie: A Better Process for Styling Websites


One thing I’ve noticed a lot lately with websites is that no matter how it looks, the style sheet is full of redundant, duplicate, or unnecessary styles. A lot of that, I imagine, comes from updates after a website goes live, where engineers that weren’t initially involved in its development are coming in blind. Another part of that might revolve around planning or distribution of tasks for a website’s construction. Truth be told, there are probably dozens of reasons that the styles may not be as organized or clean as they could be. We can’t see the future and we can’t always be in constant communication with one another, but I’ve learned a thing or two over the last decade that I think might help keep things clean, organized, reusable, and readable.
Before We Start
A few setup notes here: I write my styles with SCSS. This is my preference. There are many other options out there—Less or Sass to name a couple—which will work in more or less the same way. I also typically use webpack or Gulp on older projects to compile and minify, auto-prefix, and concatenate my style sheets.
Organization and Breakdown
The organization is really up to the
Source: https://managewp.org/articles/18349/dev-shortie-a-better-process-for-styling-websites



source https://williechiu40.wordpress.com/2019/01/31/dev-shortie-a-better-process-for-styling-websites/

No comments:

Post a Comment