-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from HugoDF/patch-1
docs: Add CDN install instructions
- Loading branch information
Showing
1 changed file
with
25 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -12,7 +12,8 @@ A plugin that provides a set of `prose` classes you can use to add beautiful typ | |
</article> | ||
``` | ||
|
||
## Usage | ||
## Installation | ||
|
||
|
||
Install the plugin from npm: | ||
|
||
|
@@ -39,6 +40,29 @@ module.exports = { | |
} | ||
``` | ||
|
||
### Using a CDN | ||
|
||
If you need to pull in these styles via CDN, you can do so using services like UNPKG or jsDeliver: | ||
|
||
```html | ||
<!-- From UNPKG --> | ||
<link rel="stylesheet" href="https://unpkg.com/@tailwindcss/[email protected]/dist/typography.min.css"> | ||
|
||
<!-- From jsDelivr --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tailwindcss/[email protected]/dist/typography.min.css"> | ||
``` | ||
|
||
To use these styles alongside the rest of Tailwind via CDN, we recommend pulling in each layer separately so you can put the styles in the correct order: | ||
|
||
```html | ||
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@^1.5/dist/base.min.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@^1.5/dist/components.min.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/@tailwindcss/[email protected]/dist/typography.min.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@^1.5/dist/utilities.min.css"> | ||
``` | ||
|
||
## Usage | ||
|
||
Now you can use the `prose` classes to add sensible typography styles to any vanilla HTML: | ||
|
||
```html | ||
|