
Security News
Inside Lodash’s Security Reset and Maintenance Reboot
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.
postcss-hide
Advanced tools
PostCSS plugin that adds shortcuts to hiding elements.
$ npm install postcss-hide --save-dev
allHide visually and from screen readers
.all {
hide: all;
}
.all {
display: none !important;
}
invisibleHide visually and from screen readers, but maintain layout
.invisible {
hide: invisible;
}
.invisible {
visibility: hidden;
}
textImage replacement, not widely used but present in Bootstrap.
.text-hide {
hide: text;
}
.text-hide {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
visuallyHide visually but not from screenreaders
.visuallyhidden {
hide: visually;
}
.visuallyhidden {
position: absolute !important;
overflow: hidden !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
border: 0 !important;
clip: rect(1px, 1px, 1px, 1px) !important;
}
focusableExtends the visually declarations to allow the element
to be focusable when navigated to via the keyboard
.visuallyhidden.focusable:focus,
.visuallyhidden.focusable:active {
hide: focusable;
}
.visuallyhidden.focusable:focus,
.visuallyhidden.focusable:active {
clip: auto !important;
height: auto !important;
margin: 0 !important;
overflow: visible !important;
position: static !important;
width: auto !important;
}
overridesOverwrite the default styles using a configuration object
import postcss from 'postcss';
import hide from 'postcss-hide';
postcss.use(hide({
overrides: {
all: 'display: none; overflow: hidden;'
}
}));
See PostCSS docs for examples for your environment.
FAQs
PostCSS plugin that adds shortcuts to hiding elements
We found that postcss-hide 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.

Security News
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.