See more.<\/a><\/p>\nFinal Output Is On You<\/h3>\n
Sass doesn’t do anything you don’t tell it to do, so claiming that Sass output is bloated is just claiming that you write bloated code. Write Sass such that the final CSS output is just as you would have written it without Sass.<\/p>\n","protected":false},"excerpt":{"rendered":"
With more people than ever writing in Sass, it bears some consideration how we format it. CSS style guides are common, so perhaps we can extend those to cover choices unique to Sass. Here are some ideas that I’ve been gravitating toward. Perhaps they are useful to you or help you formulate ideas of your […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[4],"tags":[476,683],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":340343,"url":"https:\/\/css-tricks.com\/creating-stylesheet-feature-flags-with-sass-default\/","url_meta":{"origin":21773,"position":0},"title":"Creating Stylesheet Feature Flags With Sass !default","date":"May 14, 2021","format":false,"excerpt":"!default is a Sass flag that indicates conditional assignment to a variable\u2009\u2014\u2009it assigns a value only if the variable was previously undefined or null. Consider this code snippet: $variable: 'test' !default; To the Sass compiler, this line says: Assign $variable to value 'test', but only if $variable is not already\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2021\/05\/sass-default.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":305435,"url":"https:\/\/css-tricks.com\/getting-javascript-to-talk-to-css-and-sass\/","url_meta":{"origin":21773,"position":1},"title":"Getting JavaScript to Talk to CSS and Sass","date":"April 3, 2020","format":false,"excerpt":"JavaScript and CSS have lived beside one another for upwards of 20 years. And yet it\u2019s been remarkably tough to share data between them. There have been large attempts, sure. But, I have something simple and intuitive in mind \u2014 something not involving a structural change, but rather putting CSS\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/03\/css-sass-js.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":312530,"url":"https:\/\/css-tricks.com\/making-my-netlify-build-run-sass\/","url_meta":{"origin":21773,"position":2},"title":"Making My Netlify Build Run Sass","date":"June 9, 2020","format":false,"excerpt":"Let's say you wanted to build a site with Eleventy as the generator. Popular choice these days! Eleventy doesn't have some particularly blessed way of preprocessing your CSS, if that's something you want to do. There are a variety of ways to do it and perhaps that freedom is part\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/06\/netlify-build-plugins-sass.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":346355,"url":"https:\/\/css-tricks.com\/css-nesting-specificity-and-you\/","url_meta":{"origin":21773,"position":3},"title":"CSS Nesting, specificity, and you","date":"August 10, 2021","format":false,"excerpt":"Here\u2019s Kilian Valkhof on CSS nesting which isn't available in browsers yet, but will be soon. There are a few differences he notes between CSS nesting and nesting in Sass or Less though. Take, for example, the following code: div { background: #fff; & p { color: red; } border:\u2026","rel":"","context":"In "Link"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2021\/08\/css-nesting.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":150909,"url":"https:\/\/css-tricks.com\/visual-guide-sass-compass-color-functions\/","url_meta":{"origin":21773,"position":4},"title":"A Visual Guide to Sass & Compass Color Functions","date":"September 22, 2013","format":false,"excerpt":"Fun visual demos by Jackie Balzer. I didn't know about a few, like transparentize. It seems to work the same as rgba, but I like the word transparentize better. I also didn't know Compass adds a few of its own, like shade, which adds black and is different than Sass's\u2026","rel":"","context":"In "Link"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":361320,"url":"https:\/\/css-tricks.com\/what-the-heck-are-npm-commands\/","url_meta":{"origin":21773,"position":5},"title":"What the Heck Are npm Commands?","date":"January 20, 2022","format":false,"excerpt":"npm is, as you now know, a package manager. But like similar, earlier tools that run tasks in the command line, such as Grunt and Gulp, npm can also run tasks\u2014which is perfect for us because now that we installed the Sass package in the previous chapter, we can starting\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/01\/s_AF038BF04094A70509D67F40885F11F49B56FA082F53552BB58B184DA068C273_1638416625430_01-43-wvtkv-5cnvv.png?fit=1200%2C883&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"featured_media_src_url":null,"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/21773"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=21773"}],"version-history":[{"count":16,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/21773\/revisions"}],"predecessor-version":[{"id":198067,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/21773\/revisions\/198067"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=21773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/categories?post=21773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=21773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}