设计资源DESIGN· INSPIRATION
mrmartineau/design-system-utils
一个帮你从设计令牌中快速读取字体、颜色、间距等值的工具库。A lightweight library to centralize your design tokens and access them from any component in React or styled-components projects.
根据公开文档整理,未运行实测;费用以项目官网为准。Based on public documentation, without runtime testing. Check the project site for pricing.
能力CAPABILITIES
用统一方式读取设计变量
快速获取字体大小和模块化缩放
获取品牌色和调色板颜色
获取间距和断点值
设置和覆盖设计变量
Define all design tokens in one file
Access font sizes with shorthand methods
Retrieve colors by palette or brand name
Set custom tokens dynamically
Convert pixel values to rem or em automatically
上手GET STARTED
yarn add design-system-utils选择与你的环境对应的方式。命令来自项目文档,未运行实测。Choose the option for your environment. Commands come from project documentation and have not been run-tested.
使用限制LIMITATIONS
以下要求与风险来自文档静态检查,未执行项目代码;扫描没有命中,不代表使用安全。Risk here is evidence, not an alarm. These findings come from static scanning of the docs; we never execute a project’s code.
限制LIMITS
未知Unknown
静态扫描STATIC SCAN
在 README、SKILL.md 和依赖清单中没有匹配到已知风险模式。No known risk patterns matched in the README, SKILL.md or dependency list.
静态扫描未发现明显风险,但不代表安全。The static scan did not find any obvious risk patterns, but that does not prove the package is safe.
项目动态PROJECT ACTIVITY
首次发现FIRST SEEN
03 OCT 202603 OCT 2026
增长GROWTH
+0.0%+0.0%
542 → 542 stars · 59 个快照542 → 542 stars · 59 snapshots
讨论DISCUSSION
1 SOURCES1 SOURCES
4 条外部提及4 external mentions
状态STATUS
长期未更新Not updated
它提供 get/set 方法和快捷方法如 fontSize、bp、z、color、brand、spacing,方便在 styled-components 等 CSS-in-JS 库中引用设计令牌Weighs less than 1 KB minified and gzipped
HN_STORY · 2 points · 0 comments
HN_STORY · 4 points · 3 comments
HN_STORY · 1 points · 0 comments
依赖:Dependencies:@ngard/tiny-get, dset
{
"agents": [],
"apiKey": null,
"docker": null,
"taxonomy": {
"scores": {
"design": 3,
"ai-tools": 0,
"dev-tools": 0,
"indie-web": 0,
"skill-agent": 0,
"productivity": 0
},
"primary": "design",
"secondary": "inspiration"
},
"localRuntime": null,
"skillMdTotal": 0,
"skillMdErrors": [],
"treeTruncated": false,
"categoryScores": {
"data": 0,
"agent": 0,
"media": 0,
"design": 13,
"browser": 0,
"devtool": 0,
"security": 0,
"marketing": 0,
"productivity": 0
},
"classification": [],
"scannedSources": [
"readme"
],
"skillMdFetched": 0
}