4.5.2 • Published 12 months ago

styled-reset v4.5.2

Weekly downloads
46,505
License
MIT
Repository
github
Last release
12 months ago

styled-reset

Donate

npm version CircleCI

Eric Meyer's Reset CSS for styled-components

Also see styled-normalize from Sergey Sova.


Installation:

npm i styled-reset

Usage:

Styled Components 4+

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 styled-reset@1.7.1):

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).

LICENSE

da-ui-test2@linktr.ee/ui-link-kitda-ui-testtesting-ui-libtesting123-ui@thesaurus/componentszap-strike-webdafunstorecast-web-commonpathee-semantic-ui@thesaurus/themes@techanvil/terminal-ninja@formationai/voltron-bundler@swirepay/gateway-secure@sandalboyz/gatsby-theme-sandalboyzgatsby-theme-sandalboyz@devapi/design-systemteespace-corestadtenergie@wuerthcs/react@bonsai-thing/design-system@everything-registry/sub-chunk-2841oil-money-kioskwyzetalk-assessment-frontendwyzetalk-cms-users-fetecra-foundarytecra-foundryseason-lmstheme-test@hiab/themewaterbin-uimerch_stylejobber-uijamespot-react-componentsisland-uiisland-ui-systeminsites-uims-gateway-secure-testjylc-ui-librarymonochromatic-uinak-uims-secure-test-onemd-components-libraryoni-ui-styleguidepushnews-design-systempiano-uireact-check-in-out-calendarreact-countingstarreact-simple-datepicker-calendarreact-scenesreact-skeleton-loader-medinomflixnoritex-sdk-docsrb-uireact-json-skeleton-loaderrecursivesoftsimodalsmarthr-normalize-csssizzle-zone-pattern-librarysoho-ui-library@arz.digital/components@arz.digital/react-ui@anjiwoong/fkit@anjiwoong/f-ui-kit@auspices/eos@axiomatic/themes@beatchainmusic/core@beatchainmusic/ui4r-landing-page@devitar/swf-themezap-desktopur-majorelle@eclo/mode@griddo/ax@geavila/gt-design@infinitebrahmanuniverse/nolb-styled@ksh5324/npx-test@live-casino-games/live-casino-chat-games@lifechurch/react-ion@motech-development/breeze-ui@mwid/react-country-picker@marvelousdesigner/design-system@nickypo/awesome-ui-13@jjunyjjuny/react-calendar@jossdoe/codeine@khunjeong/basic-survey-template@kitsch-lib/components@impact-market/ui@jenesei-software/jenesei-ui-react@npmrost/storybook@oysterable_public/oysterable-ui@swapcard/react-sdk@swfsoft/swf-theme@segment/inspector-webext@rily/components@simonghales/react-three-scene-editor@doruk/components@drivekyte/ui-components@drivekyte/web-components@clutch-marketplace/cadscore
4.5.2

12 months ago

4.5.0

1 year ago

4.5.1

1 year ago

4.4.7

2 years ago

4.4.6

2 years ago

4.4.3

2 years ago

4.4.5

2 years ago

4.4.4

2 years ago

4.4.1

3 years ago

4.4.0

3 years ago

4.4.2

2 years ago

4.3.4

4 years ago

4.3.3

4 years ago

4.3.2

4 years ago

4.3.1

4 years ago

4.3.0

4 years ago

4.2.3

4 years ago

4.2.2

4 years ago

4.2.1

4 years ago

4.2.0

4 years ago

4.1.6

5 years ago

4.1.5

5 years ago

4.1.4

5 years ago

4.1.3

5 years ago

4.1.2

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.10

5 years ago

4.0.9

5 years ago

4.0.8

5 years ago

4.0.7

5 years ago

4.0.6

5 years ago

4.0.5

5 years ago

4.0.4

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.17

5 years ago

2.0.16

6 years ago

2.0.15

6 years ago

2.0.14

6 years ago

2.0.13

6 years ago

2.0.12

6 years ago

2.0.11

6 years ago

2.0.10

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.9

6 years ago

1.6.8

6 years ago

1.6.7

6 years ago

1.6.6

6 years ago

1.6.5

6 years ago

1.6.4

6 years ago

1.6.3

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago