-
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.
- Loading branch information
1 parent
65bf88f
commit 9fa2d4f
Showing
1 changed file
with
4 additions
and
33 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 |
---|---|---|
@@ -1,36 +1,7 @@ | ||
import { Meta, Title } from "@storybook/blocks"; | ||
import { Markdown, 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: | ||
import ReadMe from "../README.md?raw"; | ||
|
||
```html | ||
<head> | ||
<link | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/iati.min.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: | ||
<Meta title="Get Started" /> | ||
|
||
```javascript | ||
import "iati-design-system/dist/css/iati.css"; | ||
``` | ||
<Markdown>{ReadMe}</Markdown> |