Skip to content

nhsengland/wordpress-theme

Repository files navigation

NHS England theme

The WordPress theme running on the main site and most subsites of england.nhs.uk.

Plugin dependencies

The theme calls functions from the following plugins:

However, it should function with only ACF PRO. (And it might function without).

Development

Install dependencies

% composer install
% yarn install

Run tests

% vendor/bin/peridot spec -r dot
% vendor/bin/php-cs-fixer fix --dry-run -v --diff

Build assets

% grunt

Code and design style

  • This theme is based on iguana and whippet-theme-template
  • Use SVG inline within the markup and style/position using class names - this is for speed and is good practice at least at the time of writing
  • Graphics / Icons should be made using SS Pika as the icon font - if no icon exists try to create one in the same style or question the need for an icon. Icons should be used graphic symbols and as way-finding points for information contained within the document
  • Colours should be pulled from the NHS colour pallet defined in assets/scss/settings/_colour.scss
  • Type is set in Frutiger and falls back to a system font stack
  • Use the grid defined in assets/scss/helpers/_grid.scss it works in a fractional way so there should be enough flexibility
  • If you need to use similar functional SCSS in multiple files consider adding it to the mixins defined in assets/scss/helpers/_mixins.scss
  • Settings is the place for all common theme settings like; typography, use of colour, margins, padding etc.

Licence

Made by dxw. Licensed under the MIT licence.

About

The WordPress theme for england.nhs.uk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published