![]() Personally, I have used CodeKit for years (and love it – but it’s for Mac only) – so if you’re needing something for other operating systems, you could consider an app like Koala – and check out the LESS or SASS documentation for other suggestions. You could use a command line utility, a build tool like Webpack or Laravel Mix, or get yourself an app to help manage your projects and configurations. The trick, though, is that you need to use an additional tool to process your source code. When your source is processed, all of these components are put in to play to help generate final browser-ready CSS code. Depending on the flavor you pick, you will have a slightly different syntax to follow, but all of these allow you to create and reuse variables, write callable functions, as well as nest your CSS. LESS, SASS and SCSS are examples of CSS preprocessors. CSS preprocessors (such as LESS, SASS and SCSS) Having that responsibility on my shoulders isn’t the kind of weightlifting I like to do, especially when there are tools that can help, such as CSS preprocessors. While cross-browser support is getting better (and thankfully those IE6 days are long gone), vendor prefixing is still needed at times. The big compromise, though, is that you need to be responsible for every single line of code – including every vendor prefix for specific definitions – for optimal browser support. But we never change files on a production server directly, right? You can quickly change a file, refresh your browser, and see the changes – even on your production server. The biggest advantage of writing vanilla CSS is that no additional software is needed. ![]() This will contain the instructions for the web browser on how to style and present your content – from colors and sizes through to layout and even mobile responsiveness. Whether you like writing vanilla CSS in a text editor, or using a preprocessor or framework to help you on your way, the end result for your web site will be a CSS file. The difference is just how these new tools help me as a developer be more efficient at producing that final code. And yet the bottom line remains, in every new tool I’ve seen: the result is just a plain vanilla CSS file. Like most developers, I started with writing vanilla CSS, then moved on to LESS, then SCSS, then Bulma, and right now, Tailwind CSS – and every shift has delivered efficiency and so much developer happiness. ![]() Over the years, my workflow and approach to CSS has changed too. When the visual elements of your brand change, all you need to do is change your CSS file, and all of your existing content can look just as incredible without having to edit each piece of content individually. As your content base grows, your company’s brand may too evolve. CSS gives developers the ability to separate content from presentation. Splendid!Īnd now 20-something years later, the same is still true. ![]() ![]() If I needed to change my heading style, I could change my CSS file, and all of my headings would update. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |