fr8labs-design-system

Fr8Labs Design System

Fr8Labs Design System (FDS) provides reusable React components, tokens, icons, freight-workflow examples, Storybook documentation, and a read-only MCP catalog.

The current private GitHub Packages are pre-1.0 releases for browser-based React applications:

Package Version Purpose
@fr8labs/fds-components 0.4.2 React components, bundled FDS styles, and fds-check
@fr8labs/fds-icons 0.1.3 React icon helpers and icon styles
@fr8labs/fds-tokens 0.4.1 Framework-neutral CSS custom properties

Install all FDS packages

Authenticate with a GitHub classic personal access token that has read:packages, using the token as the password:

npm login --scope=@fr8labs --auth-type=legacy --registry=https://npm.pkg.github.com
npm install @fr8labs/fds-components @fr8labs/fds-icons @fr8labs/fds-tokens

This installs the complete FDS package surface: React components, icons, and framework-neutral tokens.

import {Button, FdsProvider} from '@fr8labs/fds-components';
import {Icon} from '@fr8labs/fds-icons';
import '@fr8labs/fds-components/styles.css';

<FdsProvider density="compact">
  <Button startIcon={<Icon name="download" />}>Export shipment</Button>
</FdsProvider>

See the component package guide for requirements, setup, supported components, and rollback guidance.

For a framework-neutral surface, import the token package directly:

@import '@fr8labs/fds-tokens/tokens.css';

Connect the FDS MCP

The FDS catalog is Fr8Labs IP, so the endpoint is fr8team-only and token-gated — it is hosted on the Fr8Labs Notification Hub alongside the other Fr8Labs MCP connectors, not on public hosting. Use the read-only endpoint in an MCP client that supports Streamable HTTP:

{
  "mcpServers": {
    "fr8labs-fds": {
      "url": "https://notification-hub.fr8labs.co/mcp-fds"
    }
  }
}

Restart the MCP client after adding the server. OAuth-capable clients (Claude Code / Claude.ai / Cursor / ChatGPT) are walked through the Fr8Labs login + consent on first connect; clients that take a static header need an fr8team MCP token issued for the FDS connector (Fr8Labs admin → Users → MCP Tokens, connector “Fr8Labs Design System”). See the Storybook MCP guide or repository MCP guide for the available tools, local setup, and test prompts.

The previous public pilot endpoint (fr8labs-fds-mcp.vercel.app) is retired. The Notification Hub endpoint exposes the three required workflow tools by default; append ?profile=advanced for the full sixteen-tool catalog. The local server uses the same profiles.

Example: product enhancement mockup

Use the Jira ticket, attached product requirements, and product repository as the agent’s read-only context; FDS MCP remains the design authority. Copy this instruction into an agent task:

Read the Jira ticket through the configured Jira connector and any attached or
linked product-requirement sources available in the task workspace, such as
Markdown files. For an enhancement, inspect the existing product source code in
read-only mode to understand the current UI and behaviour.

Do not send Jira text, product requirements, product source, customer data, or
production data to FDS MCP. Call `use_fds`, fetch the relevant canonical URLs with
`fetch_fds_docs`, choose the closest approved workflow, and create the mockup from its exact package components and returned files in
the isolated prototype workspace with synthetic data. Never recreate FDS controls
with handwritten HTML or lookalike CSS.

Before presenting the mockup, call `check_fds_source` with every generated TSX,
JSX, or HTML file and fix every reported mismatch. Run the project build, start it
locally, and run `npm exec fds-check -- --url <local-url>`. Visual fidelity still
requires visual review. If no approved template fits, report the FDS gap.

Documentation

Examples and MCP prompts use synthetic freight data only. Do not send customer, shipment, invoice, credential, or production data through the hosted MCP.

Repository layout

Status

The packages remain pre-1.0 releases. Review the component changelog before upgrading.

License

Repository source and package artifacts are licensed under Apache-2.0.