
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@protolabsai/design
Advanced tools
protoLabs.studio brand design system — canonical tokens, CSS custom properties, a Tailwind preset, and brand assets. One source, every site.
The protoLabs.studio brand, as code. One canonical token set → CSS custom properties, a Tailwind preset, and the brand assets. Every studio site consumes this so the brand can't drift across surfaces.
Source of truth for the values; docs/reference/visual-identity.md is the source of truth for the rules (when to use what, what we don't do).
pnpm add @protolabsai/design
(Workspace-internal today; published to GitHub Packages when a non-monorepo site needs it.)
Plain CSS (the marketing site, any framework) — import the bundle once at the root. It sets the --pl-* custom properties and base element styles:
@import "@protolabsai/design/css";
Then reference tokens anywhere:
.card {
background: var(--pl-color-bg-raised);
border: var(--pl-border-width) solid var(--pl-color-border);
border-radius: var(--pl-radius);
}
Tailwind — add the preset; utilities like bg-bg, text-fg-muted, rounded, font-mono, shadow-glow, bg-brand-gradient resolve to the locked values:
// tailwind.config.js
module.exports = { presets: [require("@protolabsai/design/tailwind")] };
Tokens in JS/TS — for anywhere you need the raw values (OG images, canvas, emails):
import { tokens } from "@protolabsai/design/tokens";
tokens.color.brand.lavender; // "#9b87f2"
Assets — logos, icon treatments, banner, favicon:
@protolabsai/design/assets/protolabs-icon-outline.svg
@protolabsai/design/assets/readme-banner.png
assets/ is the one source of truth for the brand marks, same as src/tokens.js
is for the values. A browser can't load a favicon from node_modules, so each
surface needs the mark in its own served dir — but those copies are generated, not
committed. This package ships a bin, protolabs-sync-assets, that copies from
assets/ into the served dirs a repo declares; the copies are gitignored, so there's
nothing to drift. Recolor/replace a mark here, re-sync, and every surface follows.
The fleet pattern — any repo consuming this package:
brand-assets.config.json at the repo root mapping surfaces → dest dirs:
{
"surfaces": {
"docs": { "docs/public": { "protolabs-icon-outline.svg": "protolabs-icon-outline.svg" } },
"gallery": { "docs/assets/brand": "*" }
}
}
A map of "*" mirrors every asset (for a GitHub-rendered gallery, kept committed)."docs:build": "protolabs-sync-assets docs && vitepress build docs".protolabs-sync-assets gallery && git diff --exit-code -- <dir>.The bin finds the config by walking up from cwd, so it works from the repo root or a
nested app's prebuild. See this repo's brand-assets.config.json for a live example.
Fonts — Geist + Geist Mono (self-host or):
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet" />
| Path | What |
|---|---|
src/tokens.js | The source of truth. Edit here. |
dist/tokens.css | Generated --pl-* custom properties. |
dist/tokens.json | Generated token tree (preset + tooling read this). |
css/base.css | Reset + element defaults built on the tokens. |
css/index.css | The bundle (tokens.css + base.css). |
tailwind/preset.cjs | Tailwind theme mapping. |
assets/ | Logos, icon treatments, banner. The favicon/in-app mark is protolabs-icon-outline.svg (transparent ground). |
Edit src/tokens.js, then regenerate — never hand-edit dist/:
pnpm --filter @protolabsai/design build
The generated CSS + JSON are committed so consumers don't need a build step. Keeping dist/ generated (not authored) is the anti-drift guarantee: the CSS the sites use and the values the preset reads come from the same object.
Where the spec (visual-identity.md) and the shipped site (styles.css) disagreed, the shipped site won: 4px radius, #0a0a0c ground, #ededed foreground, bordered (not filled) primary buttons. Status colors are low-chroma OKLCH. Dark-first; the gradient swaps to a saturated variant under prefers-color-scheme: light. Full rationale in visual-identity.md and foundation.md §13.
When in doubt: make it grayer and smaller.
FAQs
protoLabs.studio brand design system — canonical tokens, CSS custom properties, a Tailwind preset, and brand assets. One source, every site.
We found that @protolabsai/design demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.