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. If your project uses an older version of Tailwind, you should install the latest 1.x version of this plugin (npm install @benface/tailwindcss-reset@1.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'),
],
};
A few things:
position: relative
, so that absolutely positioned elements are relative to their parent by defaultmin-width
and min-height
of all elements to 0
, since the default is auto
which can cause overflow issues with flex itemsbackground-position
’s default value from left top
to center center
background-repeat
’s default value from repeat
to no-repeat
reset.css
to see them all)display: none
on [hidden]
elements by adding !important
so that it is not overridden by utility classes[3.1.0] - 2022-06-29
cursor: pointer
to all types of input
that are buttons, for consistency with button
input
and textarea
placeholder color with color: inherit
and opacity: 0.75
color
inherit on mark
elements instead of being black
by defaulttext-align
inherit on caption
elements instead of being center
by defaultThank you so much to Sophia Michelle Andren for this release’s inspiration ❤️
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.