Skills Plugins MCP Prompt Model 博客 我的中心
开发编程 #data #design

codex-tokens

The Codex CSS custom-property design tokens (color, spacing, typography, border, shadow, transition) shipped via @wikimedia/codex-design-tokens — what each token name means, how to use them in templates and CSS, and how the light / dark token sets cascade through [data-theme]. Use when picking a colour / spacing / type value, debugging a dark-mode regression, or asking "what's the token for X?".

DeepseekModel 官方收录技能 质量 良好 · 64 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=wikimedia-protowiki-agents-skills-codex-tokens-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name codex-tokens description The Codex CSS custom-property design tokens (color, spacing, typography, border, shadow, transition) shipped via @wikimedia/codex-design-tokens — what each token name means, how to use them in templates and CSS, and how the light / dark token sets cascade through [data-theme]. Use when picking a colour / spacing / type value, debugging a dark-mode regression, or asking "what's the token for X?". Codex tokens Codex tokens are CSS custom properties (variables) defined by @wikimedia/codex-design-tokens . They're the source of truth for every visual decision in the design system. Use them everywhere. The big idea .my-thing { color : var (--color-base); background-color : var (--background-color-neutral-subtle); padding : var (--spacing- 100 ); border : 1px solid var (--border-color-subtle); border-radius : var (--border-radius-base); } The light and dark Codex token files both target :root by default. A host environment that wants per-subtree theme switching typically re-scopes them to attribute selectors like [data-theme="light"] / [data-theme="dark"] so a single rule renders correctly in both themes — and re-themes correctly inside any subtree whose data-theme overrides the inherited one. Token families The Codex token set is split across families. Reference each in detail: references/colors.md references/spacing.md references/typography.md assets/tokens.css — a vendored snapshot of the Codex token CSS (light + the skin-theme-clientpref-night dark block) for quick grepping of any token and its value without opening node_modules . Refresh when bumping the @wikimedia/codex-design-tokens version (see header comment in the file). references/tokens.md — how to find the full inventory (points at tokens.css first, then upstream). Quick cheat-sheet Want Token Body text colour var(--color-base) Secondary / placeholder text var(--color-subtle) / var(--color-placeholder) Link colour var(--color-progressive) Visited link var(--color-visited) Page background var(--background-color-base) Toolbar / footer background var(--background-color-neutral-subtle) Card / inset background var(--background-color-neutral) Hairline border var(--border-color-subtle) Form border var(--border-color-base) Tiny / small / medium / large gap var(--spacing-25) / --spacing-50 / --spacing-100 / --spacing-150 Section / page padding var(--spacing-200) / var(--spacing-300) Small radius var(--border-radius-base) Any text (size/weight/family/leading) Use a whole style from references/typography.md — never assemble font tokens ad hoc Authoritative source Codex's design tokens documentation is the canonical reference. Use it when a name in this skill drifts from the upstream package. Pitfalls Don't invent names. Tokens with --cdx- prefixes do exist (for experimental / mixin-only values); the user-facing tokens in the design system are unprefixed ( --color-base , --spacing-100 ). Check the reference table before guessing. Importing the raw :root token files locks you to one theme. The shipped CSS targets :root , so importing theme-wikimedia-ui.css directly gives you always-on light, and the dark equivalent gives always-on dark. To get attribute-driven switching, your environment needs to re-scope these files (see "Inside ProtoWiki" below). Token values change. When Codex bumps a major, run a quick visual diff. The token names are stable. Inside ProtoWiki ProtoWiki bundles the Codex token files and re-scopes them at boot via src/theme.ts so the same var(--…) rule cascades through [data-theme="light"] / [data-theme="dark"] . See protowiki-theme for the boot-time resolution, the per-subtree theme prop, and the useTheme() hook.
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。