Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opinionated base #1

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Opinionated base #1

wants to merge 5 commits into from

Conversation

walletcon
Copy link
Owner

@walletcon walletcon commented Aug 20, 2021

No description provided.

sindresorhus and others added 5 commits February 11, 2018 19:22
While `modern-normalize.css` is great for ensuring consistency, the default browser styles are not that nice. The goal of `modern-base.css` is to be a better base, that you use in addition to `modern-normalize.css`. This base can afford to be opinionated.
It causes some many weird problems. I tried `break-word` too, but it also causes problems, like `10%` being split up into two lines of `10` and `%` when using Flexbox.
@walletcon
Copy link
Owner Author

Differences from normalize.css

All credit should go to normalize.css. I just removed some cruft and added some improvements. If you have questions about the source, check out the original source and this for details.

The goal of this project is to make itself obsolete.

Browser support

  • Latest Chrome
  • Latest Firefox
  • Latest Safari

Install

$ npm install modern-normalize
Download
CDN

Usage

@import 'node_modules/modern-normalize/modern-normalize.css';

or

<link rel="stylesheet" href="node_modules/modern-normalize/modern-normalize.css">

opinionated-base
This package also includes a base style with better defaults:

@import 'node_modules/modern-normalize/modern-base.css';

opinionated-base

FAQ

Can you provide Sass, Less, etc, ports?

There's absolutely no reason to have separate ports for these. They are just CSS supersets and can import CSS directly.
opinionated-base

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants