Skip to main content
Portable
Design
System
Documentation

Overview

Installation

1. Authenticate via NPM

To ensure you can install private Portable packages, login to our GitHub repo via NPM:

(This only has to be done once per computer, skip this step if you’ve already done this)

npm login --registry=https://npm.pkg.github.com

When prompted for “Username”, enter your GitHub username.

When prompted for “Password”, enter a “Personal Access Token”.
To generate a token follow these instructions:

Finally, when prompted for “Email” enter your Portable email address.

2. Add pds-styles to your project

Create an .npmrc file in your project root with the following contents:

@portablestudios:registry=https://npm.pkg.github.com

Install pds-styles to your package.json:

npm install @portablestudios/pds-styles
# or
yarn add @portablestudios/pds-styles
# or
pnpm add @portablestudios/pds-styles

Usage

<link rel="stylesheet" href="/path/to/styles.css" />

Done! 🎉

… seriously that’s it, it’s just a CSS file. No more, no less.

Repo structure

This is the structure of the PDS Styles repo.