Socket
Book a DemoInstallSign in
Socket

@cher-ami/css-flat

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cher-ami/css-flat

Clean CSS-flat file written in pure CSS.

1.0.1
latest
Source
npmnpm
Version published
Maintainers
5
Created
Source

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

Keywords

css

FAQs

Package last updated on 25 Jul 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.