# GOV.UK Frontend

> The GOV.UK Design System's HTML, Sass and JS: plain, accessible form and content components for public services.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/govuk-frontend

free

The GOV.UK Design System's HTML, Sass and JS: plain, accessible form and content components for public services.

by Government Digital Service (UK)[GitHub](https://github.com/alphagov/govuk-frontend)[npm](https://npmjs.com/package/govuk-frontend)

[visit](https://design-system.service.gov.uk/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://design-system.service.gov.uk](https://design-system.service.gov.uk/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [U.S. Web Design System](https://tastebase.ehsanulsiam.workers.dev/browse/uswds)

The US government's design system: Sass, HTML and JS components, design tokens and the .gov banner.

no preview

### [Chakra UI](https://tastebase.ehsanulsiam.workers.dev/browse/chakra-ui)

Accessible React components styled through style props and a token system, built on Ark UI.

no preview

### [Ant Design](https://tastebase.ehsanulsiam.workers.dev/browse/ant-design)

Enterprise React design system: 70+ dense components for data-heavy back-office apps.

no preview

### [Flowbite](https://tastebase.ehsanulsiam.workers.dev/browse/flowbite)

Tailwind component classes plus a small JS layer for dropdowns, modals and drawers; React, Vue and Svelte ports.

## Looks that pick it

[Civic / public servicefirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/civic)

## For your agent

##### Install

`npm i govuk-frontend`

##### Use it for

- a UK government or public sector service built to the GOV.UK Service Standard
- a long government service form or eligibility checker, one question per page, with error summary and check-your-answers summary list
- plain, accessible, low-bandwidth forms that still work without JavaScript

##### Skip it when

- a US federal, state or local government site: use uswds
- a SaaS or consumer brand: the plain civic look is the point; use shadcn-ui or heroui

##### What's inside35 free

- Accordion
- Back link
- Breadcrumbs
- Button
- Character count
- Checkboxes
- Cookie banner
- Date input
- Details
- Error message
- Error summary
- Exit this page
- Fieldset
- File upload
- Footer
- Generic header
- GOV.UK header
- Inset text
- Notification banner
- Pagination
- Panel
- Password input
- Phase banner
- Radios
- Select
- Service navigation
- Skip link
- Summary list
- Table
- Tabs
- Tag
- Task list
- Text input
- Textarea
- Warning text

##### Facts

**Frameworks**
vanilla, react, vue, svelte, solid, angular

**Styling**
css

**Weight**
small

**Accessibility**
strong

**Maturity**
established

**License**
MIT

**Price**
Free

##### Alternatives

[U.S. Web Design System](https://tastebase.ehsanulsiam.workers.dev/browse/uswds)

```
// styles.scss
@use "pkg:govuk-frontend" as *;

// app.js
import { initAll } from "govuk-frontend"
initAll()

<div class="govuk-form-group">
  <label class="govuk-label" for="email">Email address</label>
  <input class="govuk-input" id="email" name="email" type="email" autocomplete="email" spellcheck="false">
</div>
<button type="submit" class="govuk-button" data-module="govuk-button">Continue</button>
```

https://design-system.service.gov.uk/components/

Loading website

[Visit](https://design-system.service.gov.uk/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
