Comments (4)
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.
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.
Thank you @HapLifeMan for investigating this issue.
as I said in other discussions I will update those utilities to logical properties.
from tailwindcss-rtl.
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)
- Support for ESM HOT 1
- why aren't the native css "text-align: start" and end used? HOT 3
- tailwind-rtl not working when the parent dir="rtl" in version 0.8.0 HOT 5
- Plugin doesn't work with Tailwind v3 HOT 5
- Tailwind 3.0 RTL Search Patterns HOT 2
- :not([dir="rtl"]) is breaking everything HOT 6
- Question: Why does this not use `border-(start|end)-(start|end)-radius`? HOT 1
- Negative inset classes not working.
- Vite support? HOT 10
- Support for arbitrary values? HOT 5
- Negative values not being generated HOT 7
- inset
- right-* left-* classes to be start-* and end-* HOT 1
- [Question] Anyone tried using `tailwindcss-rtl` along with `twin.macro`? HOT 1
- Add support for `before`, `after` and right or left values
- Add support to space-x-() HOT 1
- dependency conflict when install tailwindcss-rtl package
- does not support negative margins i.e. -ms-x
- add support for bg-end bg-start
- How to ignore the change to rtl for certain elements?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwindcss-rtl.