Installation
-
Create a new
Personal Access Tokenon GitHub- Open GitHub.com
- Click on your profile picture in the top right corner
- Go to
Settings>Developer settings>Personal access tokens>Tokens (classic)>Generate new token>Generate new token (classic) - Enter a name for the token (e.g.
PROJECT-NAME_GLOWUP_DESIGN_SYSTEM) - Select an expiration
- Select the
read:packagesscope - Click on
Generate token
You now have a
Personal Access Tokenthat will allow you to install the private library. -
Add the
GITHUB_TOKENto your environment variablesAdd the following line to the
.devcontainer/.env.localfile :.devcontainer/.env GIT_NAME=nameGITHUB_TOKEN=your_personal_access_tokenAI_CHAT_MODEL=claude-3-5-sonnet-20240620AI_CHAT_PROVIDER=anthropicAI_CHAT_TOKEN=your_ai_chat_tokenAI_COMPLETION_MODEL=codestral-latestAI_COMPLETION_PROVIDER=mistralAI_COMPLETION_TOKEN=your_ai_completion_token -
Install the Design System library
Terminal npm i @behavy/glowup-design-systemTerminal yarn add @behavy/glowup-design-systemTerminal pnpm add @behavy/glowup-design-system -
Import and use the components of your choice
src/app.html <!doctype html><html lang="en"><html lang="en" class="design-system"><head><meta charset="utf-8" /><link rel="icon" href="%sveltekit.assets%/favicon.png" /><meta name="viewport" content="width=device-width, initial-scale=1" />%sveltekit.head%</head><body data-sveltekit-preload-data="hover"><div>%sveltekit.body%</div></body></html>src/example.ts <script lang='ts'>// ...import { Component } from '@behavy/glowup-design-system';</script><Component /><style>/* ... */</style>