Why Developers Should Be More SASS-y

by

• Article
3–4 minutes

read

Jessica Bell, one of our more SASS-y front end devs, showcased the awesome power of SASS at the inaugural Women in Tech Summit in Washington DC. In her session, she taught women technologists from all over the DC Metro Area all about what SASS is, and how it makes your life better as a front end developer.

REQ WIT Summit 2016

Our development team here at REQ is pretty SASSy. SASS, or Syntactically Awesome Style Sheets, is a CSS pre-processor and a front end developer’s best friend. In layman’s terms, SASS allows front end developers to use programmatic functionality in their css as well as wonderful tools such as variables, nested css classes, and smaller, module style sheets for better organization of your styles!

SASS Overview

There are three main things to learn first to understand and use SASS: the folder structure, usage, and functionality.

Folder Structure

One of the awesome parts of SASS is the organizational aspect of breaking down your styles into smaller chunks. For a front end developer, this means instead of searching through a multi hundred or thousand line CSS file, they can name their SASS files to describe the section of the site that file’s style applies to.  For example, a dev could have a header.scss file, and knows that all the styles for their site’s header is housed in that file. Here is an example of SASS file structure:

  • Partials

    • Base (this is where the functionality comes in!!)

      • Vendor

      • Mixins

      • Variables

      • Extendables

    • Components

      • Smaller style sheets focused on sections of your site

    • Global

      • Styles that will be applied globally to the site

      • Typography

      • Form styles

Usage

SASS is a CSS pre-processor. That means that before the CSS (styles) are available for use, they must be processed in some form. All the .scss files that live in your SASS folders need to be compiled and turned back into flat CSS and spit out as one HUGE CSS file to be included in your site. This is commonly done two ways: through a command line command (sass input.scss output.css) or through a task manager such as Grunt or Gulp. When a ‘SASS’ task or command is run, the program finds all files labeled .scss, rewrites them to be normal CSS and spits them out as a stylesheet.css file which your developers insert into their HTML.

Functionality

This is where SASS gets FUN! The Base folder in your SASS files contains 3 files full of awesome functionality: mixins.scss, variables.scss, and extendables.scss.  


Variables allow a developer to store a piece of data in a named expression to be reused all over their stylesheets, then, if that piece of data changes, they only need to change the value of what is stored in the variable rather than EVERYWHERE that variable is used.  

-

Here we are using our variable of blue to set the background color. If we want that blue just a shade lighter all over the site – all we have to do is change the stored HEX code in our variable rather than every place in our code where we have set the background color to blue.

-

Extendables are reusable chunks of code. For example if I want to have a button on my site, I know I will have the following code:

-

Instead of writing this code over and over again, we can create an extendable and add it to any class we want that chunk of code to apply to.

-

Mixins are dynamically generated chunks of code. Different to Extendables, which are static bits of CSS, Mixins allow developers to pass through a value and dynamically generate our CSS using that value.

And there you have it, a brief intro to SASS! Devs, if you are interested in learning more, check out my presentation for the Women in Tech Summit. Also sign up for REQ’s events to learn more about front end development, digital marketing, and agency life!

How Phone.com’s Amber Newman Turned Paid Search Into a Precision Marketing Engine

How Phone.com’s Amber Newman Turned Paid Search Into a Precision Marketing Engine

Phone.com offers customers a straightforward alternative to complex and costly VoIP systems. It allows them to set up custom business numbers and manage calls, texts, and videos directly from their personal phones, keeping work and personal communications separate. Amber Newman, Phone.com’s director of marketing, has built a strategy that reflects her company’s simple but powerful…

How Patrick Bradshaw Is Bringing Marketing Into the Deal

How Patrick Bradshaw Is Bringing Marketing Into the Deal

Sales enablement has traditionally focused on preparing reps with content, training, and playbooks before a deal begins. Patrick Bradshaw, Sr. Director of Acquisition and Growth Marketing at Highspot, says that the model is evolving as AI and better data make it possible to support teams up to the end of the sales process. We caught…

The CMO Who Gave Up Sales Pitches to Build Real Relationships

The CMO Who Gave Up Sales Pitches to Build Real Relationships

Chatting with Nathan Burke of 7AI on why relationship-building outperforms traditional B2B marketing Nathan Burke is intentionally doing less of what most B2B marketers are taught to do. As CMO of 7AI, he’s opting out of the usual B2B playbook, the awkward steak dinners with a pitch attached, the conference badge scanning arms race, and…

How UVEye’s Unicorn Drives Trade Show Excitement

How UVEye’s Unicorn Drives Trade Show Excitement

Trade shows are crowded. Competitive. Expensive. Every booth promises innovation. Every brand is trying to stand out to the sea of overwhelmed and tired attendees. For AI-driven vehicle inspection company UVEye, standing out meant not just thinking creatively. It meant creating a unicorn. UVEye calls its technology an “MRI for cars.” It provides AI-driven technology that…

How WalkMe’s Melanie Pasch Humanized the Enterprise AI Adoption Problem with “AI Shame”

How WalkMe’s Melanie Pasch Humanized the Enterprise AI Adoption Problem with “AI Shame”

Ask an executive how many software applications their company uses, and they’ll probably guess 30 or 40. The average organization, according to research by digital adoption platform (DAP) pioneer WalkMe, actually runs about 625 applications. This staggering digital ecosystem is where most tech investments stall, not because the technology is poor, but because employees can’t…

From $200M ARR to Pre-Seed: How Karina Lawrence Rewrites the Marketing Playbook for Early-Stage Startups

From $200M ARR to Pre-Seed: How Karina Lawrence Rewrites the Marketing Playbook for Early-Stage Startups

When you’ve helped scale a developer-focused company from roughly $200M to nearly $250M in ARR, you know what “grown-up” marketing looks like. Today, though, Karina Lawrence is back at the very beginning—leading marketing at Macrovo, a pre-seed, ~10-person startup that blends AI and human expertise to help financial institutions make faster, smarter decisions. It’s a…

B2B Videos You Actually Want to Watch? Meet Jared Evers of Medallia.

B2B Videos You Actually Want to Watch? Meet Jared Evers of Medallia.

For Jared Evers and his small and scrappy content team at Medallia – provider of customer and experience software – if you can’t do something stellar, there’s no sense in doing it at all. For proof, check out how the team is pushing the boundaries of corporate videos with Experience Now, Medallia’s own streaming platform.…

Verisys’ Brian Krenzer on Why Doing Less is the Smartest Q4 Move

Verisys’ Brian Krenzer on Why Doing Less is the Smartest Q4 Move

When Verisys, a healthcare data company focused on compliance and credentialing, set out to close the gap between what’s promised and what’s delivered, marketing became a central force in making that happen. Under the leadership of VP of Marketing Brian Krenzer, the team reoriented around what matters most: delivering a five-star customer experience at every…

How Workable’s Kathleen Schurman Uses Authenticity and AI to Elevate HR Marketing

How Workable’s Kathleen Schurman Uses Authenticity and AI to Elevate HR Marketing

In an age where automation dominates marketing headlines, Kathleen Schurman, Marketing Director at Workable, is proving that authenticity and storytelling still come first. Her team’s success lies in staying true to Workable’s roots—user-friendly software for hiring teams of all sizes—while adopting AI tools that amplify creativity and efficiency. We spoke with Kathleen about moving upmarket,…

How HII’s Jaime Orlando Builds Connection, Culture, and Momentum Inside a Legacy Brand

How HII’s Jaime Orlando Builds Connection, Culture, and Momentum Inside a Legacy Brand

Q: Jaime, for those who might not know HII Mission Technologies, can you give us a quick overview of what your team does? Jaime Orlando Absolutely. HII as a company has an incredible legacy. It’s America’s largest shipbuilder, with more than 135 years of experience. About 75% of HII’s business comes from shipbuilding at our…

CONTACT US
CONTACT US

WE HELP BRANDS OWN WHAT’S NEXT

Our integrated PR and digital campaigns build reputations, drive growth, and shape conversations that define markets. Let’s talk about how we can help you do the same.