
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@backto/theme-json-to-tailwind-config
Advanced tools
A Tailwind plugin that automatically syncs WordPress theme.json spacing values with your Tailwind configuration
A Tailwind CSS plugin that automatically synchronizes spacing values from your WordPress theme.json file with your Tailwind configuration.
theme.json and Tailwind confignpm install @backto/theme-json-to-tailwind-config
In your tailwind.config.js:
js
const themeJson = require('./PATH_TO_YOUR_THEME/theme.json');
import themeJsonToTailwind from '@backto/theme-json-to-tailwind-config';
module.exports = {
content: [
// your content configuration
],
plugins: [
themeJsonToTailwind({
themeJson: themeJson
})
]
}
Define your spacing values in your theme.json:
{
"settings": {
// ...
"spacing": {
//..
"spacingSizes": [
//..
{
"name": "Extra small",
"slug": "xs",
"size": "1.25rem"
},
{
"name": "Small",
"slug": "sm",
"size": "2rem"
}
]
}
}
}
The plugin automatically generates Tailwind utility classes based on your theme.json spacing values:
<div class="mt-xs">...</div>
<div class="mb-sm">...</div>
This will generate the following CSS:
.mt-20 { margin-top: 1.25rem; }
.mb-30 { margin-bottom: 2rem; }
The plugin:
spacingSizes array from your theme.json| Option | Type | Required | Description |
|---|---|---|---|
themeJson | Object | Yes | Your WordPress theme.json configuration object |
FAQs
A Tailwind plugin that automatically syncs WordPress theme.json spacing values with your Tailwind configuration
We found that @backto/theme-json-to-tailwind-config demonstrated a healthy version release cadence and project activity because the last version was released less than 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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.