Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
The U.S. Web Design System documentation website, a design system for the federal government.
The USWDS Site is the Jekyll-based static site that powers the official documentation and component showcase for the U.S. Web Design System (USWDS), the design system for U.S. federal government digital services.
The USWDS Site is a static website project that builds the official documentation for the U.S. Web Design System (USWDS). It is built with Jekyll and Gulp.js and uses the stable USWDS npm package to provide design system assets. The site takes Jekyll templates, SCSS, and Markdown content as input and outputs a deployable static website, originally intended for hosting on cloud.gov Pages. The repository is maintained by the USWDS team as part of the open-source U.S. federal government design system.
npm install --save "uswds/uswds#v1.3.1" or a specific commit hash.html-templates directory and rendered using a custom library_component Jekyll tag.npm link and the LIBRARY_BASE_URL environment variable.main branch automatically deploy to the live site; each branch generates a public preview.GITHUB_ACCESS_TOKEN avoids API rate limits and the cache can be cleared with rm -rf .jekyll_get_cache.npm run clean, npm run lint, npm test, npm run watch, and npm run serve provide standard development workflows._posts directory.To run the site locally, clone the repository, run npm install and bundle install, then start the server with npm start and open http://127.0.0.1:4000. For development against the latest USWDS code, clone the uswds repository, run npm run build and npm link, then link it into the site and set LIBRARY_BASE_URL to the local USWDS preview server. The site rebuilds on file changes with npm run watch.
Clone the repository, install dependencies with npm install and bundle install, then run npm start. The site will be served at http://127.0.0.1:4000 in your browser.
Yes. Clone the uswds repository, build it with npm run build, run npm link in that directory, then run npm link uswds inside the uswds-site directory. Set the LIBRARY_BASE_URL environment variable to point to the local USWDS preview server, then run npm run serve and npm run watch.
The USWDS code is included as a Git dependency in package.json. To install a specific commit, run npm install --save "uswds/uswds#commit-hash"; for a version tag, use something like npm install --save "uswds/uswds#v1.3.1". Use an official version tag for commits to the main branch.
The site is deployed with cloud.gov Pages. Changes pushed to the main branch automatically update the live production site, and public previews are created for other branches.
Review the contributing guidelines in the repository, then submit a pull request. To add an item to the "Updates" section, follow the instructions in the _posts directory.
