railwind icon indicating copy to clipboard operation
railwind copied to clipboard

Add `prose`, `prose-<size>` and `prose-<color>` classes

Open nokome opened this issue 3 years ago • 1 comments

This PR implements the prose, prose-<size> and prose-<color> classes of the Tailwind typography plugin (https://tailwindcss.com/docs/typography-plugin).

This is currently a draft PR as I'd like to get feedback on the approach I've taken before finishing it off (adding the non-default gray scales and sizes).

I haven't yet considered how to implement:

  • https://tailwindcss.com/docs/typography-plugin#adapting-to-dark-mode, or
  • https://tailwindcss.com/docs/typography-plugin#element-modifiers

nokome avatar Apr 03 '23 01:04 nokome

I'm not exactly sure how to implement plugins. Generally I think they shouldn't be tied to the core compiler but somehow separated so that you can have your own plugin without needing to rewrite the core logic.

pintariching avatar Apr 11 '23 17:04 pintariching