
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@gitlab/svgs
Advanced tools
This repository manages all SVG Assets for GitLab by creating SVG sprites out of icons, and optimizing SVG illustrations.
Visit the GitLab SVG Previewer website to see, reference, and search through all available icons and illustrations.
brew install yarn.main branch, use yarn install to install the latest dependencies.yarn run svg - Runs all tasks that are available. You can also run this task to release a new version.
All output is saved to the dist folder where it’s referenced from our main applications.
If you're adding a third-party logo or trademark, refer to this section.
Review the following documentation:
Make sure you have the latest from the main branch in your local copy of the gitlab-svgs repository, then create a new local branch.
# Retrieve the latest updates
git pull
# Create a new local branch
git checkout -b new-branch-name
Make sure that your dependencies are up to date by running yarn install.
Export the icons or illustrations as a .svg file where:
sprite_icons folder. Read instructions below on exporting icons.illustrations/ folder. There are subfolders for illustration categories, like empty states or logos.If you are not compressing an SVG during export, you can use SVGO to optimize it after you export.
# Optimize our `huge_test.svg` file
yarn run svgo ./path/to/huge_test.svg
After adding the new SVGs, execute the following commands to verify your changes locally at http://localhost:3333/
# Starts a local server to preview your changes
yarn run dev
Test icons by changing the settings in the Icon configuration panel of the local preview site and ensuring that the icon changes color and size (there are a few icons that intentionally don’t change color).
![]()
If you are happy with the new/modified SVG, commit and push all changes (including the ones to the dist folder) and create a merge request.
# After committing your changes, use this to create a remote branch. A link will then be available to create the merge request.
git push -u origin new-branch-name
Assign the merge request to a maintainer of the GitLab SVGs project. You can find the maintainers on the GitLab project overview page.
/illustrations/third-party-logos directory.Icons should only be exported after they have been added to the Pajamas UI Kit in Figma. This ensures that it’s the final version of the icon that gets exported, and the export settings are retained for developer handoff if it’s ever needed.
sprite_icons folder.fill="none" from the main <svg> element.# Starts a local server to preview your changes
yarn run dev
Brand icons for companies or products, which may have specific color requirements, should be named starting with brand-, for example, brand-slack.svg. These icons may have something different than fill="#000" to prevent color from being overridden.
The application for previewing is based on NUXT and is located in the folder svgpreviewer.
You can run it locally through yarn run dev then it will available under http://localhost:3333/.
With yarn run generate you can generate the static output to the public folder.
This package also bundles file icons based off PKief/vscode-material-icon-theme.
During the CI build, the following steps are done:
file_icons folder.file_icons_unusedEvery time a file is added, deleted, modified or renamed within the sprite_icons or illustrations folders and the change is merged into the main branch, a new minor version of the package is published.
GitLab is an open source project and we are happy to accept community contributions. Please refer to CONTRIBUTING.md for details.
v3.148.0
FAQs
SVG Assets for GitLab
The npm package @gitlab/svgs receives a total of 50,162 weekly downloads. As such, @gitlab/svgs popularity was classified as popular.
We found that @gitlab/svgs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.