GithubHelp home page GithubHelp logo

Comments (4)

HapLifeMan avatar HapLifeMan commented on June 1, 2024

Same problem here, I've started using these new classes into CSS files directly and I get this error. I searched the whole day on the internet but found nothing. Do you have any idea?

(I'm also using the same stack as the demo: Nuxt)

from tailwindcss-rtl.

HapLifeMan avatar HapLifeMan commented on June 1, 2024

Unfortunately we would not be able to have it working if we want to add these classes in CSS files directly. That's because the selectors generated by the plugin are too complex and can't be handled by the @apply rule: tailwindlabs/tailwindcss#1344 (comment).

As I really want to have an easy way to change directions of my appp, I will fork this repo then change the selectors and properties generated by using the CSS logical properties to have it working with a single rule in both directions and also with @apply rules:

  • margin-inline-start
  • margin-inline-end
  • padding-inline-start
  • padding-inline-end

I don't need the other utilities so it will be a good start!

from tailwindcss-rtl.

20lives avatar 20lives commented on June 1, 2024

Thank you @HapLifeMan for investigating this issue.
as I said in other discussions I will update those utilities to logical properties.

from tailwindcss-rtl.

20lives avatar 20lives commented on June 1, 2024

I have just updated the plugin to use logical properties, so this should be working now if anyone cares to try.

from tailwindcss-rtl.

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.