Comments (5)
I am ok having it to align with tailwind, PR welcome
from unocss.
I implemented this in unocss-preset-useful.
Check the test case. https://github.com/unpreset/unocss-preset-useful/blob/60df1b3f0c59475637dc6b4b10bbaf69c995edbd/test/postprocess.test.ts#L39-L61
from unocss.
We provide postprocess
hook, I guess you can handle it yourself?
from unocss.
I want to add #root .atomic
selector before the atomic classname. Let me try whether I can figure it out using variant.
from unocss.
@antfu Wondering whether you want it in preset-wind
or preset-mini
?
Also, beyond the tailwind behavior (which I will introduce an option called important: boolean | string
) which will apply globally, I also want to introduce something like ancestor-xxx:yyy
variant to partially opt-in.
E.g. ancestor-#root:m-4
will be #root .m-4 { ... }
, ancestor-[#root_>_#container_>]:p-2
will be #root > #container > .p-2
Any thoughts on this (e.g. the variant naming)? If you approve, would you like me to do it in the same PR or separately?
from unocss.
Related Issues (20)
- Output layers as CSS Cascade Layers [re-request] HOT 1
- UnoCSS custom rule take what is inside sveltekit page <style>
- Deleting token in a transformer causing hmr error in nuxt HOT 1
- Used in conjunction with Vue3's: deep() Or @apply/-- at apply: supports v-bind() HOT 1
- Shortcuts cannot be put on other layers
- Difference between initUnocssRuntime and uno.config.ts
- UnoCSS extension isn't suggesting colors right HOT 2
- RollupError: [unocss] does not found CSS placeholder in the generated chunks HOT 1
- Docs: Ability to Disable Rainbow Text
- col-start- and col-end- dose not work HOT 1
- unocss loading triggers a Google Chrome bug? HOT 4
- Extension host crash caused by uniCss
- Custom option: discardComments
- Variant popover-open: HOT 1
- Vite error with inlineImports: false
- @unocss/webpack 开启 watch 时报错 HOT 2
- Feature: Supports definePreset async HOT 1
- Issue with UnoCSS theme function returning non-color value HOT 1
- ERR_PNPM_NO_MATCHING_VERSION No matching version found for @unocss/[email protected] HOT 2
- https://unocss.dev/interactive/ error
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 unocss.