
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.