Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
tailwindcss-box-shadow
Advanced tools
Tailwind CSS plugin that generates standard box-shadow utilities, without CSS variables.
A plugin that generates shadow
utilities exactly as you have them defined in your theme
config, without CSS variables.
But... why?
I needed shadow
utilities in Maizzle that don't rely on the new CSS variables strategy in Tailwind CSS 2.x.
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
file, making sure to disable the default boxShadow
plugin:
// tailwind.config.js
module.exports = {
theme: {
// ...
},
corePlugins: {
boxShadow: false,
},
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>
You can configure which values and variants are generated by this plugin under the boxShadow
key in your tailwind.config.js
file:
// tailwind.config.js
module.exports = {
theme: {
extend: {
boxShadow: {
button: '0 3px 9px 0 rgba(0, 0, 0, 0.09)',
}
}
},
variants: {
boxShadow: ['responsive', 'hover']
}
}
FAQs
Tailwind CSS plugin that generates box-shadow utility values exactly as they're defined in the config.
The npm package tailwindcss-box-shadow receives a total of 2,761 weekly downloads. As such, tailwindcss-box-shadow popularity was classified as popular.
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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.