All Projects → zacanger → Styled Reset

zacanger / Styled Reset

Licence: lgpl-3.0
Eric Meyer's Reset CSS for styled-components

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Styled Reset

flast-legacy
Cross-platform browser based on Chromium.
Stars: ✭ 17 (-94.43%)
Mutual labels:  styled-components
Vscode Stylelint
A Visual Studio Code extension to lint CSS/SCSS/Less with stylelint
Stars: ✭ 260 (-14.75%)
Mutual labels:  styled-components
Reactackle
Open-source components library built with React and Styled-Components.
Stars: ✭ 278 (-8.85%)
Mutual labels:  styled-components
frigobar
A simple set of UI tools for your react application.
Stars: ✭ 13 (-95.74%)
Mutual labels:  styled-components
Welcome Ui
Customizable design system of @wttj with react • styled-components • styled-system • reakit
Stars: ✭ 256 (-16.07%)
Mutual labels:  styled-components
V4
Fourth iteration of my personal website built with Gatsby
Stars: ✭ 4,114 (+1248.85%)
Mutual labels:  styled-components
personal-website-react
A personal website built using Gatsby 🚀⚛️
Stars: ✭ 43 (-85.9%)
Mutual labels:  styled-components
React Bolt
⚡ The most simple & robust boilerplate for your React projects.
Stars: ✭ 298 (-2.3%)
Mutual labels:  styled-components
Spotify Profile
A web app for visualizing personalized Spotify data built with React, Express, and the Spotify API
Stars: ✭ 254 (-16.72%)
Mutual labels:  styled-components
Flag Project React
Awesome stack, awesome project pls press the star button
Stars: ✭ 278 (-8.85%)
Mutual labels:  styled-components
weixin-cash
💰 仿微信记账小程序的 React App。
Stars: ✭ 20 (-93.44%)
Mutual labels:  styled-components
Nextjs Redux Starter
Next.js + Redux + styled-components + Express = 😇
Stars: ✭ 257 (-15.74%)
Mutual labels:  styled-components
Chronos Timetracker
Desktop client for JIRA. Track time, upload worklogs without a hassle.
Stars: ✭ 273 (-10.49%)
Mutual labels:  styled-components
SauceKudasai
Get Anime info by image or URL (uses trace.moe and Anilist for animeinfo)
Stars: ✭ 50 (-83.61%)
Mutual labels:  styled-components
React Boilerplate Typescript
🔥 A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices ( Typescript )
Stars: ✭ 279 (-8.52%)
Mutual labels:  styled-components
rosim
Ragnarok Online Stats Simulator
Stars: ✭ 16 (-94.75%)
Mutual labels:  styled-components
Vim Styled Components
Vim bundle for http://styled-components.com based javascript files.
Stars: ✭ 262 (-14.1%)
Mutual labels:  styled-components
Styled Components Theme
Defines themes via flexible color selectors for use with styled-components
Stars: ✭ 302 (-0.98%)
Mutual labels:  styled-components
Ssr Sample
A minimum sample of Server-Side-Rendering, Single-Page-Application and Progressive Web App
Stars: ✭ 285 (-6.56%)
Mutual labels:  styled-components
Tweet Tray
Tweet quickly from the desktop without any distractions.
Stars: ✭ 274 (-10.16%)
Mutual labels:  styled-components

styled-reset

npm version CircleCI Patreon Backers on Open Collective Sponsors on Open Collective ko-fi Support with PayPal

Eric Meyer's Reset CSS for styled-components

Also see styled-normalize from Sergey Sova.


Installation:

npm i styled-reset (use the -S flag if you're on npm 4 or earlier).

If you're on styled-components 3.x, please npm i [email protected].

Usage:

Styled Components 4.x || 5.x

import * as React from 'react'
import { Reset } from 'styled-reset'

const App = () => (
  <React.Fragment>
    <Reset />
    <div>Hi, I'm an app!</div>
  </React.Fragment>
)

You can also use the default export or named export (lowercase) in your own global style:

import * as React from 'react'
import { createGlobalStyle } from 'styled-components'
import reset from 'styled-reset'

const GlobalStyle = createGlobalStyle`
  ${reset}
  /* other styles */
`

const App = () => (
  <React.Fragment>
    <GlobalStyle />
    <div>Hi, I'm an app!</div>
  </React.Fragment>
}

export default App

Styled Components 3.x

If you're using Styled Components version 3.x or 2.x, you'll need to use the injectGlobal api instead (and install [email protected]):

import { injectGlobal } from 'styled-components'
import reset from 'styled-reset'
injectGlobal`
  ${reset}
`

reset is also available as a named export:

import { reset } from 'styled-reset'

Credits

All credit goes to Eric Meyer for reset.css. reset.css is public domain (unlicensed).

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].