The Sass and CSS logos
Anticipated deliverable(s)
By the end of today’s class, you should have:
- a stylesheet (
.scss
file) for customizing your website’s appearance
Pre-class Prep
Please be sure to complete the following before class:
Build your color palette
One of the most exciting parts of building a website is deciding on which colors you’ll use. This can take some time and tweaking, so it’s helpful to think a bit about your palette beforehand. We’ll consider updating colors for the following website elements:
- Navigation Bar: navbar background color, foreground (text) color, hover highlight color
- Main Body: body background color, body text color, hyperlink color, in-line code color, inline-code background color
- Page Footer: footer background color
We’ll be using a language called Sass to create variables for each of the colors we plan to use throughout our websites (more on that soon!). For a smooth in-class experience, it will be helpful for you to draft up your color variables ahead of time and save them to a place where you can easily copy them from (e.g. a Google Doc is totally sufficient).
Define your color variables using the syntax, $variable-name: value;
, where you decide on your variable-name
, and value
is a HEX color code (htmlcolorcodes.com is my favorite site for grabbing HEX codes).
For example, here are the color variables I’ll use for my website during the workshop:
$dark-green: #858E79;
$light-green: #D1D9CE;
$cream: #FDFBF7;
$gray: #64605f;
$purple: #9158A2;
$orange: #ad7237;
Select your typefaces / fonts
Your typeface and font choices are just as important as your color choices! First, a few important definitions:
- typeface (aka font family): the underlying visual design (e.g. Times New Roman, Helvetica, Roboto)
- font: an implementation / variation of a typeface (e.g. bold, italic)
We’ll be importing and applying font families from Google Fonts. Explore the vast selection, and have the names of 1-2 font families ready to go for class.
Lecture Materials
The code examples that we’ll walk through as a class (along with lots of other info), can be found in these slides:
What should I continue working on?
- Try different color combos and / or fonts. This is arguably the most fun part of building your website and where you can really let your personality and brand shine through. It can take a while to settle on something that you feel really represents you, and that’s okay (I’ve also changed my entire color scheme and font styles multiple times over the years).
- Consider writing / borrowing / adapting CSS rules to refine your website styling. You can take your website styling far just by defining Quarto’s Sass variables. However, if you’re looking to fine-tune the appearance of certain web page elements, you may consider turning to more CSS. Review the workshop slides for suggested approaches and tools for guiding your CSS-writing journeys.