GitShow/sindresorhus/modern-normalize
sindresorhus

modern-normalize

πŸ’ Normalize browsers' default style

by sindresorhus
csscss-librarycss-resetnormalizenormalize-cssnpm-package
Star on GitHubForknpm

TypeScript

7.4k stars397 forks16 contributorsActive Β· 1w agoSince 2018MIT

Meet the team

See all 16 on GitHub β†’
sindresorhus
sindresorhus49 contributions
atjn
atjn12 contributions
kripod
kripod4 contributions
teddybradford
teddybradford2 contributions
nuxodin
nuxodin2 contributions
jakejarvis
jakejarvis1 contribution
jamiebuilds
jamiebuilds1 contribution
JohnAlbin
JohnAlbin1 contribution

Commit activity

Last 12 weeks Β· 1 commit

Full graph β†’

Community health

4 of 6 standards met

Community profile β†’
85
βœ“READMEβœ“Licenseβœ“Contributingβœ“Code of Conductβ—‹Issue Templateβ—‹PR Template

Recent PRs & issues

Active Β· Last activity 1w ago
See all on GitHub β†’
maurer2
Remove reset for `border-color` on tableOpenPR

Hello, It appears that both Chrome and Safari now use as the default border colour for tables in line with the specs: https://developer.chrome.com/release-notes/149#remove_explicit_border_color_ua_stylesheet_rule_for_tables https://developer.apple.com/documentation/safari-release-notes/safari-18_4-release-notes#Resolved-Issues (second "Resolved issue" section) As a result, the reset for on tables could be removed once Chrome 149+ adoption becomes more widespread. Safari 18+ already appears to have significant usage. Here is a test page: https://play.tailwindcss.com/SghL1ku13p Cheers

maurer2 Β· 19h ago
luxlogica
Normalise button stylingOpenIssue

One of the issues that normalize.css never addressed very well is the discrepancy in the styling of some form elements in different browsers. It would be awesome if modern-normalize could address at least the discrepancies in the `` elements that still exist. As an example, right now after applying modern-normalize, this is what buttons look like on Safari: ...and this is what they look like on Firefox:

luxlogica Β· 11mo ago

Recent fixes

View closed PRs β†’
rjgotten
Consider a version without forcing box-sizingClosedIssue

Counter to the common trend, it is _not_ always 'awesome' or 'FTW'. It wreaks havoc with expectations stemming from normal browser defaults, which makes it harder to integrate into existing properties and makes it harder to integrate anything created by third parties that are not operating off of the same opinionated principle. It's also a total pain in the ass to selectively undo with override rules, as it's reapplied on every element. At the very least you could use I'd think, which makes it at least _somewhat_ easier to selectively cut this awesomely annoying behavior out?

rjgotten Β· 1w ago
franktopel
Replace deprecated box-sizing fix by a better oneMergedPR

see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/. Even Paul Irish, original author of the fix currently part of modern-normalize, has agreed on this and edited his origjnal post back from 2021: https://www.paulirish.com/2012/box-sizing-border-box-ftw/ This will also fix https://github.com/sindresorhus/modern-normalize/issues/48.

franktopel Β· 1w ago
JohnAlbin
Document why box-sizing is not inheritedMergedPR

Given the continued (sometimes heated) discussion about why modern-normalize's rule does not match the one Paul Irish recommended in 2014, I recommend we add a comment to the stylesheet explaining the reasoning. I think the reason this discussion keeps happening is simply a numbers issues. The number of people who have read Paul Irish's box-sizing post or Chris Coyier's box-sizing post is much larger than the number of people who have read the GitHub issue where this decision was made. As for what should go in the CSS comment, I think the best description of why box-sizing should not be inherited is the Don’t Inherit the Box Model blog post so that's the link I've added in the comment. Fixes #48 Closes #56

JohnAlbin Β· 1w ago
Structured data for AI agents

Repository: sindresorhus/modern-normalize. Description: πŸ’ Normalize browsers' default style Stars: 7354, Forks: 397. Primary language: TypeScript. License: MIT. Topics: css, css-library, css-reset, normalize, normalize-css, npm-package. Open PRs: 2, open issues: 26. Last activity: 1w ago. Community health: 85%. Top contributors: sindresorhus, atjn, kripod, teddybradford, nuxodin, jakejarvis, jamiebuilds, JohnAlbin, spacedawwwg, xPaw and others.

Β·@ofershap

Replace github.com with gitshow.dev