Skip to content

D2C+: Dev Mode and Component Mapping

DESIGN TO DEV · D2C+

Dev mode and component mapping

D2C+ is a design-to-code workflow for enterprise development teams: generate code from a selected page, component, or layer in Dev Mode, then use DSM mapping when the team wants the result to reuse project components. It is best to validate code generation first and add mappings when there is a clear need.

What I confirm first

  • Your account needs an Enterprise Full-featured seat or a Development seat.
  • The target file must be in an Enterprise space. Personal drafts inside an Enterprise space are supported; files outside an Enterprise space are not.
  • Editing DSM configuration requires opening DSM in Design Mode and having edit access to the file.

The shortest path I recommend

  1. Open the target design file in an Enterprise space.
  2. Turn on Dev Mode in the upper-right corner.
  3. In the D2C dropdown on the right panel, choose D2C+.
  4. Select a page, component, or layer and generate its code.
  5. Review the output, then view or export the code and integrate it into your project.

The official quick start lists React, Vue, and Flutter as D2C+ output frameworks. If the immediate goal is to generate code from the design structure without binding instances to project components, start without a configuration file.

D2C+ can also be called through Pixso Local MCP or Remote MCP with the design_to_code tool. See the Pixso MCP overview.

When DSM mapping helps

I usually recommend DSM when a team has a stable component library and wants generated code to use those project components. For example, a design Button can map to the project’s el-button. A component parser describes that relationship and how props, text, and icons map.

Open DSM from the dropdown in the design file’s top bar. DSM is available in Design Mode; editing its configuration requires edit access. Skip this section if you do not need component mapping.

Minimal example from the official guide:

{
  "Button": {
    "name": "el-button",
    "props": {
      "filter": [
        "md",
        "default"
      ]
    },
    "text": {
      "nodeName": "_text"
    },
    "icon": {
      "nodeName": {
        "name": "icon",
        "deepFind": true
      },
      "attrName": "icon"
    }
  }
}

You can write mappings manually or ask an agent to inspect a component library through MCP and draft the DSM configuration. My recommendation is to provide clear component files or API documentation, then have someone familiar with the project verify the mapping rather than treating an example as the team’s final standard.

How I troubleshoot it

  • Start with a clearly scoped page or component, then review layout, text, and image assets.
  • If a component is not mapped as expected, check the parser’s component name, prop filters, and child-node names.
  • If the D2C+ entry is unavailable, verify Dev Mode, Enterprise-space file location, and account seat requirements.
  • Validate the result in the actual project and adapt it to the team’s components and engineering conventions.

Official guides

This is a personal practical guide, not an official product announcement. Capabilities, seat requirements, and product entry points may change; refer to the official D2C+ documentation.