Skip to content
main
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jul 29, 2021
Jul 29, 2021

CSS Maid 🧹

css-maid logo

What is it?

TL;DR → CSS-Maid is a CSS reset for React.js!

CSS Maid is a tool for React.js that helps clean up & reset default css! It resets default padding, remove text-decoration on <a> tag, and many more! This tool was built using emotion & typescript!

Installation

# install with npm
npm i css-maid

# install with yarn
yarn add css-maid

Quick Start

  • Javascript
import Maid from "css-maid";

const App = () => {
  return (
    <div>
      <a href='#'>Hello World!</a>
      <ul>
        <li>React</li>
        <li>CSS</li>
        <li>Maid</li>
      </ul>

      <Maid />
    </div>
  );
};
  • TypeScript
import React from "react";
import Maid from "css-maid";

const App: React.FC = () => {
  return (
    <div>
      <a href='#'>Hello World!</a>
      <ul>
        <li>React</li>
        <li>CSS</li>
        <li>Maid</li>
      </ul>

      <Maid />
    </div>
  );
};

Features

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

body {
  line-height: 1;
}

a {
  text-decoration: none;
}

ol,
ul {
  list-style: none;
}

input,
textarea {
  outline: none;
}

textarea {
  resize: none;
}

About

🧹 A tool made for React.js to clean up CSS default styling! Give your CSS a nice reset and style with less hassle!

Topics

Resources

Releases

No releases published

Packages

No packages published