Skip to main content
Home

Tagged “css”

Kicking Sass to the curb

Sass has been my go to CSS preprocessor for years, but with a recent CSS feature boom, it’s a good time to revisit whether or not I can lean completely on native CSS for all my Sass.

Read more of Kicking Sass to the curb

The curious case of flexbox gap and Safari

Update at the end The gap property was first introduced to add inner grid spacing but was extended in the spec to work with flexbox. With one line of code, you can replace something like this:

Read more of The curious case of flexbox gap and Safari

Share variables between JavaScript and CSS

Whether you need site breakpoints for matchMedia or access to theme colors, sharing values between your JavaScript and CSS is sometimes unavoidable. The easiest solution is to copy and paste values, but how can you ensure values stay synchronized when that brand blue color changes to indigo?

Read more of Share variables between JavaScript and CSS