Getting Started with CSS, v2

Jen Kramer
AnnieCannons
3 hours, 2 minutes CC
Getting Started with CSS, v2

Course Description

Build a modern portfolio with CSS! Learn the foundations of layout and UI design as you explore semantic HTML markup, navigation styles, media queries, and CSS custom properties. Give the portfolio extra polish with light and dark themes. Deploy your portfolio to GitHub Pages and showcase your work to the world!

This course and others like it are available as part of our Frontend Masters video subscription.

Preview
Close

Course Details

Published: June 18, 2025

Rating

4.6

Learn Straight from the Experts Who Shape the Modern Web

Your Path to Senior Developer and Beyond
  • 200+ In-depth courses
  • 18 Learning Paths
  • Industry Leading Experts
  • Live Interactive Workshops

Table of Contents

Introduction

Section Duration: 14 minutes
  • Introduction
    Jen Kramer introduces the course, which includes building a single-page portfolio website using HTML and CSS. You'll learn to create sections of the page using CodePen, transition to VS Code for editing, and publish your site online via GitHub.
  • Writing Portfolio Content
    Jen discusses developing effective portfolio materials to stand out in job applications. She provides guidance on creating portfolio artifacts that align with career goals, including project titles, screenshots, problem-solving narratives, and code samples.

Portfolio About Me Section

Section Duration: 57 minutes

Portfolio Footer & Projects

Section Duration: 45 minutes

Adding a Light/Dark Theme Switcher

Section Duration: 35 minutes
  • Supporting Light & Dark Color Schemes
    Jen demonstrates how to implement light-dark mode using CSS using your operating system's settings to automatically adjust the webpage's appearance based on the user's system preferences. By setting the color scheme to light or dark in CSS, users on Mac or Windows can experience the color scheme change without manual toggling.
  • light-dark() CSS Function
    Jen demonstrates how to create CSS variables with light and dark options for colors using the light-dark function. This approach enhances accessibility by adjusting colors for better contrast based on the selected mode.
  • Adding a Theme Switcher
    Jen explains how to create a color scheme switcher using CSS without JavaScript using the checked pseudo-class with radio buttons. She demonstrates adding radio buttons in HTML, styling them with CSS, and using the has selector to change the color scheme based on the checked state of the radio buttons.
  • Styling Radio Buttons as a Switch
    Jen walks through how to style two radio buttons into a switch using CSS, inspired by Scott O'Hara's method. She demonstrates the HTML and CSS adjustments needed to achieve the switch effect, ensuring accessibility and browser compatibility.

Deploying Portfolio to GitHub Pages

Section Duration: 28 minutes
  • Setting Up a Local Project
    Jen demonstrates how to move the previously created webpage from CodePen to files in Visual Studio Code. This includes setting up folders for images and CSS, creating an index.html file, copying over HTML and CSS code, linking files, and managing images locally.
  • GitHub Pages Overview
    Jen walks through how to use GitHub and GitHub Pages to take the website live. She also covers setting up a GitHub account, creating a repository, and configuring GitHub Desktop.
  • Deploying to GitHub Pages
    Jen demonstrates how to set up a GitHub repository for hosting your portfolio website using GitHub Pages. The walk through includes signing up for GitHub, creating a repository with a specific name format, setting up GitHub Desktop, adding files to the repository, and publishing the branch.

Wrapping Up

Section Duration: 1 minute

Learn Straight from the Experts Who Shape the Modern Web

  • In-depth Courses
  • Industry Leading Experts
  • Learning Paths
  • Live Interactive Workshops
Start a 5-Day Free Trial