
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
@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 49 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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.