All Projects → sergeysova → Styled Normalize

sergeysova / Styled Normalize

Licence: mit
normalize.css for styled-components

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Styled Normalize

Reactackle
Open-source components library built with React and Styled-Components.
Stars: ✭ 278 (-28.9%)
Mutual labels:  styled-components
File System React
File System UI in Web using react
Stars: ✭ 331 (-15.35%)
Mutual labels:  styled-components
Rimble Ui
React components that implement Rimble's Design System.
Stars: ✭ 357 (-8.7%)
Mutual labels:  styled-components
Ssr Sample
A minimum sample of Server-Side-Rendering, Single-Page-Application and Progressive Web App
Stars: ✭ 285 (-27.11%)
Mutual labels:  styled-components
Coderplanets web
the most sexiest community for developers, build with React, Mobx/MST, GraphQL, Styled-Components, Rxjs, Ramda ... and ❤️
Stars: ✭ 314 (-19.69%)
Mutual labels:  styled-components
Webstorm Styled Components
styled-components highlighting support in IntelliJ editors
Stars: ✭ 342 (-12.53%)
Mutual labels:  styled-components
Tweet Tray
Tweet quickly from the desktop without any distractions.
Stars: ✭ 274 (-29.92%)
Mutual labels:  styled-components
Glamorous
DEPRECATED: 💄 Maintainable CSS with React
Stars: ✭ 3,681 (+841.43%)
Mutual labels:  styled-components
Typescript Plugin Styled Components
TypeScript transformer for improving the debugging experience of styled-components
Stars: ✭ 330 (-15.6%)
Mutual labels:  styled-components
React Stripe Menu
A clone of Stripe's animated menu using React, Styled Components and React-Flip-Toolkit
Stars: ✭ 352 (-9.97%)
Mutual labels:  styled-components
React Bolt
⚡ The most simple & robust boilerplate for your React projects.
Stars: ✭ 298 (-23.79%)
Mutual labels:  styled-components
Styled Reset
Eric Meyer's Reset CSS for styled-components
Stars: ✭ 305 (-21.99%)
Mutual labels:  styled-components
Community Platform
A series of tools for the Precious Plastic community to collaborate around the world and tackle plastic waste.
Stars: ✭ 343 (-12.28%)
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 (-28.64%)
Mutual labels:  styled-components
Css In Js Benchmarks
Stars: ✭ 360 (-7.93%)
Mutual labels:  styled-components
Flag Project React
Awesome stack, awesome project pls press the star button
Stars: ✭ 278 (-28.9%)
Mutual labels:  styled-components
Rock Paper Scissors React
Challenge #5 from Frontend Mentor
Stars: ✭ 339 (-13.3%)
Mutual labels:  styled-components
Twin.macro
🦹‍♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, stitches and goober) at build time.
Stars: ✭ 5,137 (+1213.81%)
Mutual labels:  styled-components
Mxstbr.com
The source for my personal website
Stars: ✭ 370 (-5.37%)
Mutual labels:  styled-components
Handycontrols
Contains some simple and commonly used WPF controls based on HandyControl
Stars: ✭ 347 (-11.25%)
Mutual labels:  styled-components

styled-normalize

CSS-normalize library for styled-components.

The original normalize.css is pulled from necolas/normalize.css, and parsed into styled ready format.

Usage

npm install --save styled-normalize
yarn add styled-normalize

styled-components v4 / v5

Package exported normalize and Normalize. Normalize is a component with global styles. normalize is a css-normalize content to interpolate into styled component.

Use as component:

// index.js
import React from 'react'
import ReactDOM from 'react-dom'
import { Normalize } from 'styled-normalize'

import { App } from './app'

const Root = () => (
  <React.Fragment>
    <Normalize />
    <App />
  </React.Fragment>
)

ReactDOM.render(<Root />, document.querySelector('#root'))

Also you can use createGlobalStyle API:

// styles/index.js
import { createGlobalStyle } from 'styled-components'
import { normalize } from 'styled-normalize'

export const GlobalStyle = createGlobalStyle`
  ${normalize}

  // You can continue writing global styles here
  body {
    padding: 0;
    background-color: black;
  }
`

// index.js
import React from 'react'
import ReactDOM from 'react-dom'

import { GlobalStyle } from './styles'
import { App } from './app'

const Root = () => (
  <React.Fragment>
    <GlobalStyle />
    <App />
  </React.Fragment>
)

ReactDOM.render(<Root />, document.querySelector('#root'))

You can also use named imports:

// ES Modules
import { normalize, Normalize } from 'styled-normalize'

// CommonJS
const { normalize, Normalize } = require('styled-normalize')

styled-components v3

If you want to use styled-normalize with [email protected] you should use prev npm tag.

npm install [email protected]

v3 don't supports createGlobalStyle API.

Version

NO SEMVER!

Why? Because X.Y numbers in vX.Y.Z version matches X.Y in normalize.css

License

The MIT 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].