No commit activity in last 3 years
No release in over 3 years
Prototyping kit for GOV.UK as a Jekyll theme
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.12
~> 10.0
 Project Readme

govuk-jekyll

This is an experimental theme for the Jekyll static publishing framework.

It may be suitable for prototyping, or for publishing simple static content such as documentation or style guides.

Installation

Add this line to your Jekyll site's Gemfile:

gem "govuk-jekyll-theme"

And add this line to your Jekyll site's _config.yml:

theme: govuk-jekyll-theme

And then install the theme using:

$ bundle

Note: to use this theme with GitHub Pages you will also need to add the following to the _config.yml file:

remote_theme: frankieroberto/govuk-jekyll-theme

(This is because GitHub installs the theme directly from a GitHub repository rather than from RubyGems.)

Usage

The theme contains all of the CSS styles and assets from GOV.UK Elements and from the GOV.UK Frontend Toolkit.

This means that there’s a basic layout, including the GOV.UK global header and footer, as well as styles for typography, buttons, form elements and icons.

Contributing

If you’d like to propose a change to some of the underlying styles or assets, it’s best to do that 'upstream' on the original source. Confusingly, there are three separate Git repositories whose contents are combined to make this theme, so you’ll need to figure out which one contains the code you’d like to suggest a change for. These are:

If you have any suggestions about how the packaging-these-up-as-Jekyll-theme process could be improved, though, they would be very welcome. You can do that by adding an issue or submitting a pull request to the GitHub repository for this theme.

Development

To set up your environment to develop this theme, you’ll need both npm and Bundler.

Then run npm install to install the source requirements for this theme specified in package.json. After this the package.sh script will be run to manually copy the relevant .scss files into the _sass folder, and the images into assets.

The theme can then be packaged up as a Rubygem locally by running:

gem build govuk-jekyll.gemspec

You can then install it locally by running:

 gem install govuk-jekyll-theme-*.gem

License

The theme is available as open source under the terms of the MIT License.