Git Product home page Git Product logo

Comments (3)

muhammadsammy avatar muhammadsammy commented on June 5, 2024 1

both transition and transition-default should be in the type.

From the theme configuration, I see

You'll notice that using a key of default in the theme configuration created the class rounded with no suffix. This is a common convention in Tailwind supported by many (although not all) of the core plugins.

The fact that it's not supported by all core plugins is annoying, Maybe you can manage a blacklist of plugins, and auto-add the no-suffix type for all plugins not listed in that blacklist?

The missing transition type has been added. I could remove the default suffix from all types, but this will not be correct for other classes that have the default suffix, so I've opened a discussion on thier repo asking about this.

from tailwindcss-classnames.

muhammadsammy avatar muhammadsammy commented on June 5, 2024 1

The CLI now removes default suffix from all types except those I know to have it (cursor-default).
Classes of transition property don't seem to be keeping the default suffix because the value of default key in transitionProperty in the default tailwind config is the same as for the .transition class.

I will add more here once they list those to have the suffix.
If you know any specific classnames that keep the default suffix, please create a PR!

from tailwindcss-classnames.

muhammadsammy avatar muhammadsammy commented on June 5, 2024 1

This issue has been resolved by using 'DEFAULT' for classes that does not have the suffix and using 'default' to kepp the suffix in the classname (tailwindlabs/tailwindcss#2580)

Which is covered by this PR #70

from tailwindcss-classnames.

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.