-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add installation instructions to storybook
- Loading branch information
1 parent
3dab9fa
commit 87dd01c
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"; | ||
``` |