The U.S. Web Design System documentation website, a design system for the federal government.
The U.S. Web Design System documentation is a repository that includes code and documentation for the U.S. Web Design System website. It utilizes Jekyll for the file framework, gulp for task management, and the node module for USWDS. This documentation provides information on the USWDS components and codebase.
Before you start, make sure you have the following installed on your machine:
To install the U.S. Web Design System documentation, follow these steps:
npm install
npm start
127.0.0.1:4000
to view the local instance of designsystem.digital.gov.Additional utility commands:
npm run clean
: Cleans out copied-over dependency assets.npm run lint
: Runs eslint and sass-lint against JavaScript and Sass files.npm test
: Runs all tests and linters.npm run watch
: Monitors changes in both USWDS node module and the root level asset folders in this repo.npm start -- --incremental
or npm run serve
: Runs your local server with incremental regeneration enabled for faster build time.Using the latest version of the uswds
package:
uswds
repository.npm install
in the uswds
directory.npm run build
in the uswds
directory.uswds
directory and run npm link
.uswds
directory, run npm link uswds
.The U.S. Web Design System documentation provides code and documentation for building websites using the U.S. Web Design System. It requires the installation of Ruby, Node, and other dependencies. Once installed, users can run a local server to view a local instance of designsystem.digital.gov. Additionally, there are utility commands available for cleaning, linting, testing, and watching for changes. The documentation also provides instructions for using the latest version of the uswds
package.