- Mastering PostCSS for Web Design
- Alex Libby
- 152字
- 2021-07-14 11:12:22
Chapter 2. Creating Variables and Mixins
A question: how often have you created components such as buttons, where you've used very similar colors multiple times throughout your code? It's a real pain to manually alter. Using a preprocessor such as SASS or Less makes it easier, but with the overhead of a full-sized library.
Can we do it differently? Absolutely; throughout the next few chapters, we'll explore different elements of PostCSS, before pulling it all together to produce a preprocessor application later in the book. We'll begin our journey with a look at using variables and mixins; we'll explore the basics of creating them first, before transitioning to support using PostCSS. In this chapter, we'll cover the following topics:
- An overview of creating variables and mixins using existing preprocessors
- Transitioning to using PostCSS equivalents
- Adding mixin support to PostCSS
- Examining the differences between standard preprocessors and PostCSS
Let's get cracking!
推薦閱讀
- DBA攻堅指南:左手Oracle,右手MySQL
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- Python Game Programming By Example
- 面向對象程序設計(Java版)
- JavaScript 程序設計案例教程
- Visual Basic程序設計(第三版)
- Java 9 Programming By Example
- Visual C++程序設計與項目實踐
- 寫給青少年的人工智能(Python版·微課視頻版)
- Flask開發Web搜索引擎入門與實戰
- 基于MATLAB的控制系統仿真及應用
- Learning D3.js 5 Mapping(Second Edition)
- 面向對象程序設計教程(C#版)
- Python編程基礎與應用
- NLTK Essentials