Giter Club home page Giter Club logo

gatsby-theme-superstylin's Introduction

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.

gatsby-theme-superstylin's People

Contributors

bntzio avatar dependabot[bot] avatar dominictracey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gatsby-theme-superstylin's Issues

Cannot develop

module.js:471
throw err;
^

Error: Cannot find module 'C:\Users\Π‘Π΅Ρ€Π³Π΅ΠΉ\Documents\GitHub\my-blog/html'
at Function.Module._resolveFilename (module.js:469:15)
at Function.resolve (internal/module.js:27:19)

How do I use this?

Easy to customize and to get started with your own Gatsby site

Is it really easy? Im having challenges. Your Hero.js component has many imports/ dependencies. If I want to change anything, I need to shadow the entire project (duplicate your entire project into the src folder?), because it is a theme?

Is it because your project is currently not suited to be a theme, or am I just totally incompetent at Gatsby?

What was the motivation in moving from starter to theme?

No 404

Invalid routes are not caught it seems. The 404 doesn't display.

hedron styles not rendered

There seems to be some styles that don't render in the build process. Eg. hedron does not seem to work.

It's apparent on the About page as the content jumps as the javascript styles is getting loaded:
https://superstylin.netlify.com/about/

Tried to fix it but with no success. Any solution to this?

First build : Error Duplicate declaration "Row"

npm install -g gatsby

gatsby new app-ss https://github.com/bntzio/gatsby-starter-superstylin

cd ./app-ss/

gatsby develop

Lead to :

ERROR in ./components/styled/index.js Module build failed: C:/.../components/styled/index.js: Duplicate declaration "Row" export const Row = styled(HedronRow)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.