
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-static-plugin-tailwindcss
Advanced tools
A React-Static plugin that adds tailwindcss into your postcss plugins
In an existing react-static site run:
$ yarn add react-static-plugin-tailwindcss -D
Then add the plugin to your static.config.js:
export default {
plugins: ["react-static-plugin-tailwindcss"]
};
Now you can add @tailwind directives to your .css files
@tailwind base;
@tailwind components;
@tailwind utilities;
If you're wanting to use tailwind in conjuction with styled-components for example
yarn add tailwind.macro@next
static.config.js
export default {
plugins: [
["react-static-plugin-tailwindcss", {
cssInJs: true
}]
]
};
Create a babel-plugin-macros.config.js file
module.exports = {
tailwind: {
config: './tailwind.config.js',
format: 'auto'
}
}
Now you can use the tw macro inside styled components
import tw from "tailwind.macro";
import styled from "styled-components"
export const Header = styled.h1`
${tw`text-4xl font-bold text-center text-blue-500`}
`;
If you already handle auto prefixer or dont want to use it
export default {
plugins: [
["react-static-plugin-tailwindcss", {
autoPrefixer: false
}]
]
};
FAQs
A React-Static plugin that adds tailwindcss into your postcss plugins
We found that react-static-plugin-tailwindcss 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.