【文件属性】:
文件名称:样式主题:样式组件的可扩展主题系统:nail_polish:
文件大小:58KB
文件格式:ZIP
更新时间:2021-02-05 02:11:04
react theme font palette styled-components
风格主题:nail_polish_dark_skin_tone:
主题系统
安装
$ npm install --save styled-theme
用法
在上
import styled from 'styled-components'
import { font , palette } from 'styled-theme'
const Text = styled . span `
font-family: ${ font ( 'primary' ) } ;
background-color: ${ palette ( 1 ) } ;
color: ${ palette ( 'grayscale' , 0 , true )
【文件预览】:
styled-theme-master
----.gitignore(43B)
----.babelrc(169B)
----.flowconfig(29B)
----.eslintrc(336B)
----package.json(2KB)
----src()
--------types.js(402B)
--------theme.js(951B)
--------index.js(3KB)
--------composer.js(379B)
----.travis.yml(144B)
----LICENSE(1KB)
----index.js(35B)
----composer.js(44B)
----_config.yml(26B)
----README.md(7KB)
----.gitattributes(29B)
----test()
--------index.js(4KB)
--------composer.js(239B)
----.editorconfig(414B)
----yarn.lock(182KB)