Udemy

Clean and Scalable CSS Architecture (2023)

立即報名
  • 154 名學生
  • 更新於 1/2023
4.7
(39 個評分)
CTgoodjobs 嚴選優質課程,為職場人士提升競爭力。透過本站連結購買Udemy課程,本站將獲得推廣佣金,有助未來提供更多實用進修課程資訊給讀者。

課程資料

報名日期
全年招生
課程級別
學習模式
修業期
1 小時 19 分鐘
教學語言
英語
授課導師
Vislavski Miroslav
評分
4.7
(39 個評分)
3次瀏覽

課程簡介

Clean and Scalable CSS Architecture (2023)

Write Clean CSS code, create modular CSS and scalable CSS. OOP principles, SOLID, OOCSS, BEM will improve your CSS code.

CSS is easy, it’s easy to learn, it’s easy to write.

But actually, it’s hard to write scalable and maintainable code especially with large projects that require constant scaling…

There are many reasons why this is the case:

- In CSS everything is in a global scope. Any change in one file can cause an (un)expected result in another element, or page.

- CSS is a highly mutable language, because of it's cascade nature. Each mutation leads to confusion and unexpected results.

- CSS highly depends on the source order.

- On the other hand, specificity can undo everything. It doesn't matter how you structure your code, specificity can break everything. Specificity is one of the biggest problems of CSS.

- CSS is not (easily) scalable


We end up in a cycle of writing more CSS just to fix the old CSS! At some point our whole CSS code becomes too messy and too large. We need a better approach, we need a modular and predictable CSS. CSS language has not evolved since 1998. There are preprocessors, but they are not solving the main CSS issues. After all, SASS and Less are compiling to CSS.


In this course, we will talk about the CSS architecture, and how to write clean and maintainable code. Our goal is to write CSS that should be:

- Predictable: CSS rules behave as we expect them to.

- Reusable: When adding new components, we shouldn't need to recode patterns or problems we've already solved.

- Maintainable: New features, components, or updates shouldn't require refactoring our CSS and should NOT break existing components.


The idea is taking the OO philosophy you already learned in Java, PHP, C# and finding a way to translate that into CSS as well. All that you learned in OOP languages, all the DRY principles, SOLID, SRP, immutability we can apply to CSS in some way. Simple is the best.

There are many advanced courses about CSS, about flexbox, CSS animations, CSS grid… However, in this course, we will be focusing on the architecture of CSS. If you are interested in learning how to write clean and scalable CSS code, this course is the right thing for you!

This is a course I wish I had when I started working on more complex projects.

課程章節

  • 6 個章節
  • 30 堂課
  • 第 1 章 Introduction
  • 第 2 章 OOP Principles in CSS
  • 第 3 章 OOCSS
  • 第 4 章 BEM
  • 第 5 章 Overmodulize
  • 第 6 章 The missing piece - ITCSS

課程內容

  • Understand common CSS issues
  • How to write clean CSS code
  • How to implement Object Oriented principles in CSS (SOLID, DRY, immutability...)
  • What is a good and a bad Specificity graph
  • Understand the concepts of OOCSS and how it can help you improve the code
  • Understand the concepts of BEM
  • How to manage Specificity graph with Inverted Triangle

評價

  • S
    Sanat Sahu
    5.0

    very informative

  • K
    Klets Maksym
    5.0

    I like this course!

  • E
    Esdras Alcantara
    4.0

    good so far!

  • E
    Elvira Paulin
    4.5

    Good, concise introduction to css architecture.

立即關注瀏覽更多

本網站使用Cookies來改善您的瀏覽體驗,請確定您同意及接受我們的私隱政策使用條款才繼續瀏覽。

我已閱讀及同意