Skip to content

craftzing/design-system

Repository files navigation

DesignSystem

This repository contains an example setup for a web components-based design system.

Getting started

  1. Clone this repository.
git clone [email protected]:craftzing/design-system.git
cd design-system
  1. Install dependencies
npm install

Usage

Storybook

Storybook provides an isolated environment to develop and test UI components in a design system. It allows for interactive documentation and testing of components.

Storybook is set up in a separate lib and will render a collection of all components in the monorepo.

Start storybook development environment.

npm run storybook

Build your storybook instance.

npm run build-storybook

NX

NX is a powerful monorepo tool that helps developers manage multiple projects efficiently. It provides a structured, scalable, and optimized workflow for developing and maintaining a design system.

Run the following command to create a new lib.

npx nx g @nx/js:lib libs/mylib

Lit

This library uses Lit to build components.

Lit is a simple yet powerful library for building fast, lightweight, and reusable web components. It builds upon the Web Components standard and offers an efficient rendering system with minimal boilerplate code.

See button component for a complete example.

Chromatic

Chromatic is a visual testing and review platform for UI components. It enables developers to catch visual regressions early by comparing UI snapshots over time.

Create a new build.

npm run chromatic

Review UI changes in the Chromatic dashboard.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •