Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve customizability and v3 color support #216

Merged
merged 26 commits into from
Nov 7, 2021

Conversation

adamwathan
Copy link
Member

This PR is too big.

  • Makes all previous color modifiers (prose-red) explicit entries in the theme with no magic (minor breaking change)
  • Adds new color modifiers for the v3 alternate grays (prose-slate, prose-gray, prose-zinc, prose-neutral, prose-stone) to make it easy to style your typography to match the grays you are using on the rest of your site
  • Adds new prose-invert class for easy dark mode support (prose dark:prose-invert)
  • Abstracts colors behind variables to make adding a custom color modifier simpler
  • Drops use of pseudo-elements in ul and ol elements for native ::marker pseudo (breaking change for anyone customizing bullets/counters using the old selectors)
  • Adds a suite of element variants for targeting prose children, like prose-headings:text-black and prose-img:rounded-lg
  • Rips out all of the old snapshot tests for simpler, more direct tests

I wish this PR were smaller so I had the motivation to write more about these changes but you'll just have to look at the tests or wait for updated documentation/release notes 🙊

@vercel
Copy link

vercel bot commented Nov 5, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tailwindlabs/tailwindcss-typography/4C5E9ZTRPxtL7EHg4wjRFPg7EY5w
✅ Preview: https://tailwindcss-typography-git-new-customization-api-tailwindlabs.vercel.app

@adamwathan adamwathan merged commit b3e8c22 into master Nov 7, 2021
@adamwathan adamwathan deleted the new-customization-api branch November 7, 2021 15:45
@pspeter3 pspeter3 mentioned this pull request Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants