New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@csstools/postcss-initial

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@csstools/postcss-initial

PostCSS plugin to fallback initial keyword.

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2M
increased by0.52%
Maintainers
3
Weekly downloads
 
Created

What is @csstools/postcss-initial?

@csstools/postcss-initial is a PostCSS plugin that allows you to reset CSS properties to their initial values. This can be particularly useful for ensuring consistent styling across different browsers and user agents by explicitly setting properties to their default values.

What are @csstools/postcss-initial's main functionalities?

Resetting CSS properties to their initial values

This feature allows you to reset all CSS properties of an element to their initial values using the `all: initial;` declaration. This can be useful for removing all inherited styles and starting with a clean slate.

/* Input CSS */
.element {
  all: initial;
}

/* Output CSS */
.element {
  all: initial;
}

Resetting specific CSS properties

You can reset specific CSS properties to their initial values. This is useful when you want to reset only certain properties without affecting others.

/* Input CSS */
.element {
  color: initial;
  font-size: initial;
}

/* Output CSS */
.element {
  color: initial;
  font-size: initial;
}

Other packages similar to @csstools/postcss-initial

Keywords

FAQs

Package last updated on 12 Feb 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc