Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
attrcss
Advanced tools
Readme
<div data-backgroundColor="white">
<h1 data-color="gray.900">attrCSS</h1>
</div>
This command generates an attr.css
file that can be used in your project:
npx attrcss build
Import the generated CSS file in your project, and start using data attributes:
<div data-backgroundColor="white">
<h1 data-color="gray.900">attrCSS</h1>
</div>
# yarn
yarn add -D attrcss
# npm
npm i -D attrcss
Then run it using attrcss build
.
-i
, --input
Specify a custom .json
theme file. Your theme will be merged with the default one.
It must follow this structure:
{
"prefix": "",
"separator": ".",
"theme": {
"something": {
"extend": ["colors", "spacing", "-spacing"],
"alias": ["someone"],
"valueName1": "value",
"valueName2": "value"
}
},
"variants": {}
}
data-
gray.900
"-spacing"
results in negative values.something
. Will be used for creating data properties.responsive
or any other CSS pseudo class.-o
, --output
You can specify a custom output file here. It must be a CSS file.
PS. Use PurgeCSS!
PPS. This is functional, but I never tried it in production. 🦦
PPPS. The code is a bit messy. I was kinda bored ._.
FAQs
TailwindCSS using data attributes
The npm package attrcss receives a total of 5 weekly downloads. As such, attrcss popularity was classified as not popular.
We found that attrcss demonstrated a not healthy version release cadence and project activity because the last version was released 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.