Skip to content

Commit 385f854

Browse files
authored
Merge pull request #20 from HugoDF/patch-1
docs: Add CDN install instructions
2 parents d806948 + 1974d1e commit 385f854

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ A plugin that provides a set of `prose` classes you can use to add beautiful typ
1212
</article>
1313
```
1414

15-
## Usage
15+
## Installation
16+
1617

1718
Install the plugin from npm:
1819

@@ -39,6 +40,29 @@ module.exports = {
3940
}
4041
```
4142

43+
### Using a CDN
44+
45+
If you need to pull in these styles via CDN, you can do so using services like UNPKG or jsDeliver:
46+
47+
```html
48+
<!-- From UNPKG -->
49+
<link rel="stylesheet" href="https://unpkg.com/@tailwindcss/[email protected]/dist/typography.min.css">
50+
51+
<!-- From jsDelivr -->
52+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tailwindcss/[email protected]/dist/typography.min.css">
53+
```
54+
55+
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:
56+
57+
```html
58+
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@^1.5/dist/base.min.css">
59+
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@^1.5/dist/components.min.css">
60+
<link rel="stylesheet" href="https://unpkg.com/@tailwindcss/[email protected]/dist/typography.min.css">
61+
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@^1.5/dist/utilities.min.css">
62+
```
63+
64+
## Usage
65+
4266
Now you can use the `prose` classes to add sensible typography styles to any vanilla HTML:
4367

4468
```html

0 commit comments

Comments
 (0)