Unit 2: Cascade Control, Architecture, and Tooling
This unit gives you deliberate control over the cascade and introduces the file architecture patterns you will follow for the rest of the course. You will learn how @layer and @import let you organize specificity without hacks, explore modern selectors that reduce the need for extra classes, survey popular architecture philosophies, and then wire up a real build tool to bundle and optimize your stylesheets.
Part A: Layers, Specificity, and Selector Power
Learn
-
Cascade Layers
Understand how@layerand@importgive you explicit control over specificity order without resorting to!importantor selector inflation. -
Modern Selectors
Master:is(),:where(),:has(),:focus-visible, and feature queries so you can write leaner, more expressive rulesets. -
CSS Architecture Philosophies
Survey CUBE, ITCSS, SMACSS, and BEM, then see how the course standard draws from each to create a practical file and naming convention.
Choose Topics
Choose Topics are a team activity. Your team divides the topics among its members so each person covers one. Smaller teams do not need to cover every topic, and larger teams should only double up when the list is shorter than the team. Work through your topic's learn page and record a short Teaching Video that teaches your teammates what you learned:
For your chosen topic, you are expected to create your own demo. You are welcome to include our demos in your video as well, but they should accompany your work, not stand in for it. Only rely on our demos as your sole demonstration if the page explicitly says so.
-
@scope
Explore scoped styling boundaries that limit where rules apply without relying on shadow DOM or deep nesting. -
Attribute Selectors
Use substring, case-insensitive, and combined attribute selectors to target elements by their data and state. -
Marker, Backdrop, and Selection
Style list markers, fullscreen backdrops, and user text selections with purpose-built pseudo-elements. -
Filtered :nth-child()
Combine:nth-child()with selector filters to target complex patterns without extra markup. -
Bootstrap Awareness
Understand how Bootstrap organizes its grid, utilities, and components so you can read and maintain projects that use it. -
Tailwind Awareness
Learn the utility-first philosophy behind Tailwind, how its classes map to CSS properties, and when this approach makes sense.
Assignments
-
Layered Components
Build a small component set organized with@layerto demonstrate deliberate cascade control. -
Teaching Video Report
Complete your chosen topic report, download the PDF, and submit it to Canvas.
Part B: Architecture, Bundling, and First Design Review
Learn
-
CSS Architecture
Align your file structure with the course token system so every stylesheet has a clear role and predictable load order. -
Build Tooling
Compare two popular CSS bundlers, understand what each one automates, and choose the right tool for your workflow.
Choose Topics
Choose Topics are a team activity. Your team divides the topics among its members so each person covers one. Smaller teams do not need to cover every topic, and larger teams should only double up when the list is shorter than the team. Work through your topic's learn page and record a short Teaching Video that teaches your teammates what you learned:
For your chosen topic, you are expected to create your own demo. You are welcome to include our demos in your video as well, but they should accompany your work, not stand in for it. Only rely on our demos as your sole demonstration if the page explicitly says so.
-
PostCSS Setup and Plugins
Install PostCSS, configure a plugin pipeline, and see how transforms like autoprefixer and nesting work in practice. -
Lightning CSS Setup
Set up Lightning CSS as a fast, zero-config alternative that handles nesting, vendor prefixes, and minification in one pass. -
@custom-media
Define reusable media query conditions so your breakpoints stay consistent and easy to update across an entire project. -
::part()and::slotted()
Style shadow DOM internals from the outside using the two pseudo-elements designed for web component theming.
Assignments
-
Architecture and Build (Bundled CSS and Reorganized Files)
Reorganize your portfolio stylesheets into the course architecture and run them through your chosen build tool. -
Teaching Video Report
Complete your chosen topic report, download the PDF, and submit it to Canvas. -
Design Review: Architecture and Tokens
Present your file structure, layers, tokens, and nesting for peer and instructor feedback.