Skip to content

Commit f06d7d2

Browse files
authored
Adds CDN install instructions
1 parent 4be652d commit f06d7d2

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ A plugin that provides a set of `prose` classes you can use to add beautiful typ
1414

1515
## Usage
1616

17-
Install the plugin from npm:
17+
18+
**From npm:** Install the plugin from npm:
1819

1920
```sh
2021
# Using npm
@@ -39,6 +40,22 @@ module.exports = {
3940
}
4041
```
4142

43+
**From CDN**: Add the following stylesheet link:
44+
45+
```html
46+
<link rel="stylesheet" href="https://unpkg.com/@tailwindcss/typography@0.1.x/dist/typography.min.css">
47+
```
48+
49+
If you're using the rest of Tailwind via CDN, here's the recommended usage:
50+
51+
```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">
56+
```
57+
58+
4259
Now you can use the `prose` classes to add sensible typography styles to any vanilla HTML:
4360

4461
```html

0 commit comments

Comments
 (0)