The design system CSS is published as sfgov-design-system npm. You can install it in your project with:
npm install sfgov-design-system
The current version is
2.5.1. See the release history for other available versions and release notes.
We use semantic versioning conventions to number our release versions:
Bug fixes, documentation updates, and development-related updates are patch versions, e.g.
New features are minor versions, e.g.
Breaking changes, or any other changes that may break any sites that upgrade from the previous version, are major versions, e.g.
There are many content delivery networks that mirror npm packages. For instance,
to import all of the design system CSS from the latest version of the npm
package from unpkg, you could add the following to your
<link rel="stylesheet" href="https://unpkg.com/dist/sfds.css">
See the CSS guide for more detailed usage instructions.
Generally speaking, our CSS supports the same browsers as Tailwind (as of version 2.x, "the latest stable versions of Chrome, Firefox, Edge, and Safari"). Starting in version 2.0, Tailwind notably introduced the use of CSS custom properties (also known as "CSS variables"), which are supported by approximately 95% of browsers relative to usage as of August, 2021.
Internet Explorer is not supported. Microsoft announced that it will no longer support the browser on June 15, 2022, and its usage has declined rapidly since. In July of 2021 there were 7 unique visitors using Internet Explorer on sf.gov.