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.
@benface/tailwindcss-reset
Advanced tools
Opinionated CSS reset to apply on top of Tailwind CSS’s Preflight
This plugin requires Tailwind CSS 1.2 or later, and is optimized for Tailwind CSS 3.x.
npm install @benface/tailwindcss-reset
// tailwind.config.js
module.exports = {
corePlugins: {
preflight: true /* the plugin extends Preflight so make sure it is not disabled */,
},
plugins: [require("@benface/tailwindcss-reset")],
};
position: relative
, so that absolutely positioned elements are relative to their parent by default.margin
and padding
of all elements to 0
.min-width
and min-height
of all elements to 0
, since the default is auto
which can cause overflow issues with flex items.border-radius
to 0
, background-color
to transparent
, and background-image
to none
on all elements, just in case.background-position
(center center
) and background-repeat
(no-repeat
).display: block
by default (button
, input
, select
, textarea
, label
, and summary
).color
, font
, text-align
, text-transform
, and letter-spacing
) inherit on form elements as well (button
, input
, etc.).overflow
on svg
elements from hidden
to visible
, to prevent clipping their edges (notably in Safari).reset.css
to see them all).display: none
on [hidden]
elements by adding !important
so that it cannot be overridden by utility classes.font-weight: bolder
on b
and strong
elements.font-style: italic
on i
and em
elements.text-decoration: underline
on u
and ins
elements.text-decoration: line-through
on s
, strike
, and del
elements.font-size
and positioning styles set by Preflight on sub
and sup
elements.[3.1.1] - 2022-06-29
border-width: 0
declaration (it’s already in Preflight)FAQs
Opinionated CSS reset to apply on top of Tailwind CSS’s Preflight
The npm package @benface/tailwindcss-reset receives a total of 63 weekly downloads. As such, @benface/tailwindcss-reset popularity was classified as not popular.
We found that @benface/tailwindcss-reset 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.
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.