Skip to content

External JSON sync + demo file of hardcoded templates for node types #21

@jake-figma

Description

@jake-figma

Add a new JSON schema / type like:

type TemplatesByNodeType = { [k in BaseNode["type"]]?: CodegenResult[] }

For folks to hang templates on in the codebase itself and have that be the fallback.

This wouldn't work in the official plugin, but would be useful for folks who clone this and want to add templates for things like Typography and Layout components.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions