### Development Setup Instructions
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
Provides the necessary commands to clone the repository, navigate into the project directory, and install dependencies to set up the development environment.
```bash
# Setup
git clone https://github.com/lamnguyenkn97/spotify_design_system.git
cd spotify_design_system
npm install
```
--------------------------------
### Install Spotify Design System
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
Install the library using npm. This is the first step to using the component library in your project.
```bash
npm install spotify-design-system
```
--------------------------------
### Run Storybook for Interactive Component Development
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
Use this command to start Storybook, which allows for interactive development and testing of components in isolation. Ensure Storybook is installed as a development dependency.
```bash
npm run storybook
```
--------------------------------
### Basic App Structure with Spotify Components
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
Demonstrates how to set up a basic React application using core components like Button, Stack, Typography, and ThemeProvider from the library.
```tsx
import { Button, Stack, Typography, ThemeProvider } from 'spotify-design-system';
function App() {
return (
Welcome to Spotify
);
}
```
--------------------------------
### Build Spotify Design System for Production
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
Execute this command to create a production-ready build of the design system. This typically involves transpilation and bundling of the code.
```bash
npm run build
```
--------------------------------
### Publish to NPM
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
Use this command to publish the design system package to the NPM registry. Ensure you have the necessary permissions and have followed the build and test steps.
```bash
npm publish
```
--------------------------------
### Run Test Suite
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
This command executes the project's test suite to ensure code quality and functionality. It's recommended to run tests before committing changes.
```bash
npm run test
```
--------------------------------
### Using Design Tokens for Styling
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
Illustrates how to apply design tokens such as colors, spacing, and border-radius for consistent styling within your application. Available tokens include colors, spacing, fontSizes, borderRadius, shadows, transitions, and opacity.
```tsx
import { colors, spacing, borderRadius } from 'spotify-design-system';
Spotify Green
```
--------------------------------
### Project Structure Overview
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
Provides a high-level view of the project's directory structure, categorizing components into atoms, molecules, and organisms, and organizing styles and utilities.
```treeview
src/
├── components/
│ ├── atoms/ # 16 basic components (Button, Input, Icon...)
│ ├── molecules/ # 7 composite components (Card, Modal, Toast...)
│ └── organisms/ # 4 complex layouts (Sidebar, Footer, Header...)
├── styles/
│ ├── tokens/ # Design tokens (colors, spacing, typography)
│ └── theme.ts # Theme configuration
└── utils/ # Shared utilities
```
--------------------------------
### Component File Structure
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
Details the standard file structure for each component within the library, including logic, styling, types, Storybook documentation, tests, and public exports.
```treeview
Button/
├── Button.tsx # Component logic
├── Button.style.ts # Styled components
├── Button.types.ts # TypeScript definitions
├── Button.stories.tsx # Storybook docs
├── Button.spec.tsx # Unit tests
└── index.tsx # Public exports
```
--------------------------------
### Run Lint and Test Before Submitting Pull Request
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
Before submitting a pull request, run the linting and testing commands to ensure code quality and adherence to project standards. This helps in a smoother review process.
```bash
npm test
npm run lint
```
--------------------------------
### Create Feature Branch for Contribution
Source: https://github.com/lamnguyenkn97/spotify_design_system/blob/main/README.md
When contributing, create a new branch for your feature using Git. This isolates your changes and makes them easier to review.
```bash
git checkout -b feature/name
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.