设计资源DESIGN· MOTION
primer/primitives
GitHub 设计系统的颜色、字体、间距数据包,可直接导入前端项目使用。A library of design tokens in JSON for colors, typography, and spacing, used by GitHub's design system.
根据公开文档整理,未运行实测;费用以项目官网为准。Based on public documentation, without runtime testing. Check the project site for pricing.
能力CAPABILITIES
用CSS变量统一全站颜色与间距
直接套用GitHub的明暗主题配色
为色盲用户切换高对比或特制主题
导入CSS获得标准排版与动效
按需改写设计变量并换新主题
Define colors, typography, and spacing as JSON tokens
Use CSS variables to apply consistent theming across your UI
Switch between light, dark, and high-contrast themes
Extend tokens with alpha transparency and color mixing
Import only the token categories you need (size, motion, color)
上手GET STARTED
文档里没有找到可识别的安装命令。这类项目按发布规则不会进入榜单,只能在这里查看。No recognisable install command was found in the docs. Projects like this never enter the ranked list under our publishing rules — they are viewable here only.
npm install --save @primer/primitivesInstall via npm with `npm install --save @primer/primitives`.
使用限制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 found no obvious risk patterns in the documentation, but this does not prove the code is safe.
项目动态PROJECT ACTIVITY
首次发现FIRST SEEN
03 OCT 202603 OCT 2026
增长GROWTH
+2.7%+2.7%
412 → 423 stars · 59 个快照412 → 423 stars · 59 snapshots
讨论DISCUSSION
1 SOURCES1 SOURCES
6 条外部提及6 external mentions
状态STATUS
持续活跃Active
官方提供了 Storybook 和文档,可以直接体验这些颜色、字体、间距变量在页面上的效果。Maintained by GitHub and used in their own design system, Primer.
HN_STORY · 2 points · 0 comments
HN_STORY · 128 points · 67 comments
HN_STORY · 2 points · 0 comments
{
"agents": [],
"apiKey": null,
"docker": null,
"taxonomy": {
"scores": {
"design": 8,
"ai-tools": 0,
"dev-tools": 0,
"indie-web": 0,
"skill-agent": 0,
"productivity": 0
},
"primary": "design",
"secondary": "motion"
},
"localRuntime": null,
"skillMdTotal": 0,
"skillMdErrors": [],
"treeTruncated": false,
"categoryScores": {
"data": 0,
"agent": 0,
"media": 0,
"design": 8,
"browser": 0,
"devtool": 0,
"security": 0,
"marketing": 0,
"productivity": 0
},
"classification": [],
"scannedSources": [
"readme"
],
"skillMdFetched": 0
}