没有合适的资源?快使用搜索试试~ 我知道了~
system-props:基于主题的响应式风格道具,用于使用React构建设计系统。 用TypeScript编写
共80个文件
ts:49个
json:7个
js:5个
需积分: 9 0 下载量 45 浏览量
2021-03-11
16:50:40
上传
评论
收藏 440KB ZIP 举报
温馨提示
系统道具 基于主题的响应式风格道具,用于使用React构建设计系统。 yarn add system-props 特征 功能几乎与样式化系统相同,但增加了以下功能: 用TypeScript编写 Chakra的PseudoBox启发式伪选择器道具 通过使用函数语法随时访问主题对象 支持常见的主题速记属性,例如border , margin , padding和box-shadow 严格模式:仅允许主题中存在的值 通过在系统prop值前加上$来在视觉上区分主题值 快速开始 CodeSandbox演示: import { createSystem , color , space } from 'system-props' ; import styled , { ThemeProvider } from 'styled-components' ; const theme = { space
资源推荐
资源详情
资源评论
收起资源包目录
system-props-main.zip (80个子文件)
system-props-main
package.json 2KB
.github
workflows
main.yml 834B
jest.config.js 84B
LICENSE 1KB
src
core
sort.ts 481B
tests
merge.test.ts 384B
parser.test.ts 6KB
get.test.ts 1KB
system.test.ts 8KB
get.ts 1KB
createSystem.ts 5KB
createStyleFunction.ts 1KB
merge.ts 386B
index.ts 89B
parseResponsive.ts 2KB
__tests__
shouldForwardProp.test.ts 595B
css-types.ts 3KB
props
grid
tests
index.test.ts 312B
index.ts 590B
styled-system-layout
tests
index.test.ts 817B
index.ts 1KB
shadow
tests
index.test.ts 2KB
index.ts 801B
border
test
index.test.ts 3KB
index.ts 4KB
flexbox
tests
index.test.ts 383B
index.ts 393B
__tests__
tokenizeValue.test.ts 2KB
typography
tests
index.test.ts 384B
index.ts 516B
background
tests
index.test.ts 358B
index.ts 460B
tokenizeValue.ts 3KB
color
tests
index.test.ts 330B
index.ts 443B
space
tests
index.test.ts 6KB
index.ts 4KB
positiveOrNegative.ts 872B
index.ts 338B
layout
tests
index.test.ts 817B
index.ts 654B
position
tests
index.test.ts 1016B
index.ts 618B
pseudos
index.ts 1009B
propNames.ts 700B
types.ts 11KB
index.ts 448B
shouldForwardProp.ts 171B
tsconfig.json 427B
examples
styled-components-transient-props
index.js 1KB
package.json 385B
Box.js 671B
index.html 341B
.gitignore 25B
yarn.lock 228KB
theme.js 3KB
emotion
package.json 573B
Box.tsx 1KB
index.html 342B
tsconfig.json 424B
index.tsx 1KB
.gitignore 25B
theme.ts 6KB
yarn.lock 238KB
system-props.d.ts 116B
emotion.d.ts 143B
styled-components
package.json 557B
Box.tsx 1KB
index.html 342B
tsconfig.json 192B
styled.d.ts 208B
index.tsx 1KB
.gitignore 25B
theme.ts 6KB
yarn.lock 232KB
.gitignore 45B
.npmrc 53B
README.md 2KB
yarn.lock 320KB
tsdx.config.js 579B
共 80 条
- 1
资源评论
每天痛苦与更好的
- 粉丝: 32
- 资源: 4536
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功