项目 / alphagov/govuk-design-system
alphagov/govuk-design-system
行业推荐
语言 Nunjucks标签 govuk-design-systemdesign-systemsgovernmentgovuk-design-system-teamportfolio数据更新 2026-11-24 06:50:13 · 仓库 2026-11-23
一段话介绍
这是 GOV.UK Design System 网站的代码仓库。网站会通过 npm 使用 GOV.UK Frontend。若要在服务中复用官方提供的前端代码,应使用 [govuk-frontend](https://github.com/alphagov/govuk-frontend) 仓库。
本站整理,非 GitHub 官方 description。
官方 description(GitHub API 原样)One place for service teams to find styles, components and patterns for designing government services.
官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。
政务事项办理与一网通办
适配系统:政务服务平台、工作流引擎 · 得分 1.4
以事项流程编排与表单驱动为核心,可支撑跨部门联办与办件全流程跟踪。
更多信息
以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。
我的用法
运行该项目需安装 Git 和 Node.js,使用 .nvmrc 指定的 active LTS 版本,并在项目目录运行 nvm install 切换版本。
特点或设计要点
该仓库存放 GOV.UK Design System 网站代码,供服务复用的代码则位于 govuk-frontend 仓库。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
GitHub 项目主页介绍
来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 3,951 字节。
# GOV.UK Design System
This repository contains the code for the GOV.UK Design System website. To find the code we provide for reuse by services, go to the [govuk-frontend repository](https://github.com/alphagov/govuk-frontend).
## Run locally
You'll need [Git](https://help.github.com/articles/set-up-git/) and [Node.js](https://nodejs.org/en/) installed to get this project running.
Note: You will need the [active LTS (Long-term support)](https://github.com/nodejs/Release#release-schedule) Node.js version for this project (as specified in [.nvmrc](./.nvmrc))
### Fork repository (optional)
If you're an external contributor make sure to [fork this project first](https://help.github.com/articles/fork-a-repo/)
### Clone repository
```shell
git clone git@github.com:alphagov/govuk-design-system.git # or clone your own fork
cd govuk-design-system
```
### Using nvm (optional)
If you work across multiple Node.js projects there's a good chance they require different Node.js and npm versions.
To enable this we use [nvm (Node Version Manager)](https://github.com/creationix/nvm) to switch between versions easily.
1. [install nvm](https://github.com/creationix/nvm#installation)
2. Run `nvm install` in the project directory (this will use [.nvmrc](./.nvmrc))
### Install npm dependencies
```shell
npm install
```
### Start a local server
This will build sources, serve pages and watch for changes.
```shell
npm start
```
By default, this will only accept connections from the same machine. If you need to allow external connections, for example if you want to test from another device, you'll need to set the `ALLOW_EXTERNAL_CONNECTIONS` environment variable to `true`:
```shell
ALLOW_EXTERNAL_CONNECTIONS=true npm start
```
## Build
Build `./src` to `./build`
```shell
npm run build
```
## Run the Sass linter
We are using the tool [stylelint][stylelint] to lint the Sass files in
`source/stylesheets`. You can run the linter from command line by running:
```shell
npm run lint
```
[stylelint]: https://github.com/stylelint/stylelint
## GOV.UK Frontend packages
Design System consumes the [GOV.UK Frontend](https://github.com/alphagov/govuk-frontend) package via [NPM](https://www.npmjs.com/).
This is defined in the [package.json](package.json) file.
---
## Continuous integration
When changes are pushed to GitHub, [Github Actions][github-actions] will:
- run the tests
- lint the Sass stylesheets in `source/stylesheets`
- run the `npm run build` command to ensure that the site can be generated
If any of these fail, this will be reported in the GitHub status checks
interface.
[github-actions]: https://github.com/alphagov/govuk-design-system/actions
## Deployment
- [How the Design System is deployed to production](docs/deployment.md#production)
- [How branch and PR previews are deployed](docs/deployment.md#pull-request-previews)
## Security
GDS is an advocate of responsible vulnerability disclosure. If you’ve found a vulnerability, we would like to know so we can fix it.
To learn how to report a security vulnerability, [see our security policy](https://github.com/alphagov/govuk-design-system/security/policy).
## Contributing
The govuk-design-system repository is public and we welcome contributions from anyone.
Contributors to alphagov repositories are expected to follow the [Contributor Covenant Code of Conduct](https://github.com/alphagov/.github/blob/main/CODE_OF_CONDUCT.md#contributor-covenant-code-of-conduct). Contributors working within government are also expected to follow the [Civil Service code](https://www.gov.uk/government/publications/civil-service-code/the-civil-service-code).
We're unable to monitor activity on this repository outside of our office hours (10am to 4pm, UK time). To get a faster response at other times, you can [report abuse or spam to GitHub](https://docs.github.com/en/communities/maintaining-your-safety-on-github/reporting-abuse-or-spam).