Skip to content

Commit 1974d1e

Browse files
authored
Update README.md
1 parent f06d7d2 commit 1974d1e

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

README.md

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

15-
## Usage
15+
## Installation
1616

1717

18-
**From npm:** Install the plugin from npm:
18+
Install the plugin from npm:
1919

2020
```sh
2121
# Using npm
@@ -40,21 +40,28 @@ module.exports = {
4040
}
4141
```
4242

43-
**From CDN**: Add the following stylesheet link:
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:
4446

4547
```html
46-
<link rel="stylesheet" href="https://unpkg.com/@tailwindcss/[email protected]/dist/typography.min.css">
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">
4753
```
4854

49-
If you're using the rest of Tailwind via CDN, here's the recommended usage:
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:
5056

5157
```html
52-
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@1.4.6/dist/base.min.css">
53-
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@1.4.6/dist/components.min.css">
54-
<link rel="stylesheet" href="https://unpkg.com/@tailwindcss/typography@0.1.x/dist/typography.min.css">
55-
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@1.4.6/dist/utilities.min.css">
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/typography@0.2.x/dist/typography.min.css">
61+
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@^1.5/dist/utilities.min.css">
5662
```
5763

64+
## Usage
5865

5966
Now you can use the `prose` classes to add sensible typography styles to any vanilla HTML:
6067

0 commit comments

Comments
 (0)