Design systems with Penpot
Let’s walk through the Penpot features you can use to create your team’s design system, from shareable libraries to generated CSS and everything in between.
Design systems are collections of design patterns, code snippets, and guiding documentation. Teams can use these systems across projects to create more consistent user experiences and efficient design and development processes. Design systems are a great collaborative tool and save teams from reinventing the wheel on each new project when it comes to design, code, and branding.
Penpot is the perfect tool for building a design system, from shareable libraries to CSS generated from your components. Today, I’ll walk you through an overview of the features you can use to create a design system for your team using Penpot.
Create design token collections
Design tokens are rules representing the smaller reusable values in your system. Tokens can be any kind of value, but they’re most often used to standardize styles such as font, color, size, and spacing across designs. Each token has a name to make it easier to document, find, and reuse.
In Penpot, you’ll find design tokens in the Tokens tab in the left panel. Tokens are organized by type, such as Color, Typography, Spacing, and Border radius. To create one, click the + icon button next to a token type, then enter a name, a value, and an optional description. Click Save to add the token to your set.

Create color tokens
Add a Color type token for any color value you want to reuse, such as button.background.hover. Use dots in the token name to organize your colors into groups and sub-groups. Naming the token button.background.hover puts the hover token inside a background group, inside a button group.

button.background.hover token has a value of #8317cf.Once you’ve created your color tokens, select an element and choose a color token from the fill or stroke’s color picker in the Design panel to apply it to the element. You can also apply a design token from the Tokens panel by selecting your element then right-clicking the token to select and apply it to your chosen property. Applied color tokens appear as a pill in the Design panel, and you can detach the token by clicking the link icon.

button.background.hover token references the {brand.accent} token.Color tokens can also reference other color tokens. Use curly braces and the token’s full path, for example {brand.accent}. A semantic token like button.background.hover can point to a primitive token like {color.purple.200}. When you update the primitive, everything that uses it updates too.
Design consistent typography
Penpot comes preloaded with a huge selection of Google web fonts. If you want to use a different web font in your design system, you can upload font files for your whole team from the Fonts area in the Penpot dashboard. You can also upload multiple font weights and style variants and group them as one font family.
Typography tokens let you store the individual text properties as reusable values:
- Font family: you can list fallback fonts, like CSS, and Penpot will use the first available font.
- Font size: set in pixels.
- Font weight: use a number, such as
700, or a name, such asBold. - Letter spacing, text case, and text decoration.
Combine typography tokens in one composite token
A composite typography token brings several of those properties together in one token. Create a Typography type token and set the font family, size, weight, line height, letter spacing, and text case together. You can also hardcode a value (use a raw value that isn’t a token) if its specific to that typography style, like a line height that’s specific to a font size.

For example, name one typography.heading.md so it’s grouped with your other heading styles. Select a text layer and apply the token to give it all the properties at once. Each property can also reference the individual typography tokens you’ve already created, like {typography.heading.size}, so one change updates every style that uses it.
Applying a composite typography token detaches any typography style the text already had, and applying a typography style detaches the token.
Build reusable components
Components are vital to any design system and can form the basis of anything from a simple reusable pattern to a complex layout with multiple nested parent and child components.
You can save any object or group of objects as a component in the Assets panel for reuse in your file or shared library. You can even save an empty board that only contains layout rules as a layout component. Once saved, you can name your components and group them using slashes in the name to make them easier to find amongst a large collection of components.
Creating a button with icon component and finding the component in the Assets panel.
After creating a component, you can quickly grab another instance of that component from the Assets panel or just duplicate the main component. When you use a copy or instance of a component, it is linked to the main component and can be updated or changed by any changes to the main component.

Sometimes, your components need some documentation to help your team understand how and where to use them. With your main component selected, you can add an annotation with any relevant information in the Design panel. Annotations are shown in the Inspect tab, making it easy for developers and other stakeholders on your team to quickly find information about your component without having to dig around in the assets or layers.
Component overrides, variants and swaps
You can override the defaults of the main component in a copy of the component. To create component variants, detach a copy of the component from the main component and save it as a new component. You can swap components quickly from the Design panel by pressing the component icon alongside the component name. From there, you can quickly pick any component variant saved in the same group or any other component in your library.
Use naming to group your component variants in the same collection and make it easy to switch between them.
Specify spacing and layouts
Spacing is fundamental in design systems because it determines how you group and align your design elements into a coherent layout. There are many different ways to do layout and spacing in Penpot, and I recommend declarative design as best practice! For now, I’ll show you how design tokens help you keep your spacing consistent.
Create spacing tokens
If you come from a traditional graphic design background like me, you’ll love using alignment and spacing between elements to show hierarchy and relationships. As I mentioned earlier, there’s no need to type or remember the same pixel values over and over. Instead, you can create Spacing design tokens from the Tokens tab. Use the + icon button next to the Spacing type, then enter a name and a value. Use dots in the name to group them, for example spacing.small, spacing.medium, and spacing.large.

Spacing tokens work well as a scale. Because token values can reference each other and use math, you can build the scale from a single base value. Set spacing.base to 8, then make spacing.large equal to {spacing.base} * 2. Change the base and the whole scale updates.
Board and container layouts
In Penpot, layouts work the same way as they do on the web, but you don’t have to do any of the coding. By default, your layout will be static (that’s absolute positioning for my CSS pals), where you position objects on the X and Y axis. Or you can create more advanced flexible layouts with flex and grid layouts. You can apply layouts to any board, group, or layer, allowing you to nest different layouts inside each other.

You can even save your board with its layout as a component to create reusable layouts.
Object layouts
Once an object is inside another board, group or layer, you can set its constraints from the Design panel. Constraints determine how the object behaves when you resize its parent container. Once an object is inside another board, group or layer with a layout, you can also set layout-specific properties that determine how the object behaves inside that layout, including its alignment and margins.

Shared libraries
Any colors, typographies, design tokens, and components saved to your Assets library can be used anywhere in your file. You can also share your assets with your team and across your projects with a shared library, which is perfect for design systems.

When you publish your file as a shared library, your file name is used as the library name. Any changes to your components in your original file will push out updates to any other files using your shared library.

Design token libraries
You can also create a design token library by choosing a shared library’s design tokens as the source for tokens in any connected file. This is ideal for design systems where you want your team to be able to consume design tokens without creating new tokens (or accidentally editing them!)

Design systems that work for developers
Collaboration is the whole point of design systems, and Penpot has been created for both designers and developers. One of the reasons it’s useful to have layouts that work the same way as on the web is that developers can grab the code for the layout from Inspect mode, and it’ll work exactly as the designer intended.

In Inspect mode, you can pick objects on the canvas without the risk of accidentally editing them (I’ve been there!) and get information on their dimensions, properties, and any component annotations from the Info tab without having to dig around in any panels. You can also switch to the Code tab to grab that object’s CSS, HTML, and SVG code.
Penpot is built with design systems in mind
You should now have a better idea of all the features you can use in Penpot to create your design systems and collaborate better with your teams. Sign up for a free account and start work on your design system today. Penpot was really designed with design systems in mind, and upcoming features like design tokens will continue to build on that.
Check out our blog post on 5 design system examples to learn more about design systems. You can also find the Penpot design system template in our Libraries & Templates collection to see how Penpot uses Penpot for Penpot. Very meta!
If you have any questions about using Penpot for your design systems or suggestions for tutorials that would help you in the future, feel free to post on our Community Space. We’d love to hear from you.
Related Blogs
Check out our other blogs, from informative topic guides to tutorials on how to get the most out of Penpot.




