I’m trying to change the default list style position to list-inside for both ol and ul elements. I would also like to change the color of the disc or number to match the default text.
I want to change it across my entire site, but mostly want it changed for my posts.
Here is one of my current posts with both list types.
You’re probably best changing this in the tailwind.config.js but it depends a little. The blog posts use Tailwind Typography so you can customise that through the config like this:
That’ll change the base CSS settings in the typography plugin. If you want to change it in other places too you can use the css section to do that, but just be sure to take care how you apply those rules. Lists are used in many places on the site ( e.g. pagination, navigation, etc ) so setting a global ol { list-style: ... } may not be what you’re after.