More Premium Hugo Themes Premium React Themes

Govuk React

An implementation of the GOV.UK Design System in React using CSSinJS

Govuk React

An implementation of the GOV.UK Design System in React using CSSinJS

Author Avatar Theme by govuk-react
Github Stars Github Stars: 435
Last Commit Last Commit: Sep 19, 2024 -
First Commit Created: Apr 29, 2023 -
default image

Overview:

govuk-react is an implementation of the GOV.UK Design System in React using CSS-in-JS with styled-components. It aims to track various projects for component implementation and appearance, prioritizing existing CSS as a guide. The project is utilized by various government departments and agencies and is maintained by volunteers.

Features:

  • Implementation of GOV.UK Design System in React
  • CSS-in-JS using styled-components
  • Tracking of project components and appearance
  • Compatible with existing govuk pattern sites

Installation:

To install govuk-react, follow these steps:

  1. Install the package from npm:
npm install govuk-react
  1. Import the GlobalStyle component on all pages:
import { GlobalStyle } from 'govuk-react';
  1. Include the GDS Transport font face (for gov.uk domains only).

  2. Optionally, include normalize.css or sanitize.css as a CSS reset.

Summary:

govuk-react is a React implementation of the GOV.UK Design System that uses CSS-in-JS with styled-components. It allows for the inclusion of styles inside a module bundle that can be published and consumed by a peer application without relying on a specific CSS build system. It is used by various government departments and agencies and is maintained by volunteers.