Giter VIP home page Giter VIP logo

Comments (1)

RobinMalfait avatar RobinMalfait commented on July 30, 2024

Hey! Thank you for your bug report!
Much appreciated! 🙏

One thing you can do is use the important: "#app" for example: https://play.tailwindcss.com/4skJYf6Q10 the downside is that all of your tailwind classes now require this root #app. Read more about this here: https://tailwindcss.com/docs/configuration#selector-strategy

If you want to up the specificity just for the .prose class you could change the className option: https://play.tailwindcss.com/PpEms9OVwC?file=config

This might look a bit strange at first, however the className is without the . so this means if you want to attach an id to it, you have to do something like prose#app.prose. The reason why I also attached the last #app.prose in there, is because if you have modifiers (xs, sm, ...) it will attach it to the className. So with just prose#app this would become .prose#app-xl instead of .prose#app.prose-xl.

This has the added benefit that your specificity increases. If you don't want to deal with an id, and just up the specificity by using multiple classes, then you could use className: 'prose.prose.some-other-class.prose'. You can go as crazy as you want.

from tailwindcss-typography.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.