Renames CSS variables to Open Components token paths (e.g., --color--primary) and adds the Stylelint rule to enforce the convention. Useful when standardizing design token naming.
Ships in open-components. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Open Components (https://opencomponents.dev) is a standard for UI components. Its Design Tokens foundation names every CSS variable as a token path: the groups it belongs to, then its own name, with a double dash between groups and single dashes inside a group or a name.
:root {
--color--primary: …; /* color › primary */
--color--primary-contrast: …; /* color › primary-contrast */
}
.button {
--button--icon--size: 1rem; /* button › icon › size */
}
Use the tools of the open-components MCP server, which this plugin connects:
get-contract {"component": "design-tokens"} returns the convention and its rules, each with a stable ID, like tokens/token-paths.get-page {"path": "design-tokens", "sections": ["Token paths"]} explains how to group a token, with examples.get-page {"path": "design-tokens", "sections": ["Lint"]} returns the Stylelint rule.If you don't have the tools, read the same from the site, fetching the files as they are rather than through a tool that summarizes them: https://opencomponents.dev/raw/docs/foundations/design-tokens.yaml is the contract, and https://opencomponents.dev/raw/docs/foundations/design-tokens.md the page.
color, spacing, font-size and one for each component, and show the user how each variable maps to its new name before renaming anything.var() that reads it, keeping the values as they are. Leave other libraries' variables, like Tailwind's, under their own names.Cite the convention's rule IDs exactly as the standard writes them, and never make one up.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/build-componentBuilds a UI component that meets the Open Components standard, in the user's framework, from its contract, its reference implementation and its tests, or, for one the standard only plans, following the Button's structure. Use when building, porting or rewriting a UI component, like a button, input, spinner, dialog or tabs, for a design system or component library, or when the user asks for one that meets Open Components./review-componentReviews a UI component against its Open Components contract, or a codebase's theme and component styles against a foundation like Design Tokens, reporting every rule as pass or fail with its ID and the evidence, then fixing the failures. Use when asked to review, audit or check a component, its accessibility, its API or its tokens, or a theme's CSS variables, against Open Components or a component standard./review-usageReviews how a screen, page or feature uses a UI component, like a button, against the rules of its Open Components contract that the code using it meets, like keeping one primary button per view, reporting every rule as pass or fail with its ID and the evidence, then fixing the failures. Use when asked to review a screen, form, dialog or flow, or how an app uses its buttons, inputs or other components, against Open Components./open-components:adopt-token-pathsfrom open-components
npx claudepluginhub uxfront-com/open-components --plugin open-componentsOther plugins' skills for the same job