Agent skill Frontend
UI Design System
Establish reusable styling and design decisions across web screens.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/Primadetaautomation/primadata-marketplace/tree/main/.claude/skills/ui-design-system --skill ui-design-system --agent claude-code --yesCheck this file in your project.claude/skills/ui-design-system/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/Primadetaautomation/primadata-marketplace/tree/main/.claude/skills/ui-design-system --skill ui-design-systemSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use the Primadeta edition of the installed `ui-design-system` Skill. Tested with Node.js 22, ts-node 10.9.2 and TypeScript 5.9.3 in CommonJS mode. Its bundled Python generator has a syntax error at the verified revision.
View operation manualWhat this skill helps with
- Establish reusable styling and design decisions across web screens.
Good for
- Design tokens and shared styles
- Skill name
- ui-design-system
- Scenario
- Export a brand palette as JSON and CSS
- Deliverable
- Parseable JSON and compiled CSS candidates with a documented theme mapping for one component.
- Skill name
ui-design-system
Define a component task with an observable result
A request with an unclear outcome
Replace the production theme with generated CSS immediately.
Generator output provides candidate primitives. The project must choose semantic roles and verify text against adjacent colors.
A workflow with observable results
- Confirm the installed publisher and runner
- Generate both artifacts
- Inspect outputs and preview one pair
Primadeta UI Design System operation manual
Run the available TypeScript generator and preview a selected token pair before adopting it.
Replace the bracketed details with your own project and target.
Confirm the installed publisher and runner
Select one brand color and supported style.
Prompt · Step 1Use Primadeta’s `ui-design-system` skill to plan [brand token export]. Verify `scripts/design-token-generator.ts` in the loaded Skill and find a project-local ts-node runner with TypeScript. Select [hex brand color] and one of modern, classic or playful. Choose temporary output paths before running the generation.Generate both artifacts
Run the same inputs in both export modes.
Prompt · Step 2Use Primadeta’s `ui-design-system` and run the local ts-node binary with `--compiler-options '{"module":"CommonJS"}' "<installed-skill>/scripts/design-token-generator.ts" --color="#246B61" --style=classic --format=json`. Repeat with `--format=css`, writing both outputs to separate temporary files. Replace the color and style with the project inputs, then record the actual command and files.Inspect outputs and preview one pair
Confirm a JSON swatch matches its CSS variable.
- The JSON parses and a selected swatch matches its CSS declaration.
- The generated palette stays in review until the component roles are checked.
Prompt · Step 3Use Primadeta’s `ui-design-system` to check [temporary JSON and CSS outputs]. Parse the JSON, confirm the selected style and compare one `colors.primary` shade with the corresponding `--colors-primary-*` CSS variable. Map foreground and background roles for one preview component. Show its rendered colors and report any contrast correction needed before adoption.
Find the relevant rule
Point the assistant to the installed Skill and a specific issue.
Select an available output formatReference
- Command or reference
scripts/design-token-generator.ts- Examples
- Use verified JSON and CSS branches in the TypeScript CLI.
Primadeta UI Design System troubleshooting
Which runner can execute the checked revision?
The verified path uses project-local ts-node with CommonJS compiler options. The fixture produced matching JSON and CSS through a separate CommonJS TypeScript compile.