
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@unifydev/unify-variant
Advanced tools
Variant for differents Components UI Libraries.
This is a preset package that provides variants for Components Libraries based on data-state attribute value, and help to create custom variant selector.
Generate variants selector based on data-state attribute, however you can use it with other data-* attributes like (data-state="john" then fx-john:p4)
fx-open:bg-red : will be applied if element has data-state='open'
Easily create custom variants for browser selector like ::moz-* ::webki...
npm i -D @unifydev/unify-preset
or
yarn add @unifydev/unify-preset -D
Or
bun add @unifydev/unify-preset -d
In you uno.config.(js|ts) :
...
// import the packages
import {dataStateVariants, browserVariants} from '@unifydev/unify-variant'
export default defineConfig({
// ...config
variant:[
dataStateVariants({
prefix: 'fx', // prefix, you can use whatever you want as prefix
variants: "visible|hidden|active|inactive|open|close|resize|minimize|maximaze", // indicate all values, those values will help to generate variant
selector: "data-state" //Indicate the data-attribute to be used
}),
browserVariants({
variants: {
"meter-inner-el": "::-webkit-meter-inner-element",
"meter-optimum-val": "::-webkit-meter-optimum-value",
"metter-bar": "::-webkit-meter-bar",
"moz-meter-bar": "::-moz-meter-bar"
}
}),
]
});
Now you can use :
metter-bar:bg-redIf you're interested in contributing to Unify-UI, please read our contributing docs before submitting a pull request.
Contribute, collaborate, and become a part of our mission 🚀
If you like this project and want to support us, feel free to get in touch with one of maintainers :
FAQs
UnoCSS Variants
The npm package @unifydev/unify-variant receives a total of 12 weekly downloads. As such, @unifydev/unify-variant popularity was classified as not popular.
We found that @unifydev/unify-variant demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.