Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
gatsby-theme-style-guide
Advanced tools
Automatically generate a style guide page based on your Theme UI configuration, built with [`@theme-ui/style-guide`](https://theme-ui.com/packages/style-guide).
Automatically generate a style guide page based on your Theme UI configuration, built with @theme-ui/style-guide
.
npm i gatsby-theme-style-guide
// gatsby-config.js
module.exports = {
plugins: ['gatsby-plugin-theme-ui', 'gatsby-theme-style-guide'],
}
This theme will create a page at /style-guide
that includes typographic styles and colors based on your theme.
module.exports = {
plugins: [
'gatsby-plugin-theme-ui',
{
resolve: 'gatsby-theme-style-guide',
options: {
// sets path for generated page
basePath: '/design-system',
},
},
],
}
You can customize the layout and order of the page by shadowing the theme.
component | description |
---|---|
src/template.js | the root component for the page |
src/layout.js | wrapper for adding a page layout |
src/header.js | header for the top of the page |
src/typography.js | section for typography styles |
src/colors.js | section for colors |
For example, to shadow the template.js
file, you would create a file named your-site/src/gatsby-theme-style-guide/template.js
.
FAQs
Automatically generate a style guide page based on your Theme UI configuration, built with [`@theme-ui/style-guide`](https://theme-ui.com/packages/style-guide).
The npm package gatsby-theme-style-guide receives a total of 136 weekly downloads. As such, gatsby-theme-style-guide popularity was classified as not popular.
We found that gatsby-theme-style-guide demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.