/reseter.css

Reseter.css - A Futuristic Alternative To Normalize.css And CSS Resets

Primary LanguageCSSMIT LicenseMIT


Reseter.css

A Futuristic Alternative to Normalize.css and CSS Resets
Twitter URL

Website Β· Request a Feature Β· Report a Bug


πŸ€“ Benefits

  • No need to start from scratch. Reseter.css doesn't remove all the browser styles, but instead redifines the useful ones
  • Never switch preprocessors/technologies. sass, less, scss, stylus, and styled-components support available.
  • Never find yourself fixing browser issues. Includes browser fixes for a wide range of browsers.
  • No need debugging load time for Reseter.css. It's sized ~0.7kb. Moreover, we are consistently trying to reduce it.
  • Get all the benefits of normalize.css. It includes all normalizations!
  • Get a better box sizing for a better experience. box-sing: border-box set
  • Completely production ready code with browser support testing and source build ci

❓ Why do I use a css reset

There are many inconsistencies between browsers. Like Firefox 3 has a margin on top of paragraphs but Internet Explorer 7 doesn't have any margin. There are thousands of browsers with hundreds of versions. Each version at least has 500+ inconsitencies with different browsers' different versions. How to keep up? This is an easy to use solution called reseter.css

Browser Inconsistencies


πŸ†š There are other resets, why reseter.css?

Feature Reseter.css Normalize.css Sanitize.css Reset.css
Normalizations βœ… βœ… βœ… ❌
Basic elemental styles βœ… Partial βœ… ❌
Size (by bundlephobia) GitHub file size in bytes GitHub file size in bytes GitHub file size in bytes GitHub file size in bytes
Minified version npm bundle size ❌ (Minify yourself) ❌(Minify yourself) ❌(Minify yourself)
GZIP version npm bundle size ❌ (Compress yourself) ❌ (Compress yourself) ❌ (Compress yourself)
Box sizing βœ… ❌ βœ… ❌
Browser support Last 5 versions
All not dead Browsers
Customisable
IE 10+
Safari 8+
Chrome
Firefox ESR+
Opera
Edge
Last 3 versions
Exception: safari last 2
Also firefox ESR, IE 9+
Unkown

πŸš€ Get It Running Quick

  1. You can find some templates for a faster experience in the templates section down below

  2. Create A HTML File

    <!DOCTYPE html>
    <html>
      <head>
        <title>Reseter.css Quick Start</title>
      </head>
      <body>
          <h1>Reseter.css Quick Start</h1>
          <p>Hey fella! Don't foget to change the title text an remove this paragraph and the heading</p>
      </body>
    </html>
  3. Call Reseter.css

    <!-- To be placed in the head tag -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reseter.css" />
  4. Star this repository, if you like the project! It means a lot to the development team, Those stars a boosting happiness for our team

  5. How about reading a guide for best performance? Here's the link to optimizing reseter.css for production

  6. Lastly you can view our wiki for best practices and performance guides

  7. πŸ₯³ All Set Now


πŸ“š Quick Templates


🌟 Installation

There are various ways to install reseter.css. Like package managers, content delivery networks, local copies...

πŸ“¦ Package Managers

πŸ’ NPM

npm install reseter.css

🐱Yarn

yarn add reseter.css

⚑ CDN

🚚 JsDelivir - The Recommended CDN

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reseter.css" />

πŸ“¦ Unpkg

<link rel="stylesheet" href="https://unpkg.com/reseter.css" />

πŸ”– Releases

πŸ†• v1.1.3

  • 🌟 Fix Scroll Asked On Twitter

  • πŸ› Fix #19 (#30)

  • πŸ“ Meta Stuff (Readme, And More)

  • πŸ˜ƒ Fix Emoji

πŸ”¨ v1.1.2

  • πŸ› Fix Margin Issue Created In v1.1.1
  • βž• Update Dependencies

πŸ”₯ v1.1.1

  • πŸ”₯ Make Code Shorter
  • ✨ Update With Browsers
  • πŸ› Fix Bugs Of Related Projects

πŸ“ Download Beta


✨ Get Using It

Reseter.css as said, is a zero-dependency project and excels in integrating with all kinds of usage options! These are a few easy guides for people to start

πŸ”— Link Tag - The Recommended Way

Using It With A Browser Is Really Simple. First Link To Reseter.css Then Your Custom Stylesheet

<head>
  <link rel="stylesheet" type="text/css" href="path/to/reseter.min.css" />
  <link
    rel="stylesheet"
    type="text/css"
    href="path/to/your-custom-stylesheet.css"
  />
</head>

Warning!

Make Sure To Link Your Custom Stylesheet After Reseter.css Else Your Custom Styles Might Not Be Implemented

🟒 Import - The Easy Way

First Import Reseter.css then add your custom styles

/** In Your CSS File **/

@import "path/to/reseter.min.css";

.element {
  /** Your Custom Style's Here **/
}
<!-- In The Head Of Your HTML -->
<link
  rel="stylesheet"
  type="text/css"
  href="path/to/your-custom-stylesheet.css"
/>

<!-- Must Be Used Where ever You Want Reseter.css To Work -->

✨ More


πŸš… Optimize

Note all of these guidelines are for static websites, frameworks like react have their own guide (please refer them)

  • Never import reseter.css via css, though this a option, it is not recommended for website loading, rather use html link tags

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reseter.css">
  • Use this easy loading trick to make your life a lot easier

    <link rel="preload" as="style" href="https://cdn.jsdelivr.net/npm/reseter.css" onload="this.rel='stylesheet';this.onload=null">
    
    <noscript>
      <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reseter.css">
    </noscript>
  • Find more at our wiki


πŸ“ž We're Ready To Support


⌚ Roadmap

  • Comment Blocks In The Sources

  • Long Documentation

  • Guide

All of these are moved to the Benefits section once done


β™₯ Feedback

Reseter.css - A futuristic CSS reset and normalize | Product Hunt


πŸ§‘ Authors

krishdevdb
Krish
Github
Email

❀ Contributors


Michael J. Ryan

πŸ’»

joejenett

πŸ› πŸ“–

Vincent Will

πŸ“

phuoc-ng

πŸ”§

Leandro Oriente

πŸ›

Himanshu

πŸ’»

Vixie

πŸ€” πŸ’» πŸ“–

aco

πŸ› πŸ’»

Okuto Oyama

πŸ“–

coliss

πŸ“

Luis Parra

πŸ“–

yolenoyer

πŸ“† πŸ›

Meenal

πŸ› πŸ“–

Kunal Verma

πŸ“– πŸ›

❀ Thanks to our supporters

⭐ Stargazers


🍴 Forkers


🌟 Special Mentions

πŸ“€ Posts/Newletters

Frontend Focus - A Weekly Newsletter That Published Reseter.css in it's Issue #485

Collis.com - For A Japanese Post Regarding Reseter.css

We are only including the first few folks, who helped us out, but we are planning a dedicated section for every folk!

🌟 GitHub Stargazers

Stargazers over time


πŸ“„ License

MIT License

Copyright (c) 2021 Krish Dev DB

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

⌚ Status

This project is currently being maintained. Please Consider Donating.