2017年10月22日 星期日

SASS 做 theme 的起手式

不錯的文章

* 最外層的 container 控制 theme 基本元素
* 加上 themable 的 mixin 並設參數讓 theme 更彈性
* 用 each 方法 loop 參數,讓 themable 更彈性,只需要接受 name 和 map 兩個參數
* lighten & darken 方法做到 hover 效果


https://www.toptal.com/sass/theming-scss-tutorial

沒有留言:

張貼留言