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:
291
+
For Tailwind v3, update the `typography` section in the JavaScript config file and provide your colors under the `css` key:
261
292
262
293
```js {{ filename: 'tailwind.config.js' }}
263
294
/**@type{import('tailwindcss').Config}*/
@@ -338,7 +369,15 @@ Now every instance of `prose` in the default class names will be replaced by you
338
369
339
370
### Customizing the CSS
340
371
341
-
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:
372
+
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:
373
+
374
+
```diff
375
+
@import"tailwindcss";
376
+
@plugin "@tailwindcss/typography";
377
+
+@config "./tailwind.config.js";
378
+
```
379
+
380
+
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