Skip to content

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

Notifications You must be signed in to change notification settings

kingsdesigntas/gatsby-chakra-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published