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.
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.)
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.
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.
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
The theme is available as open source under the terms of the MIT License.