polished

编程之家收集整理的这个编程导航主要介绍了polished编程之家,现在分享给大家,也给大家做个参考。

polished

polished 介绍

在JavaScript中编写样式时,许多人需要Sass风格的帮助函数才能提高工作效率。✨ polished将它们带给您一个漂亮,轻量级的包,为JavaScript中的样式量身定制。

与Sass的主要区别在于它是以功能风格编写的,并且所有颜色功能都是咖喱。这意味着您可以将它们组合成您自己的可重复使用的助手,具有compose您选择的功能:

import { compose } from 'ramda' // Replace with any compose() function of your choice

import { lighten,desaturate } from 'polished'

// Create tone() helper

const tone = compose(lighten(0.1),desaturate(0.1))

安装

npm install --save polished

# or if you're using yarn

yarn add polished

网站地址:https://polished.js.org/

GitHub:https://github.com/styled-components/polished

网站描述:一种用于在JavaScript中编写样式的轻量级工具集

polished官方网站

官方网站:https://polished.js.org/

如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。

相关文章

Basscss,一个CSS重置,网格系统、颜色类、实用类等来帮助你建...
sandal,Sass 的基础库
CssLoad,完全基于CSS的加载动画设计工具
tachyons,轻便实用的 css 框架
CssDeck,在线CSS代码编辑器及共享网
Pure.css,雅虎出品的一组轻量级、响应式纯css模块