You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

modern-normalize

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modern-normalize

Normalize browsers' default style

3.0.1
latest
Source
npmnpm
Version published
Weekly downloads
325K
-19.06%
Maintainers
1
Weekly downloads
 
Created

What is modern-normalize?

The modern-normalize npm package is a modern CSS reset that helps to make built-in browser styling consistent across different browsers. It is a modern alternative to the traditional normalize.css, providing a more up-to-date approach to CSS normalization.

What are modern-normalize's main functionalities?

CSS Reset

This feature allows you to import the modern-normalize CSS reset into your project, ensuring that your styles are consistent across different browsers.

/* Import modern-normalize in your CSS file */
@import 'modern-normalize';

Consistent Box Sizing

This feature ensures that the box-sizing property is set to border-box for all elements, making it easier to manage layouts and avoid unexpected behavior.

/* Example of consistent box sizing */
* {
  box-sizing: border-box;
}

Improved Typography

This feature sets a consistent line-height and font-family for the body element, improving the readability and appearance of text across different browsers.

/* Example of improved typography */
body {
  line-height: 1.5;
  font-family: system-ui, sans-serif;
}

Other packages similar to modern-normalize

Keywords

normalize

FAQs

Package last updated on 05 Sep 2024

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