Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
The CBP Style Guide to compliment the CBP Theme. The style guide describes CBP theme components and patterns and how to use them.
CBP Style Guide is an open-source Jekyll-based documentation site from US Customs and Border Protection that documents the components, patterns, and colors of the CBP Theme. It serves as a working reference for developers and designers who build sites with the CBP Theme, providing concrete examples and usage guidance rather than just a list of variable names.
The CBP Style Guide is a companion to the CBP Theme, a Jekyll theme published by the US-CBP GitHub organization. Its core function is to describe the theme's components, patterns, and colors and show how to use them in practice. The style guide itself is a static Jekyll site that runs locally on Node.js and uses Grunt for build automation and Bower for front-end dependency management. The repository is hosted on GitHub under an open-source license and welcomes contributions from the public.
The CBP Style Guide offers the following distinct capabilities visible in its repository documentation:
npm run dev compiles the site and serves it at localhost:4000 for quick previewing.npm run build produces a dist folder containing the entire static site and all resources, ready to deploy.Three types of users will find this documentation most useful:
The style guide supports several concrete use cases:
npm run dev or generate a deployable static site with npm run build.The README describes a build process that starts with installing Jekyll and Node.js, then installing Grunt and Bower globally via npm install -g grunt-cli bower. After running npm install to fetch project dependencies, npm run dev compiles the documentation and starts a local server at localhost:4000. A production build uses npm run build to output the static site to a dist directory.
The CBP Style Guide is open-source and free to use, released under the CBP Open Source License. No paid tiers or commercial licensing are mentioned in the repository.
Yes, the project is open-source under the CBP Open Source License, and the source code is publicly available on GitHub. There are no costs mentioned for using or building the documentation.
The README asks you to install Jekyll and Node.js, then install Grunt and Bower globally. After that, npm install fetches dependencies, and npm run dev builds and serves the site.
Run npm run build to create a dist folder that contains the entire static site and resources, which you can then deploy to any web server.
The project welcomes contributions under the CBP open-source policy. You can follow the contribution guide linked from the README to submit changes.
