@additionapps/polaris-colors 中文文档教程
Polaris Colors
这个模块是一个功能性的帮手,可以带来 Shopify Polaris 颜色变量 到 Javascript 作用域中。
主要用例是 JS 中的 CSS 以及诸如 Styled Components 之类的库
Installation
要安装该模块,请运行:
npm install @additionapps/polaris-colors --save
Getting Started
import { Colors } from "@additionapps/polaris-colors";
const BlueDiv = styled.div`
background-color: ${Colors.blue.base};
`
Addition
Addition develops apps for Shopify。 我们是一个小型的远程分布式团队。
访问我们的 addition.app
Polaris Colors
This module is a functional helper to bring Shopify Polaris color variables into a Javascript scope.
The primary usage case being CSS in JS with libraries such as Styled Components
Installation
To install the module, run:
npm install @additionapps/polaris-colors --save
Getting Started
import { Colors } from "@additionapps/polaris-colors";
const BlueDiv = styled.div`
background-color: ${Colors.blue.base};
`
Addition
Addition develops apps for Shopify. We are a small, remotely distributed team.
Visit us at addition.app