项目
在 GitHub 查看
argyleink/open-props
关于
用于加速自适应且一致的设计的 CSS 自定义属性。
网站与应用开发实测星标增长
- 24小时
- +1
- 7天
- +6
- 15天
- +17
- 1个月
- +32
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Open Source CSS Variables
colors gradients shadows aspect ratios typographyeasings animations sizes borders z-indexes media-queries
Need help? 👉 Discord
CDN (browse)
- https://unpkg.com/open-props
- https://unpkg.com/open-props/normalize.min.css - Normalize (light + dark) demo
- https://unpkg.com/open-props/open-props.tokens.json - Design Tokens
- https://unpkg.com/open-props/open-props.figma-tokens.sync.json - Figma Design Tokens
- https://unpkg.com/open-props/open-props.style-dictionary-tokens.json - Style Dictionary Tokens
Bookmarklet
javascript: (() => {
const href = "https://unpkg.com/open-props";
document.head.append(Object.assign(document.createElement("link"),{rel:"stylesheet",href}));
})();
CLI
npm run gen:op- runs throughsrc/js files and creates the PostCSS files insrc/npm run gen:nowhere- creates a version of Open Props without the use of:where()npm run gen:shadowdom- creates a version of Open Props with:hostas the selector scopenpm run gen:prefixed- creates a version of Open Props with each prop prefixed withop, like--op-font-size-1npm run bundle- creates all the various minified bundles of propsnpm run lib:js- builds the JS modules for NPM
Testing
npm run build && npm run bundle
npm test
探索相关项目
加载中…