Penpot Theme Generator

I guess this is where I actually should post this :sweat_smile:

Hi everyone :waving_hand:

I’ve recently built a Penpot Theme Generator and wanted to share it with the community so you can test it, use it, and hopefully share some feedback.

:backhand_index_pointing_right: Penpot Theme Generator

This tool helps you visually create design token sets and export a Penpot-compatible JSON, making token creation and management more visual and straightforward.

My name is Bruno, I’m a Product Designer / Product Owner from São Paulo, Brazil, and a Penpot enthusiast. This is my first post here, and I hope this tool is useful to others working with design systems and tokens.

Feedback is very welcome :slightly_smiling_face:

23 Likes

Hey @brunobezerra, this looks really cool! I like how you provide a preview when creating a typography token.

Right now, the generator seems have the same capabilities for creating tokens and sets inside Penpot. Do you have plans to include any other features that would provide an extra benefit over using Penpot for creating tokens?

Some cool features I’d love from a theme generator:

  • generating colour scales/ramps from a chosen colour token
  • generating size scales for dimensions (and any size-related tokens)
  • bulk-editing of token names
  • WCAG accessibility checking of colour contrasts for colour tokens
5 Likes

Hi Laura! Thanks for the comment!

I really liked the suggestions. I’ll be sure to continue with future improvements to the tool.

Some of the suggestions you gave I have considered for the launching, but kept for future versions, like the generation of color scales.

Guess I’m starting to have a roadmap :sweat_smile:

4 Likes

Guess we have an 1.1 update? Updates published recently:

  • New “Select all” button allowing to select all the tokens at once
  • Bulk editing of token names
  • Bulk deleting

Fixed:

  • when changing names of a token, another token that was referencing it will have its value changed to the new token name
  • default sorting was Name (A-Z), it caused tokens to move around as you renamed them; now default sorting is actually none, which fixes the behavior
7 Likes

Love this @brunobezerra - great job champ!!! :clap:

1 Like

:clap: These are fabulous updates, thanks @brunobezerra!

That’s such a useful feature.

Edit: I just tried this and it didn’t update the referencing tokens. Perhaps because they were in another set? I was going to share the export file, but it won’t let me because of the errors (but that’s also such a helpful feature!!)

Hi @LauraKalbag !

I’ll take a look at it, thanks for sharing and thanks for the kind and supportive words :folded_hands:t2:

1 Like

Amazing job @brunobezerra :clap: :clap: :clap: well done!

During Penpot Fest I talked with Mike Kamingga about something similar.
Check this tool, it helps you to built accessible design systems. Once you have finished defining atoms, molecules and so on, it let´s you export design tokens.
It does support Figma, I tried to import them inside Penpot but unfortunately they don´t seem to be compatible.

You can also check this other threads.

3 Likes

Version 1.2.1 launched

New

  • Supports shades generation from a single color
  • Color convertion from Hex to RGB/RGBA and vice versa.
  • New "Simple view” for the color tokens, users can now have a simplified row view with all the color palette generated as opposed to the default detailed view
  • When in Simple view mode, clicking/touching a color token copies its value to the clipboard

Fixed

  • Renaming tokens (either in bulk or single) will update referenced tokens automatically

Demo: https://youtu.be/hc02b4pXDy4

6 Likes

@brunobezerra you’re on fire! :fire:

This is such a time-saver.

4 Likes

Wow amazing Bruno thanks for creating and sharing such a tool, this is really cool and well done!

I just had a quick glance at it but I’ll take some time to try it in the coming days :smiley:

3 Likes

New updates!

Penpot Theme Generator 1.3 allowed the user to export the tokens as a Penpot JSON or a CSS file:

Version 1.4 made possible users to import from in-built Libraries (besides importing you own JSON file), being shadcn/ui themes the first one:

6 Likes

Can we collaborate on expanding this product for penpot users, diving Design System including codes, animations and motions, Adoptions and many more

Hi! That sounds interesting. How could we maybe make this happen? What do you have in mind?

What I have is like a roadmap, we don’t want penpot theme generator for just design tokens functionality which penpot has already, we can go deeper like create a system for not just semantic variables for components variables, Cards variables, breakpoints and also jumper variables…. A lot more, it will be penpot go to stack for beginners who are new in using penpot variants and design tokens