Black Friday Super Sale!Limited Time 50% OFF for All-Access Plans
Save 50% Now

Dark and Light Modes


After doing multiple validations, it seems that dark: attribute is being ignored. So if i use
<h1 class="text-3xl font-bold text-primary dark:text-white">
i will always get text-primary in light and dark mode.

what i want is to define two colors that will work in light and dark mode. Thus:
<h1 class="text-3xl font-bold text-gray-900 dark:text-white">
must give primary(blue) in light mode and white in dark mode.

Is this possible?

Thank you


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (0)