zeroheight now integrates with GitLab!

Nefertiti Dukes
Written by Nefertiti Dukes
May 20, 2024

At zeroheight, we’re always looking for ways to make your design and development process even more efficient. That’s why we’re thrilled to announce our new integration with GitLab!

This is big news whether you’re using design tokens or looking for a way to import content from developers easily. Trust us—both your token pipeline and design system documentation are getting a huge upgrade!

⏮️ ICYMI: zeroheight is also integrated with GitHub, allowing you to sync markdown and import/export design tokens.

Stay on the same page with zeroheight and GitLab

Design system sites are at their best when everyone viewing them can trust that the information is accurate and up to date. For folks using GitLab and zeroheight, you can now ensure information is the same across both tools.

Maintain consistency in design tokens

One of the most powerful ways to use the integration is to import and export tokens. If you’ve got tokens in GitLab, you can add them to zeroheight. From there, it’s easy to document them so everyone on the team uses the right tokens in the right instances. Should you need to make any changes, non-technical team members can update tokens in the tokens manager.

Once it’s time to get tokens back into GitLab, zeroheight editors can submit a merge request, ensuring any changes in zeroheight are also reflected in GitLab.

Get rid of duplicate work

If you’re documenting in GitLab, there’s no longer any need to duplicate that work in zeroheight. Sync your READMEs once and keep them updated with a quick click. By syncing markdown to zeroheight, you can ensure everyone has access to the information you’re documenting on GitLab, even if they don’t have access to GitLab directly.

Setting up the GitLab integration in zeroheight

Setting up the integration between zeroheight and GitLab is straightforward. Follow these steps to get started:

Generate a personal access token

  • Click on your avatar in your GitLab account
  • Select Edit profile
  • Click on Access Tokens
  • Select Add new token
  • Enter a token name, select an expiration date, and ensure “api” is selected under scopes
  • Click Create personal access token
  • Copy the personal access token onto your clipboard

Connect zeroheight to GitLab

  • Navigate to the Uploads section of zeroheight
  • Select Code Repos
  • Select Add repos
  • Click GitLab and enter your personal access token
  • Select the repo you’d like to connect to zeroheight
  • Click Continue
  • You’re connected!

Use GitLab in the zeroheight design tokens manager

Once you’ve connected your repo, you can import tokens from GitLab, export tokens to GitLab, and document them on your design system site.

Import Design Tokens from GitLab

  • Navigate to the tokens section of zeroheight
  • Select Create token set
  • Enter a name for your new token set and click Create
  • Select GitLab as the token source
  • Select the token set you’d like to import and click Continue
  • View the tokens you’ve imported and click Continue
  • Select the specific files or directories you want to import. Zeroheight supports various formats, including JSON and YAML.
  • Click Import to bring your design tokens into zeroheight.

Once you’ve imported a token set to zeroheight, you can document them in a styleguide, ensuring everyone on your team knows what tokens are available to them and how to properly use them.

zeroheight editors can also edit individual tokens; no coding is required. This means that even non-technical members of your team can make changes when needed. No worries, though; you can keep everything up to date between zeroheight and GitLab by exporting changes.

Export Design Tokens to GitLab

  • In the token set you’ve edited, click on Push changes
  • Optionally, you can select the box entitled Publish token updates to documentation
  • Once ready, click Push
  • zeroheight will generate a merge request on your behalf. To view it on GitLab, select View merge request

Sync Markdown Content from GitLab

The markdown sync option is a great way to include written content from GitLab on your zeroheight design system site, ensuring you never need to duplicate work across the two tools. As an added bonus, the developers on your team who prefer to work in GitLab can continue to do so without risking their work being siloed.

To sync markdown content from GitLab, follow these steps:

  • Navigate to the page where you’d like to include synced markdown content
  • Type “/markdown” and select Markdown from the dropdown menu
  • Find your GitLab repo on the left and select it
  • Select the file you’d like to add to zeroheight
  • Your markdown file is now visible on the page!

Once you’ve added a markdown file to a page, you can always view it on GitLab. Additionally, you can keep it up to date by clicking refresh at any time.

Keep GitLab and zeroheight connected

The new Zeroheight-GitLab integration is a game-changer for teams looking to streamline their design and development workflows. By importing design tokens and syncing markdown content, you can ensure consistency, enhance collaboration, and boost efficiency. We’re excited to see how this integration will help you create even better products faster.

Ready to get started? Connect zeroheight with GitLab and see how everything works. You can even try it out on our free plan.

Nefertiti Dukes
Nefertiti Dukes
Try zeroheight
The design systems platform that keeps teams and agents in sync
Start for free
Share this post