Comments (3)
Hi @neefrehman @sillyleo, thanks for the feedback.
This is caused by the default merging rules of tailwind-merge
and we are using tailwind-merge
to resolve class name conflicts.
To resolve this issue, you could simply place leading-
after text-
, or refer to the docs for customizing merge rules.
Refer to dcastil/tailwind-merge#218 (comment)
from tailwind-variants.
Thanks @tianenpang! I hadn't clocked the tailwind-merge section in the documentation. Happy to close this issue based on your comments.
from tailwind-variants.
Same here. It took me 6 hours+ to figure out what I was doing wrong... turns out it's not me. For me it's text-size classes.
from tailwind-variants.
Related Issues (20)
- Extending order HOT 1
- Problem using the VariantProps type HOT 1
- Type error on build after upgrading to v0.2 HOT 1
- Responsive Variants Ordering Incorrectly HOT 3
- custom tw height is not overwritten correctly HOT 1
- cnBase and tailwind-merge HOT 1
- TypeScript Variants Type Information Lost When Extending HOT 5
- Webstorm (intelisense) seems to not work correctly with variants and slots HOT 1
- SSR doesnt seems to work HOT 2
- TypeScript responsive variants missing custom screens on Vercel HOT 10
- Tailwind class overrides mistakenly HOT 2
- Errors During Building for Production HOT 1
- Consume const tv = createTV(...) on external package HOT 1
- WithTV crashes when bundling with Rollup and TSDX HOT 1
- Warning: The engine "pnpm" appears to be invalid
- Using responsive props weird behavior when using it as ui library
- compoundSlots broken with extend HOT 3
- Custom Tailwind theme variables are not applied if a different modifier is being applied to the same keyword (text-white + text-custom) HOT 4
- We have decided to offer an alternative project from this project HOT 2
- Missing examples in docs
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 tailwind-variants.