Skip to main content
CSS-Tricks
  • Articles
  • Alamanac
  • Guides
  • Videos
  • Books
  • Newsletter
Search

Articles Tagged
Sass

45 Articles
{
,

}
Direct link to the article A Handy Sass-Powered Tool for Making Balanced Color Palettes
color Sass

A Handy Sass-Powered Tool for Making Balanced Color Palettes

For those who may not come from a design background, selecting a color palette is often based on personal preferences. Choosing colors might be done with an online color tool, sampling from an image, “borrowing” from favorite brands, or just …

Avatar of Stephanie Eckles
Stephanie Eckles on Dec 9, 2019
Direct link to the article Introducing Sass Modules
modules Sass

Introducing Sass Modules

Sass just launched a major new feature you might recognize from other languages: a module system. This is a big step forward for @import. one of the most-used Sass-features. While the current @import rule allows you to pull …

Avatar of Miriam Suzanne
Miriam Suzanne on Oct 7, 2019 (Updated on Oct 14, 2019)
Direct link to the article A Proof of Concept for Making Sass Faster
Sass

A Proof of Concept for Making Sass Faster

At the start of a new project, Sass compilation happens in the blink of an eye. This feels great, especially when it’s paired with Browsersync, which reloads the stylesheet for us in the browser. But, as the amount of Sass …

Avatar of Sebastian Webb
Sebastian Webb on Sep 17, 2019 (Updated on Oct 9, 2019)
Direct link to the article Creating a Maintainable Icon System with Sass
background-image icons Sass sass maps svg icons

Creating a Maintainable Icon System with Sass

One of my favorite ways of adding icons to a site is by including them as data URL background images to pseudo-elements (e.g. ::after) in my CSS. This technique offers several advantages:

  • They don’t require any additional HTTP requests
…
Avatar of Tracy Rotton
Tracy Rotton on Aug 28, 2019 (Updated on Aug 3, 2021)
Direct link to the article Staggered CSS Transitions
hover nth-child Sass transition-delay

Staggered CSS Transitions

Let’s say you wanted to move an element on :hover for a fun visual effect.

@media (hover: hover) {
  .list--item {
    transition: 0.1s;
    transform: translateY(10px);
  }
  .list--item:hover,
  .list--item:focus {
    transform: translateY(0);
  }
}

Cool cool. But what if you had …

Avatar of Chris Coyier
Chris Coyier on Aug 14, 2019
Direct link to the article Do CSS Custom Properties Beat Sass Loops?
custom properties loops Sass

Do CSS Custom Properties Beat Sass Loops?

I reckon that a lot of our uses of Sass maps can be replaced with CSS Custom properties – but hear me out for a sec.

When designing components we often need to use the same structure of a component …

Avatar of Robin Rendle
Robin Rendle on Mar 1, 2019 (Updated on Mar 2, 2019)
Direct link to the article Where Do You Nest Your Sass Breakpoints?
media queries nesting Sass

Where Do You Nest Your Sass Breakpoints?

I love nesting my @media query breakpoints. It’s perhaps the most important feature of Sass to me. Maybe I pick a method and do it like this:

.element {
  display: grid;
  grid-template-columns: 100px 1fr;
  @include breakpoint(baby-bear) {
    display: block;
  }
…
Avatar of Chris Coyier
Chris Coyier on Feb 11, 2019 (Updated on Apr 17, 2020)
Direct link to the article Sass Techniques from the Trenches
Sass

Sass Techniques from the Trenches

Having been in the web development industry for more than 14 years, I’ve seen and written my fair share of good and bad CSS. When I began at Ramsey Solutions five years ago, I was introduced to Sass. It blew …

Avatar of Buddy Reno
Buddy Reno on Jan 8, 2019 (Updated on May 12, 2020)
Direct link to the article Sass Selector Combining
nesting Sass

Sass Selector Combining

Brad Frost was asking about this the other day…

Sass people, which way do you do it and why? pic.twitter.com/dIBA9BIuCO

— Brad Frost (@brad_frost) October 1, 2018

.c-btn {
  &__icon {
      ...
  }
}

I guess that’s technically “nesting” but …

Avatar of Chris Coyier
Chris Coyier on Oct 15, 2018 (Updated on Oct 17, 2018)
Direct link to the article Ruby Sass to be put to pasture on March 26, 2019
Sass

Ruby Sass to be put to pasture on March 26, 2019

There have long been multiple implementations of Sass. Most notably, the canonical Ruby version, now at 3.5.6. Then there is LibSass, the C++ version, which is at version 3.4 and…

Current LibSass 3.4 should be compatible with Sass

…
Avatar of Chris Coyier
Chris Coyier on Apr 3, 2018 (Updated on Apr 4, 2018)
Direct link to the article Using Sass to Control Scope With BEM Naming
Sass

Using Sass to Control Scope With BEM Naming

Controlling scope is something you probably don’t tend to consider when working with CSS and Sass. We have had access to the ampersand (&) for quite some time now, which gives us a level of scope—but it’s easy …

Avatar of Andy Bell
Andy Bell on Feb 28, 2018
  • Newer
  • 1
  • 2
  • 3
  • ...
  • 5
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways hosting
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Write for us!
  • Advertise with us
  • Contact us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • X
Back to Top