Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A minimalist Gatsby Theme for a glossary built with MDX and Theme UI.
gatsby-theme-glossary is a minimalist Gatsby Theme that builds a per-letter glossary page from MDX files, styled with Theme UI and released under the MIT license.
It is a Gatsby Theme plugin that renders a glossary page from a directory of MDX files, one file per alphabet letter (a.mdx, b.mdx, and so on through z.mdx). The theme takes a configured content directory as input and produces a mobile-friendly glossary page at a configurable base path. It is built on MDX for content, uses Theme UI for styling, and is distributed as an npm package installable with yarn or npm.
Install with yarn add gatsby-theme-glossary, register the theme in gatsby-config.js, and create MDX files named by letter in the default 'glossary' directory (or your contentPath). Each file's name is the single letter that determines the alphabetical section. The glossary page is then generated at basePath during Gatsby's build.
The theme is open-source under the MIT license, so it is free to use with no paid tier or account required.
Run yarn add gatsby-theme-glossary (or the npm equivalent) and add 'gatsby-theme-glossary' to the plugins array in your gatsby-config.js. The defaults work immediately; you only need to supply MDX files.
Create a file at src/gatsby-theme-glossary/description.mdx and write your own markdown. The theme shadows this file and renders its content underneath the glossary title.
Yes. The theme intentionally includes no layout. Shadow src/gatsby-theme-glossary/components/layout.js and export your own layout, for example re-exporting from your site's existing layout component.
It accepts two options: contentPath (default 'glossary'), the directory containing the MDX files, and basePath (default 'glossary'), the URL path for the glossary page. Set them in the plugin options object inside gatsby-config.js.
Yes. It is released under the MIT license, so you can use, modify, and redistribute it freely, including in commercial projects.
