Prerequisites: GitHub Package Manager Authentication
Before installing the package, you need to authenticate with GitHub Package Manager.Generate a GitHub Personal Access Token (PAT)
- Go to GitHub Settings > Developer Settings > Personal Access Tokens
- Click “Generate new token (classic)”
- Give it a descriptive name (e.g., “NPM Package Access”)
- Select the
read:packagesscope (required for installing packages) - Click “Generate token” and copy the token
- Click Configure SSO
- Select your organization and click “Authorize”
Configure NPM Authentication
Create or update your.npmrc file in your project root:
YOUR_GITHUB_TOKEN with your actual token.
Alternative: Login via command line
- Never commit
.npmrcfiles containing tokens to version control - Add
.npmrcto your.gitignoreif it contains sensitive data - Use environment variables in CI/CD pipelines
For detailed authentication setup and troubleshooting, see the Migration
Guide.
Step 1: Install the design system package
Once authenticated, install the@strongtie/design-system package from GitHub Package Manager. This package contains the necessary components and styles to get you started.
Step 2: Add the CSS
In your App.js or main entry file add the following line:Step 3: Use a Component
Troubleshooting
Authentication Issues
If you encounter 401 Unauthorized errors:- Verify your GitHub token has
read:packagesscope - Check that your
.npmrcis configured correctly - Ensure your token hasn’t expired
- Try logging in again with the command line method
Package Not Found
If npm can’t find the package:- Verify the registry is set correctly:
Should return:
https://npm.pkg.github.com - Ensure you have access to the repository
- Check that you’re authenticated properly