Comments (3)
I kind of like the double colon (
before::block
) syntax just because it feels a bit closer to css and other css-in-js solutions. I also think it would be nice to support grouping, but I am not sure how that would look (or work) with double colons.before::(p-2 block)
?
They are supported exactly as you imagined: before::(p-2 block)
from twind.
I'm with Justin, I think the double colon idea is good and the PR indicates a 0.18% size increase, which is virtually negligible, in my eyes. I think it's a solid extension to the core and the syntax deviates just enough to act more as an added bonus rather than a substantial departure from the native Tailwind API. So I'm down with option 3.
from twind.
I'm still getting to know the library, but it seems like it wouldn't really add any weight to core by supporting these pseudo element. If that is the case, I personally like the idea of them being in core mainly just because it saves an import statement. But, the other thing I am not sure of is how close you are trying to keep the core library to Tailwind. And, obviously, this would be would another fork in the road.
I kind of like the double colon (before::block
) syntax just because it feels a bit closer to css and other css-in-js solutions. I also think it would be nice to support grouping, but I am not sure how that would look (or work) with double colons.before::(p-2 block)
?
from twind.
Related Issues (20)
- [Bug]: no w-fit HOT 1
- [Feature]: flex-shrink-* is deprecated HOT 1
- missing data HOT 1
- How to use tailwindcss plugins? HOT 3
- Is there a way to make tailwind-scrollbar plugin to work with twind? HOT 3
- [Bug]: keyframes added with injectGlobal only contain the last keyframe HOT 2
- [Bug]: Classes added with injectGlobal can't reference each other with @apply HOT 2
- [Bug]: Classes added with injectGlobal can't be used with variants HOT 2
- [Feature]: allow peer dep of typescript v5 HOT 2
- [Bug]: max-w-{number} does not work
- defineConfig / setup mixed up[Docs]:
- Template literals like className={tw`bg-green-${c}`}
- How to style host and slot elements with Lit HOT 2
- [Docs]: twind.dev is out of date and still seems active HOT 1
- [Feature]: support vars in square brackts
- [Bug]: How to extend theme in Tailwind v3.4 HOT 2
- Browser version doesn't work (non-ES module version) HOT 7
- Applying classes on Lit element CSS block HOT 1
- [Bug]: withTwind doesn't play nicely with Light DOM Lit elements
- [Bug]: Lit & Dark Mode not usable with "class" mode HOT 1
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 twind.