Skip to content

cher-ami/css-flat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

css-flat

css-flat is a clean CSS flat file written in pure CSS. It can also be imported in LESS or SASS projects.

Motivation

For custom projects we need full control of style of our components and therefore by-pass the default browser markup style. normalize.css offer a reset starter allowing to maintaining pre-style markups like title or list between each browsers, while css-flat normalize and especially flat markups style.

This one will be use to start project with the flattest style as possible.

Example

<h1> browser return:

h1 {
    display: block;
    font-size: 2em;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

<h1> css-flat will overwrite some values and return:

h1 {
    display: block; /* default browser value */
    font-size: 1em; /* reset */
    margin: 0; /* reset */
    font-weight: normal; /* reset */
}

Test

You can test it online!

Credit

Written and maintained by Solid JS core team.

Licence

MIT License

About

Clean CSS-flat file written in pure CSS. Can also be imported in LESS or SASS projects. Inspired from normalize.css.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 86.8%
  • HTML 13.2%