dan-dr / gatsby-starter-superstylin

A Gatsby starter with styled-components πŸ’…

Home Page:https://superstylin.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Superstylin'

A Gatsby starter with styled-components πŸ’…

What is Superstylin'?

Superstylin' is a Gatsby starter that uses styled-components as the main way to style your Gatsby site, it provides an easy to start structure to get you up and running with your first Gatsby-powered site.

About styled-components

Simply put, styled-components is a way to add your css in your js, it works by creating a component and style it, then you'll get a styled-component, it's really simple but very powerful.

Benefits of using styled-components

By using your css in your js you get the power of javascript to add more functionality to the way you declare your styles, but wait, that's not all!

Below are some interesting readings to further discover the benefits of styled-components.

A big thanks to Glen Maddern and Max Stoiber for making styled-components πŸ‘πŸŽ‰.

Also big thanks to Kyle Mathews for starting and maintaining Gatsby πŸ‘πŸŽŠ.

Inline-styles vs CSS in JS

Read this excellent post on why inline-styles !== css-in-js by Max Stoiber.

Features of Superstylin'

  • Use css-in-js with the magic of styled-components πŸ’…
  • Easy to customize and to get started with your own Gatsby site
  • Perfect for sites, blogs or both
  • Uses polished - a lightweight toolset for writing styles in JavaScript ✨
  • Uses the hedron flexbox grid system for react, powered by styled-components

Installing

$ gatsby new my-awesome-site https://github.com/bntzio/gatsby-starter-superstylin

$ cd my-awesome-site

$ gatsby develop

License

Licensed under the MIT License, Copyright Β© 2017 Enrique Benitez.

See LICENSE for more information.

About

A Gatsby starter with styled-components πŸ’…

https://superstylin.netlify.com/

License:MIT License


Languages

Language:JavaScript 100.0%