Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Gatsby.js V2 starter template based on HTML5 UP's Photon design, featuring a custom CSS Grid layout.
Gatsby Starter Photon is a free, open-source Gatsby.js V2 starter template that recreates the Photon site design created by HTML5 UP. It provides a complete starting point for building a static website with the Gatsby framework, using a custom CSS Grid system for responsive layouts. The template is maintained by Codebushi and can be previewed at gatsby-photon.surge.sh.
Gatsby Starter Photon is a starter kit for the Gatsby static site generator that ports the HTML5 UP Photon design into a React-based Gatsby project. Running gatsby new with the repository URL produces a new Gatsby site pre-configured with the Photon layout. The template runs on Gatsby.js V2 and is published by Codebushi, a provider of Gatsby starters and themes.
grid-wrapper container and col- classes (e.g., col-4 for a third of the width) that stacks on mobile.gatsby new gatsby-starter-photon https://github.com/codebushi/gatsby-starter-photon followed by gatsby develop.gatsby-starter-default.To use the starter, run gatsby new gatsby-starter-photon https://github.com/codebushi/gatsby-starter-photon from your CLI, then start the development server with gatsby develop. The grid system works by wrapping items in a div with class grid-wrapper; inside it, add child divs with col- classes that sum to 12, such as three col-4 divs for a three-column layout.
Yes, the starter is open source. You can clone or fork the repository from GitHub at https://github.com/codebushi/gatsby-starter-photon and use it without a license fee.
The template uses a custom 12-column grid built with CSS Grid. Add a grid-wrapper class to a container, then give its children col- classes whose numbers add up to 12 (for example, col-4, col-4, col-4). It does not rely on a CSS framework like Bootstrap.
No, the custom grid is disabled on mobile. When the screen is small, the columns automatically stack into a single column instead of attempting to maintain the 12-column layout.
The starter was built for Gatsby.js V2. While it may work with later Gatsby releases, the project targets the V2 API and plugin set, so you may need to update dependencies yourself.