Socket
Socket
Sign inDemoInstall

@bedrock-layout/css-reset

Package Overview
Dependencies
22
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bedrock-layout/css-reset

bedrock-layout css reset


Version published
Weekly downloads
51
decreased by-31.08%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@bedrock-layout/css-reset

A CSS Reset that compliments well with the Bedrock Layout Primitives

Full docs at: bedrock-layout.dev

When to Use

When you don't have your own CSS reset.

How to install

npm install @bedrock-layout/css-reset

Usage

CSS Mixin

The reset mixin is best used at the beginning of your global style

import { reset } from "@bedrock-layout/css-reset";

const GlobalStyles = createGlobalStyle`
  ${reset}
`;

GlobalStyle

The GlobalStyle component is used when you don't have your own global styles to use

import { GlobalStyles } from "@bedrock-layout/css-reset";

const App = () => {
  return (
    <div>
      <GlobalStyles />
      {/* The rest of the component */}
    </div>
  );
};

CSS Stylesheet

You can also just bring in the CSS Stylesheet directly from the lib folder:

import "@bedrock-layout/css/lib/reset.css";

/* or import the minified version */

import "@bedrock-layout/css/lib/reset.min.css";

Keywords

FAQs

Last updated on 03 Jan 2023

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc