Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to change tailwind default style option?

I'm building a blog in NextJS. Apparently in Tailwind's list style type the default style is list-none. So every <ul> <li> elements in my app is not styled at all.

I use remark to process .md files and my function returns <ul> <li> without classes so in this case I can't specify the classes by manually writing them.

  • Is there any way to change this default styling so my <ul> <li> is not plain text?
  • or is there any way to give a list-disc class to all <ul> <li>?
  • or is there any way to exclude certain <div>s from being styled by Tailwind?
  • other approach?

I tried this

// tailwind.config.js
  module.exports = {
    corePlugins: {
      // ...
     listStyleType: false,
    }
  }

but it doesn't solve the problem.

Any help would be appreciated.

like image 850
danzel artamadja Avatar asked Oct 18 '25 18:10

danzel artamadja


1 Answers

You can disable the tailwind default nomalized stylings (preflight) from the tailwind.config.js like this:

module.exports = {
  corePlugins: {
    preflight: false,
  }
};
like image 67
Ray1618 Avatar answered Oct 21 '25 07:10

Ray1618



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!