Pixel Design System
Build Pixel 3 UI with a low-noise workflow: verify setup, map the UI, validate props, apply token-safe styling, and ship runnable Vue/Nuxt code.
Golden Rules
- Import UI from
@mekari/pixel3.
- Use Pixel primitives before raw HTML equivalents.
- Wrap validated fields in
MpFormControl.
- Verify props with Pixel MCP
get-component before guessing.
- Prefer design tokens over raw color, spacing, or typography values.
- Use CSS Props for
MpFlex, MpScrollbar, MpSkeleton, and Pixel.*; use css() only when CSS Props are unavailable.
- Preserve the project's active token mode instead of mixing 2.1 and 2.4 ad hoc.
Examples
Text request → Component output
Input: "Create a form with email and password fields and a submit button"
Expected: MpFormControl wrapping MpInput components, MpButton with variant="primary", proper imports from @mekari/pixel3, tokens used for spacing.
Figma → Code
Input: Figma node of a data table with pagination
Expected: Get node ID → call get_design_context → map to MpTable + MpPagination → validate props via get-component → output runnable SFC.
Workflow
1. Verify Setup
Read references/setup.md if package setup, plugin registration, or token mode is unclear.
2. Analyze the Request
- For Figma work: extract the node ID, then use Figma MCP
get_design_context and get_screenshot.
- For text requests: break the UI into sections, states, interactions, and responsive behavior.
- Produce a short component plan before coding.
3. Map UI to Pixel Components
Read references/components.md, then validate any uncertain component with Pixel MCP get-component.
4. Apply Styling Safely
- Read references/design-tokens.md when choosing color, spacing, or typography.
- Read references/styling.md when deciding between CSS Props and
css().
5. Produce Final Code
Read references/code-structure.md before writing the final Vue/Nuxt component.
MCP Usage
Pixel MCP
get-docs - Pixel setup, enable theme, design tokens, and implementation guides
get-component - Component example, props, slots, and events
get-icon-name - Icon names and usage
get-pattern - Pixel UI patterns and code examples
get-template - Pixel templates and code examples
Available prompts:
implement-figma-to-pixel - Generate an implementation guide for converting Figma designs to Pixel 3 components
create-design-to-pixel - Generate Vue component code from a natural-language UI description
Use get-docs first when setup or token mode is unclear, then use get-component for component APIs, get-pattern for reusable UI patterns, and get-template for starter layouts.
Figma MCP
get_design_context for structure, assets, and code hints
get_screenshot for visual verification
get_metadata only for large-node navigation
Output Contract
Always produce:
- Complete runnable Vue/Nuxt code
- Required imports
- Components used
- Token and styling decisions
- Assumptions, gaps, or unresolved API questions
QA Checklist
- Setup and token mode confirmed or explicitly called out
- Props verified against Pixel docs where uncertainty existed
- Layout and spacing match the intended hierarchy
- Hover, disabled, error, and loading states handled where relevant
- No stray inline styles or unnecessary raw values
Reference Loading Guide
- Read
setup.md before coding if project readiness is uncertain.
- Read
components.md when mapping UI or resolving prop issues.
- Read
design-tokens.md when selecting tokens or spacing scale.
- Read
styling.md when adding layout or custom visual rules.
- Read
code-structure.md immediately before final code generation.
1---2name: pixel3description: Build Mekari Pixel 3 UI in Vue 3/Nuxt from Figma or text. Use when implementing components, validating props, applying design tokens, or checking token mode (2.1 vs 2.4).4---56# Pixel Design System78Build Pixel 3 UI with a low-noise workflow: verify setup, map the UI, validate props, apply token-safe styling, and ship runnable Vue/Nuxt code.910## Golden Rules11121. Import UI from `@mekari/pixel3`.132. Use Pixel primitives before raw HTML equivalents.143. Wrap validated fields in `MpFormControl`.154. Verify props with Pixel MCP `get-component` before guessing.165. Prefer design tokens over raw color, spacing, or typography values.176. Use CSS Props for `MpFlex`, `MpScrollbar`, `MpSkeleton`, and `Pixel.*`; use `css()` only when CSS Props are unavailable.187. Preserve the project's active token mode instead of mixing 2.1 and 2.4 ad hoc.1920## Examples2122### Text request → Component output2324**Input:** "Create a form with email and password fields and a submit button"25**Expected:** MpFormControl wrapping MpInput components, MpButton with variant="primary", proper imports from @mekari/pixel3, tokens used for spacing.2627### Figma → Code2829**Input:** Figma node of a data table with pagination30**Expected:** Get node ID → call get_design_context → map to MpTable + MpPagination → validate props via get-component → output runnable SFC.3132## Workflow3334### 1. Verify Setup3536Read [references/setup.md](references/setup.md) if package setup, plugin registration, or token mode is unclear.3738### 2. Analyze the Request3940- For Figma work: extract the node ID, then use Figma MCP `get_design_context` and `get_screenshot`.41- For text requests: break the UI into sections, states, interactions, and responsive behavior.42- Produce a short component plan before coding.4344### 3. Map UI to Pixel Components4546Read [references/components.md](references/components.md), then validate any uncertain component with Pixel MCP `get-component`.4748### 4. Apply Styling Safely4950- Read [references/design-tokens.md](references/design-tokens.md) when choosing color, spacing, or typography.51- Read [references/styling.md](references/styling.md) when deciding between CSS Props and `css()`.5253### 5. Produce Final Code5455Read [references/code-structure.md](references/code-structure.md) before writing the final Vue/Nuxt component.5657## MCP Usage5859### Pixel MCP6061- `get-docs` - Pixel setup, enable theme, design tokens, and implementation guides62- `get-component` - Component example, props, slots, and events63- `get-icon-name` - Icon names and usage64- `get-pattern` - Pixel UI patterns and code examples65- `get-template` - Pixel templates and code examples6667Available prompts:6869- `implement-figma-to-pixel` - Generate an implementation guide for converting Figma designs to Pixel 3 components70- `create-design-to-pixel` - Generate Vue component code from a natural-language UI description7172Use `get-docs` first when setup or token mode is unclear, then use `get-component` for component APIs, `get-pattern` for reusable UI patterns, and `get-template` for starter layouts.7374### Figma MCP7576- `get_design_context` for structure, assets, and code hints77- `get_screenshot` for visual verification78- `get_metadata` only for large-node navigation7980## Output Contract8182Always produce:83841. Complete runnable Vue/Nuxt code852. Required imports863. Components used874. Token and styling decisions885. Assumptions, gaps, or unresolved API questions8990## QA Checklist9192- Setup and token mode confirmed or explicitly called out93- Props verified against Pixel docs where uncertainty existed94- Layout and spacing match the intended hierarchy95- Hover, disabled, error, and loading states handled where relevant96- No stray inline styles or unnecessary raw values9798## Reference Loading Guide99100- Read `setup.md` before coding if project readiness is uncertain.101- Read `components.md` when mapping UI or resolving prop issues.102- Read `design-tokens.md` when selecting tokens or spacing scale.103- Read `styling.md` when adding layout or custom visual rules.104- Read `code-structure.md` immediately before final code generation.