Coder Social home page Coder Social logo

justinkuntz / gatsby-chakra-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kingsdesigntas/gatsby-chakra-starter

0.0 1.0 0.0 1.88 MB

Hit the ground running with this Gatsby starter project featuring Chakra UI for styling & full Mdx support with automatic image optimisation.

JavaScript 100.00%

gatsby-chakra-starter's Introduction

Gatsby Chakra Starter

By KingsDesign

Hit the ground running with this Gatsby starter project featuring Chakra UI for styling & full Mdx support with automatic image optimisation.

  • Chakra UI with dark theme disabled
  • Mdx Support with automatic Gatsby Image transformation
  • Preact by default
  • Gatsby Root Imports
  • SEO Friendly
  • Typeface from FontSource
  • React Icons

Getting Started

Here's some things you might want to do before you start working:


Using a different font

By default, this project uses Fontsource's npm package for Encode Sans, and imports it via the custom Chakra UI theme.

To use a different font from Fontsource:

  • Run npm remove @fontsource/encode-sans || yarn remove @fontsource/encode-sans
  • Browse fontsource.org and find the package for the font you want
  • Install using the provided commands
  • Open src/@chakra-ui/gatsby-plugin/theme.js
  • Remove imports for Encode Sans
  • Add imports for your selected Fontsource package

Updating your Chakra UI Theme

This project uses a custom Chakra UI theme which can be found in Open src/@chakra-ui/gatsby-plugin/theme.js.

By default, this project has some custom colors & fonts, has useSystemColorMode set to false, and sets the default colour mode to light.

See Chakra UI's theme customization documentation for information about customising this theme, or simply delete src/@chakra-ui if you only want to use the default Chakra UI theme.

Updating your default social sharing image

This project's HeadSEO components sets a default og:image and twitter:image. It also accepts an image prop which can be used to assign a different social sharing image for a page.

To update the default image, add your image file to the src/images folder. Then open src/components/HeadSEO.js and change "defaultSocialShareImage" in the graphql query to the name of your desired default image. Take note that the graphql query is filtering by name, so you should ensure the image file has a unique name, and you do not include its extension in the query.

gatsby-chakra-starter's People

Contributors

jessebenjamin1 avatar

Watchers

 avatar

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.