Skip to content

drivenets/design-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

851 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DriveNets Design System

Structure

This monorepo contains the following packages:

Package Description
@drivenets/design-system The core design system package
@drivenets/eslint-plugin-design-system ESLint plugin for enforcing design system rules
@drivenets/vite-plugin-design-system Vite plugin for integrating the design system
@drivenets/commitlint-plugin-internal Commitlint plugin for enforcing internal commit conventions
@drivenets/eslint-plugin-internal ESLint plugin for enforcing internal conventions & coding standards
@drivenets/design-system-mcp MCP server exposing Storybook component docs to AI clients (packages/mcp)

Storybook Deployment

Storybook

Storybook is automatically deployed to GitHub Pages on every PR merge to the default branch. Each deployment commit contains the corresponding source commit hash for reference.

Development

Prerequisites

  • Node 24+
  • pnpm 11+

We recommend fnm, nvm, or mise to manage these versions.

Getting Started

git clone https://github.com/drivenets/design-system
cd design-system
pnpm install

Available Scripts

Development

Script Description
pnpm start Start local Storybook server
pnpm format Format the codebase
pnpm lint Lint the codebase
pnpm typecheck Run TypeScript type checking
pnpm test Test all packages
pnpm build Build all packages
pnpm changelog Interactively add a changelog entry

CI (run automatically per PR)

Script Description
pnpm lint:spell Check for spelling errors
pnpm lint:versions Ensure consistent package versions
pnpm lint:unused Detect unused code and dependencies

Development Workflow

  1. Create a new branch for your feature or bugfix.
  2. Make your changes, running the relevant scripts locally (lint, test, typecheck).
  3. Commit using Conventional Commits (e.g., feat(design-system): add new button component [TICKET-ID]).
  4. Add a changelog entry with pnpm changelog. See Intro to Using Changesets and Adding a Changeset for details. If your change doesn't require a release, add the skip changelog label to the PR instead.
  5. Push your branch and open a pull request.

Note

Since we squash-merge, only the PR title is validated as a Conventional Commit message -- don't worry about individual commit messages.


AI development

LLM skills and subagents live in this repo.

  • docs/agents/README.md — agent doc index
  • AGENTS.md — checkers and skill catalog
  • CONTEXT.md — design-system vocabulary for agents (Component, Variant, Locale, …); glossary only, not how-to
  • docs/adr/ — load-bearing decisions agents must not contradict (primitive stack, props layer, interaction testing, doc layout)

DS MCP (@drivenets/design-system-mcp)

Stdio MCP server for Storybook manifests (props, stories, guidelines, snippets). Full setup: packages/mcp/README.md.

  • Publishednpx @drivenets/design-system-mcp (GitHub Pages manifests)
  • Localpnpm start, then MCP with --manifests-url http://localhost:6006 (details)
    • before that run pnpm --filter @drivenets/design-system-mcp build
{
  "mcpServers": {
    "drivenets-ds": {
      "command": "npx",
      "args": ["-y", "@drivenets/design-system-mcp"]
    },
    "drivenets-ds-local": {
      "command": "node",
      "args": [
        "packages/mcp/dist/cli.js",
        "--manifests-url",
        "http://localhost:6006"
      ]
    }
  }
}

Technologies

Category Tools
Monorepo Turborepo
Package Manager pnpm
Linting ESLint + TypeScript ESLint
Type Checking TypeScript
Formatting Oxfmt
Testing Vitest + Browser Mode + Playwright
Building tsdown + React Compiler + Sass Embedded
Package Validation publint + attw
Documentation Storybook
Unused Code Detection Knip
Dependency Consistency Syncpack
Spell Checking CSpell
Commit Linting Commitlint + custom plugin for JIRA
Changelog & Releases Changesets
Security CodeQL via GitHub Actions

About

DriveNets design system monorepo, contains all the design system related packages

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors