You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can then create your own color theme by adding a new `tailwind.config.js` file with the `typography` section and providing your colors under the `css` key:
294
+
For Tailwind v3, update the `typography` section in the JavaScript config file and provide your colors under the `css` key:
264
295
265
296
```js {{ filename: 'tailwind.config.js' }}
266
297
/**@type{import('tailwindcss').Config}*/
@@ -341,7 +372,15 @@ Now every instance of `prose` in the default class names will be replaced by you
341
372
342
373
### Customizing the CSS
343
374
344
-
If you want to customize the raw CSS generated by this plugin, first follow the steps from [adding custom color themes](#adding-custom-color-themes) to set up a JavaScript based configuration API and then add your overrides under the `typography` key in the `theme` section of your `tailwind.config.js` file:
375
+
If you want to customize the raw CSS generated by this plugin, you can use the JavaScript based theme API. To do that, use the `@config` directive:
376
+
377
+
```diff
378
+
@import"tailwindcss";
379
+
@plugin "@tailwindcss/typography";
380
+
+@config "./tailwind.config.js";
381
+
```
382
+
383
+
You can then create your own config by adding a new `tailwind.config.js` file with the `typography` section and providing your styles under the `css` key:
0 commit comments