Skip to content
A Gatsby Theme with styled-components πŸ’…
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Update to Gatsby v2 πŸŽ‰ Jun 1, 2019
demo release: 0.1.1 Aug 1, 2019
theme release: 0.1.1 Aug 1, 2019
.gitignore Start from scratch Mar 5, 2018
package.json feat: convert to gatsby theme πŸŽ‰ Aug 1, 2019
readme.md feat: convert to gatsby theme πŸŽ‰ Aug 1, 2019
yarn.lock feat: convert to gatsby theme πŸŽ‰ Aug 1, 2019

readme.md

Superstylin Theme πŸŽ‰πŸ˜²

A Gatsby Theme with Style πŸ’…

What is Superstylin?

Superstylin' is a Gatsby Theme 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 and 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 πŸ’…
  • Uses Gatsby built-in GraphQL to fetch and sort blog posts
  • Easy to customize and to get started with your own Gatsby site
  • Perfect for sites, blogs or both
  • Super simple project structure to get you up and running fast

Installing

Inside your starter:

$ yarn add gatsby-theme-superstylin

And finally, add the theme in your gatsby-config.js:

module.exports = {
  plugins: ['gatsby-theme-superstylin']
}

See the demo for an example.

License

Licensed under the MIT License, Copyright Β© 2018 Enrique Benitez

See license for more information.

You can’t perform that action at this time.