I want to add a reader mode which is different from light and dark for example
<div class="text-white dark:text-black reader:text-yellow-100"><div>
I want to add a reader mode which is different from light and dark for example
<div class="text-white dark:text-black reader:text-yellow-100"><div>
You could consider creating a Tailwind plugin that adds a new variant called
reader
that modifies a selector for when it should apply. For example, ifreader:
should apply when a parent element has areader
class: