@@ -12,10 +12,10 @@ A plugin that provides a set of `prose` classes you can use to add beautiful typ
12
12
</article >
13
13
```
14
14
15
- ## Usage
15
+ ## Installation
16
16
17
17
18
- ** From npm: ** Install the plugin from npm:
18
+ Install the plugin from npm:
19
19
20
20
``` sh
21
21
# Using npm
@@ -40,21 +40,28 @@ module.exports = {
40
40
}
41
41
```
42
42
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:
44
46
45
47
``` 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" >
47
53
```
48
54
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 :
50
56
51
57
``` 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" >
56
62
```
57
63
64
+ ## Usage
58
65
59
66
Now you can use the ` prose ` classes to add sensible typography styles to any vanilla HTML:
60
67
0 commit comments