Skip to content

puppetlabs/design-system

Puppet Design System

The Puppet Design System represents the behaviors, components, principles and visual presentation we share. It is based on our objective to provide consistency, efficiency, and quality experiences to our customers. With it, we scale design across departments, products, platforms, and time zones.

Visit the documentation and living styleguide at https://puppetlabs.github.io/design-system.

Quick start

Prerequisites

Currently, a POSIX environment like macOS or Linux is required for development. (For Windows, you can use Windows Subsystem for Linux.) You must install the version of Node specified in .nvmrc. We recommend using nvm (Node Version Manager), which allows you to nvm install the specified version and nvm use the specified version in the current shell (or nvm alias default to use the specified version in all new shells).

Local sandbox

The primary development environment uses Styleguidist (which is what is also hosted at https://puppet.style). You can run it locally to view the docs and play around with components using live editable code:

git clone [email protected]:puppetlabs/design-system.git && cd design-system
npm install
npm start

With an existing app

To add the main package, @puppet/react-components, to an existing project:

npm install @puppet/react-components

New app from scratch

To try out the design system from scratch, generate a new project with uikit:

npm install -g @puppet/uikit
uikit generate project my-project

Add components

import { Button } from '@puppet/react-components';
<Button>Hello world!</Button>

Use common styles

To use public Sass variables, add @puppet/sass-variables to your project:

npm install @puppet/sass-variables

Reference the public variables from your Sass files:

@import '~@puppet/sass-variables/index';
.my-text {
  color: $puppet-amber;
}

Note: See the Getting Started guide for a longer walkthrough with examples of using the uikit, React components, Sass variables, and other packages.

Packages

The Puppet Design System includes:

Contribute

The Puppet Design System is a cross-functional team effort across Puppet with shared ownership where contributions are welcome and encouraged. Read more in CONTRIBUTING.md.

Feedback

We are continuing to iterate on the Puppet Design System and appreciate your feedback and questions. Feel free to create an issue, pull request, or contact [email protected]. Puppet employees can follow along in Slack (#team-design-system) or Jira (PDS).

Release Notes

See the changelog for each package, like react-components' CHANGELOG.md.