- 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!
推薦閱讀
- Java程序設(shè)計(jì)與開發(fā)
- Spring Cloud Alibaba核心技術(shù)與實(shí)戰(zhàn)案例
- Objective-C應(yīng)用開發(fā)全程實(shí)錄
- Microsoft Application Virtualization Cookbook
- SQL Server 2012數(shù)據(jù)庫技術(shù)及應(yīng)用(微課版·第5版)
- Hands-On Data Structures and Algorithms with JavaScript
- 劍指Java:核心原理與應(yīng)用實(shí)踐
- jQuery Mobile移動(dòng)應(yīng)用開發(fā)實(shí)戰(zhàn)(第3版)
- C#程序設(shè)計(jì)基礎(chǔ)入門教程
- Python預(yù)測分析與機(jī)器學(xué)習(xí)
- Visual Basic程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)及考試指南
- JavaEE架構(gòu)與程序設(shè)計(jì)
- 計(jì)算機(jī)程序的構(gòu)造和解釋(JavaScript版)
- Swift iOS Programming for Kids
- 軟件工程實(shí)用教程 (第3版)