Coder Social home page Coder Social logo

gardevoir's Introduction


The Modern CSS Reset πŸš€

πŸ€“ Benefits

  • No need to start from scratch. Gardevoir doesn't remove all the browser styles, but instead redefines the useful ones
  • Never find yourself fixing browser issues. Includes browser fixes for a wide range of browsers.
  • No need debugging load time for Gardevoir. It's sized ~0.8kb. 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+ inconsistencies with different browsers' different versions. How to keep up? This is an easy to use solution called Gardevoir

Browser Inconsistencies

πŸ†š There are other resets, why Gardevoir?

Feature Gardevoir Normalize.css Sanitize.css Reset.css
Normalizations βœ… βœ… βœ… ❌
Basic elemental styles βœ… Partial βœ… ❌
Size (by bundle phobia) Compile with Sass GitHub file size in bytes GitHub file size in bytes GitHub file size in bytes
Minified version Compile with Sass ❌ (Minify yourself) ❌(Minify yourself) ❌(Minify yourself)
Box sizing βœ… ❌ βœ… ❌
Browser support Customizable Last 3 versions Last 3 versions Unknown

πŸš€ Get It Running Quick

  1. Create A HTML File

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

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

  4. How about reading a guide for best performance? Here's the link to optimizing Gardevoir for production

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

  6. πŸ₯³ All Set Now

🌟 Installation

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

πŸ“¦ Package Managers

πŸ’ NPM Npm Downloads

npm install gardevoir

🐱Yarn Yarn Downloads

yarn add gardevoir

⚑ CDN CDN Hits

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

✨ Usage

Gardevoir 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

<head>
  <link rel="stylesheet" type="text/css" href="path/to/gardevoir.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 Gardevoir Else Your Custom Styles Might Not Be Implemented

πŸš… Optimize

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

  • Never import Gardevoir 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/gardevoir" />
  • Use this easy loading trick to make your life a lot easier

    <link
      rel="preload"
      as="style"
      href="https://cdn.jsdelivr.net/npm/gardevoir"
      onload="this.rel='stylesheet';this.onload=null"
    />
    
    <noscript>
      <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gardevoir" />
    </noscript>

❀ Thanks to our supporters

GitHub Stargazers

gardevoir's People

Contributors

kkrishguptaa avatar allcontributors[bot] avatar dependabot[bot] avatar himanshu007-creator avatar verma-kunal avatar code-factor avatar abhijithganesh avatar higby avatar panquesito7 avatar fayazpn avatar gouravmohanty7070 avatar imgbotapp avatar pratikramteke avatar vixietsq avatar deepmalamittal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.