penpot icon indicating copy to clipboard operation
penpot copied to clipboard

feature: Create components with code/script

Open parrotcar00 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

If one has created a component with known design before, it might be easier to write a small chunk of code to duplicate that and then go from there. Cuts down on repetitive tasks while doing ui prototyping. Figma has a plugin called scripter for this: https://www.figma.com/community/plugin/757836922707087381/scripter The scripter plugin has a lot of potential but it doesn't work as well because Figma plugin API has a limitation of not allowing plugin to run in a separate window. Penpot has a huge edge here because of its Clojure foundation and better potential to build a more expressive API.

Describe the solution you'd like.

A code editor view where one can type in code that creates ui components.

Describe alternatives you've considered.

No response

Additional context

I'm curious if Penpot already offers something for this that I have missed.

parrotcar00 avatar Jan 15 '24 04:01 parrotcar00

Hi @parrotcar00,

Thank you for the suggestion! This is a discussion that has been raised in the Penpot Community, I recommend sharing this suggestion there.

We understand that plugins are key to add capabilities and empower the community to contribute to Penpot. You can stay up to date about the progress on this here: https://tree.taiga.io/project/penpot/us/1129

madalenapmelo-kp avatar Feb 01 '24 12:02 madalenapmelo-kp

Hi @parrotcar00,

We have reviewed this feature and while this is not something that we plan to address in the foreseeable future, we plan to introduce plugins soon so this could be a community developed plugin.

We encourage you to share this idea at our global Penpot community, where you could raise interest and start a productive conversation about this!

madalenapmelo-kp avatar May 15 '24 13:05 madalenapmelo-kp