Skip to content

Repository files navigation

CC Design System

A monorepo design system built with Stencil web components, Style Dictionary design tokens, and Storybook.

Packages

Package Description
packages/tokens Design tokens (color, spacing, typography) → compiled to CSS variables
packages/components Stencil web components
apps/storybook Storybook component explorer

Prerequisites

  • Node.js ≥ 18
  • pnpm ≥ 8 — npm install -g pnpm

Getting started

# Install dependencies
pnpm install

# Build everything (tokens → components → storybook)
pnpm build

# Start all packages in watch/dev mode
pnpm dev

# Launch Storybook (runs on http://localhost:6006)
pnpm storybook

Common commands

# Run all tests
pnpm test

# Lint all packages
pnpm lint

# Format all files
pnpm format

# Generate a new component (inside packages/components)
cd packages/components && pnpm generate

# Add a changeset before publishing
pnpm changeset

Repo structure

cc-design-system/
├── apps/
│   └── storybook/          # Storybook app
├── packages/
│   ├── tokens/             # Style Dictionary token sources + build
│   └── components/         # Stencil web components
├── .changeset/             # Changesets for versioning & release
├── turbo.json              # Turborepo pipeline config
└── pnpm-workspace.yaml     # pnpm workspace config

About

playing around with AI, stencil and storybook

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages