- Mastering PostCSS for Web Design
- Alex Libby
- 108字
- 2021-07-14 11:12:23
Transitioning to using PostCSS
Up until now, we've used SASS to build our demo; granted, it's not a particularly complex one, but as I always say, we must start somewhere!
Our demo is a perfect example of how we can introduce PostCSS to provide replacements for the SASS variables and mixins we've used—for this, we will avail ourselves of three plugins, namely postcss-variables
, postcss-mixins
, and postcss-calc
. The first two should be self-explanatory; the third is required in the replacement font mixin that we've used in our code.
Okay, enough chit-chat, let's get stuck in and begin to alter our code; we'll start with adding variable support.
推薦閱讀
- C# 7 and .NET Core Cookbook
- Python數據分析入門與實戰
- Instant Apache Stanbol
- LabVIEW入門與實戰開發100例
- 數據結構習題精解(C語言實現+微課視頻)
- Hands-On JavaScript High Performance
- Active Directory with PowerShell
- IBM Cognos TM1 Developer's Certification guide
- C++ System Programming Cookbook
- Python大規模機器學習
- 數字媒體技術概論
- Node.js 6.x Blueprints
- Kotlin語言實例精解
- Software Architecture with Python
- 用Go語言自制編譯器