Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
tailwindcss-box-shadow
Advanced tools
Tailwind CSS plugin that generates box-shadow utility values exactly as they're defined in the config.
A plugin that generates shadow
utilities exactly as they are defined in the config - that is, without CSS variables.
Install the plugin from npm:
# Using npm
npm install tailwindcss-box-shadow
# Using Yarn
yarn add tailwindcss-box-shadow
Then add the plugin to your tailwind.config.js
:
module.exports = {
plugins: [
require('tailwindcss-box-shadow'),
],
}
Use the shadow-{n}
utilities to add box shadows to elements:
<div class="shadow-xl">
Fugiat id id enim commodo.
</div>
The plugin will generate the box-shadow
utility exactly as defined in the Tailwind config, without --tw-shadow-*
CSS variables:
- .shadow-xl {
- --tw-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
- --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
- }
+ .shadow-xl {
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
+ }
You may configure which utilities are generated by this plugin under the boxShadow
key in your tailwind.config.js
file:
module.exports = {
theme: {
extend: {
boxShadow: {
button: '0 3px 9px 0 rgba(0, 0, 0, 0.09)',
}
}
},
}
FAQs
Tailwind CSS plugin that generates box-shadow utility values exactly as they're defined in the config.
We found that tailwindcss-box-shadow 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.