5.1.2 • Published 8 months ago

@lekoarts/gatsby-theme-styleguide v5.1.2

Weekly downloads
206
License
MIT
Repository
github
Last release
8 months ago

Instantly create a styleguide page based on your Theme UI configuration. Zero-config — just install the theme and see your Theme UI config displayed in a beautiful manner.

Live Preview

Read the Source Code.

Also be sure to check out other Free & Open Source Gatsby Themes and my Personal Website.

Features

  • Automatic styleguide based on your Theme UI configuration
  • Displays colors (individual and palettes), typography (font family, weights, sizes, headings), and a spacing scale
  • Uses @lekoarts/gatsby-theme-specimens under the hood. You can use components from it to extend your styleguide page

Installation

npm install @lekoarts/gatsby-theme-styleguide theme-ui

This theme has theme-ui defined as a peerDependency so make sure to also install it if you don't use it already.

Install as a starter

This will generate a new site that pre-configures the theme including example content and additional plugins.

npx gatsby new gatsby-starter-styleguide https://github.com/LekoArts/gatsby-starter-styleguide

View the starter's code

Usage

Theme options

KeyDefault ValueDescription
basePath/style-guideRoot url for the theme

Example usage

// gatsby-config.mjs
const config = {
  plugins: [
    {
      resolve: `@lekoarts/gatsby-theme-styleguide`,
      options: {
          basePath: `/`,
        }
      }
    }
  ]
}

export default config

Shadowing

Please read the guide Shadowing in Gatsby Themes to understand how to customize the theme! Generally speaking you will want to place your files into src/@lekoarts/gatsby-theme-styleguide/ to shadow/override files.

Examples

ComponentDescription
src/template.tsxUsed by createPage function and holds all following components
src/layout.tsxWrapper for adding a page layout (e.g. max-width)
src/header.tsxHeader for the top of the page ("Style Guide")
src/colors.tsxSection for colors
src/typography.tsxSection for typography styles
src/space.tsxSection for space
src/footer.tsxFooter section (holding the theme notice)

Please keep in mind that you can shadow .tsx files also with .js/.jsx files.

Changelog

You can find the extensive changelog of changes on GitHub. You'll be able to see each patch, minor, and major changes and what pull requests contributed to them.

Questions?

If you have general questions or need help with Gatsby, please go to one of the support platforms mentioned in Gatsby's documentation. If you have a specific question about this theme, you can head to the GitHub Discussions of the repository.

🌟 Supporting me

Thanks for using this project! I'm always interested in seeing what people do with my projects, so don't hesitate to tag me on Twitter and share the project with me.

Please star this project, share it on Social Media or consider supporting me on GitHub Sponsors!

5.1.2

8 months ago

5.1.1

8 months ago

5.1.0

1 year ago

5.0.0

1 year ago

4.0.1

2 years ago

4.0.0

2 years ago

3.0.1

2 years ago

2.0.1

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.1.18

3 years ago

1.1.17

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago