Skip to content

Commit

Permalink
docs: Add installation instructions to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed May 15, 2024
1 parent 3dab9fa commit 87dd01c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,34 @@ import { Meta, Title } from "@storybook/blocks";
<Meta title="Get Started" />

<Title>IATI Design System</Title>

## Installation

There are multiple ways to use the IATI Design System CSS in your product:

### Option 1: CDN

1. Add a link to the CSS in the `<head>` section of your HTML page:

```html
<head>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/iati.css"
rel="stylesheet"
/>
</head>
```

### Option 2: NPM

1. Install the package with NPM:

```
npm install iati-design-system
```

2. The CSS can be imported from the following location:

```javascript
import "iati-design-system/dist/css/iati.css";
```

0 comments on commit 87dd01c

Please sign in to comment.