
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
tailwindcss-preset-px-to-rem
Advanced tools
A Tailwind CSS preset that automates the conversion of pixel values to rem units. Enhance your responsive design workflow with customizable rem dividers and easy integration into your Tailwind CSS configuration.
A Tailwind CSS preset that automates the conversion of pixel values to rem units.
Enhance your responsive design workflow with customizable rem dividers and easy integration into your Tailwind CSS configuration.
npm i tailwindcss-preset-px-to-rem
// tailwind.config.js
module.exports = {
presets: [require("tailwindcss-preset-px-to-rem")],
};
As an example, the classes applied below become available right away.
Those classes will convert from px to rem.
<div class="mt-25 p-15 max-w-640">
<h1 class="text-28">...</h1>
<p class="text-20">...</p>
<p class="text-17">...</p>
</div>
You can configure some options by using those properties in theme
object:
// tailwind.config.js
theme: {
remDivider: 20,
fontSizeLimit: 50,
spacingLimit: 100,
borderRadiusLimit: 30
}
1.2.1
FAQs
A Tailwind CSS preset that automates the conversion of pixel values to rem units. Enhance your responsive design workflow with customizable rem dividers and easy integration into your Tailwind CSS configuration.
The npm package tailwindcss-preset-px-to-rem receives a total of 127 weekly downloads. As such, tailwindcss-preset-px-to-rem popularity was classified as not popular.
We found that tailwindcss-preset-px-to-rem demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.