About USWDS

Release notes

USWDS is an ever-evolving product. We’ve been listening to your feedback and using it as a basis for improvements and additions.

Here you’ll find our release notes — summaries of bug fixes, new features, and other updates introduced in each release.

Have suggestions for a new feature or bug fix? Open an issue in our repo.

Version 2.1.0

August 14, 2019

Made it simpler to subset the design system and include only the components your project needs with USWDS packages.

  • Thanks @turnerhayes for getting the ball rolling here, even if the final product might not be what you envisioned!
  • Created custom packages in stylesheets/packages used to import only code related to the component package (ie @import uswds-banner)
  • Analyzed each USWDS component’s stylesheet dependencies
  • Left existing default build process alone (ie @import uswds)
  • Allows users to dramatically reduce the USWDS code footprint
package .css .min .zip
default USWDS 359 271 40 KB
form-controls 18 15 3
form-templates 60 47 6
typography 17 15 3
validation 32 28 5
usa-accordion 13 12 2
usa-alert 13 12 2
usa-banner 50 38 5
usa-button 19 16 3
usa-checklist 11 9 2
usa-footer 59 46 6
usa-header 113 63 9
usa-hero 48 37 5
usa-media-block 10 9 2
usa-search 29 25 4
usa-sidenav 12 10 2
usa-skipnav 10 9 2
usa-table 11 9 2
usa-tag 10 9 2
usa-header + usa-footer 162 72 10
usa-banner + usa-footer 99 55 7

Reorganized the source code (in the stylesheets directory) to better reflect its relationship to the build process:

  • Split subcomponents into separate files
  • Move global stylesheets into their own folder
  • Move all code-emitting source out of required dependencies

Version 2.0.3

June 07, 2019

  • Fixed a bug that prevented in-page anchor links from linking properly from the main nav (https://github.com/uswds/uswds/pull/3059)
  • Updated to Public Sans 1.005

Version 2.0.2

May 08, 2019

Fixed

  • Fixed a bug where footer sections were closing on iOS when a user scrolled up and down. Thanks @joncasey! (https://github.com/uswds/uswds/pull/3047)
  • Fixed a bug where uswds.css was outputting minified (https://github.com/uswds/uswds/pull/3050)

Updated

  • Now using primary-dark for our default link hover instead of primary-darker (https://github.com/uswds/uswds/pull/3023)
  • Improved the reliability of our Snyk integration (https://github.com/uswds/uswds/pull/3028)
  • Changed the title typography mixin to display to make it more clear that it’s meant for the largest type on the page, not necessarily for the title or h1 (https://github.com/uswds/uswds/pull/3034)
  • Changed the max date to 2019 for the date input (https://github.com/uswds/uswds/pull/3039)
  • Linted all development Javascript against Airbnb eslint
  • Updated to Public Sans v1.003

Version 2.0.1

April 05, 2019

Fixed

  • Remove png from external link mixin and checkmark input print style

Version 2.0.0

April 04, 2019

USWDS 2.0 is a new foundation for the future of our design system. This new version was designed to make it easier for any project to integrate USWDS and use it to support both your mission and the needs of your audience. It introduces a powerful toolkit of new features to help make creating useful, consistent digital services faster, simpler, and more fun.

New and notable features:

  • Easier incremental adoption
  • Practical design tokens, functions, and mixins
  • Accessible color system
  • Expressive theming
  • Powerful utility classes
  • Simplified 12-column layout grid
  • Introducing the Public Sans typeface
  • A stable foundation that’s built to grow

:rocket: More about USWDS 2.0


Changes from Beta 7 to 2.0

  • Removed unneeded PNG fallbacks for images since we no longer support the bowsers that require them. (https://github.com/uswds/uswds/pull/3007)
  • Updated our icon colors to USWDS 2.0 tokens (https://github.com/uswds/uswds/pull/3007)
  • Now you can use token values of .5 and -.5 — without leading zeros — in functions and mixins. Thanks @dmethvin-gov! (https://github.com/uswds/uswds/pull/3009)
  • The u-outline() mixin now properly accepts all the tokens it’s meant to accept. Thanks @jeremyzilar! (https://github.com/uswds/uswds/pull/3012)
  • Added u-overflow-x() and u-overflow-y() mixins to match utilities. Thanks @jeremyzilar! (https://github.com/uswds/uswds/pull/3012)
  • The offset-none utilities now support responsive prefixes as intended. Thanks @robertromore! (https://github.com/uswds/uswds/pull/3014)

Version 1.6.10

March 25, 2019

  • Radio buttons are now printable (https://github.com/uswds/uswds/pull/2857)
  • We documented our supported Node and NPM versions in the README (https://github.com/uswds/uswds/pull/2969)
  • Non-focusable elements no longer get a focus indicator in Windows 11. Thanks @ncksllvn! (https://github.com/uswds/uswds/pull/2983)

Version 2.0.0 Beta 7 (Release candidate)

March 25, 2019

Bug fixes

  • Radio buttons are now printable (https://github.com/uswds/uswds/pull/2950)
  • Slim alert has the correct (smaller) icon size alert (https://github.com/uswds/uswds/pull/2946)
  • usa-alert--no-icon has proper padding (https://github.com/uswds/uswds/pull/2959)
  • Font stacks now output properly. Thanks @stphnwlkr! (https://github.com/uswds/uswds/pull/2947)
  • Non-focusable elements no longer get a focus indicator in Windows 11. Thanks @ncksllvn! (https://github.com/uswds/uswds/pull/2988)
  • All type tokens (even lang, cond, and icon) output proper theme font size utilities. (https://github.com/uswds/uswds/pull/2980)

Improvements

  • ⚠️ breaking change: gov banner markup now points to the flag in the img folder and not the favicon (https://github.com/uswds/uswds/pull/2985)
  • ⚠️ breaking change: hero component now uses an h1 for its tagline for better accessibility (https://github.com/uswds/uswds/pull/2973)
  • ⚠️ breaking change: Removed the alert paragraph component as its functionality is now better controlled with utilities. (https://github.com/uswds/uswds/pull/2990)
  • ⚠️ breaking change: BEM implementation is clearer and more consistent:
old new
.usa-button-unstyled .usa-button.usa-button--unstyled
.usa-unstyled-list .usa-list.usa-list--unstyled
.usa-linput-list removed
ul and li for checkbox just div.usa-checkbox
.usa-checkbox-input .usa-checkbox__input
.usa-checkbox-label .usa-checkbox__label
ul and li for radio buttons just div.usa-radio
.usa-radio-input .usa-radio__input
.usa-radio-label .usa-radio__label
.media_link .usa-media-link
.usa-font-lead .usa-intro
.usa-form-hint .usa-hint
.usa-label-helper .usa-hint
.usa-input-error-message .usa-error-message
.usa-mobile-nav-active .usa-js-mobile-nav--active
  • ⚠️ breaking change: Updated footer-big component to use new BEM (https://github.com/uswds/uswds/pull/2974)
  • ⚠️ breaking change: Updated measure tokens to conform to guidance and be more reliable (https://github.com/uswds/uswds/issues/2960 and https://github.com/uswds/uswds/pull/2981)
token old value new value migration old → new
1 40ch 44ex 11
2 60ch 60ex 24
3 66ch 64ex 35
4 72ch 68ex 45
5 77ch 72ex 56
6 88ex
  • Tightened letterspacing of letterspacing 1 to conform to guidance for small text (https://github.com/uswds/uswds/pull/2965)
  • Documented supported Node and NPM versions in the README (https://github.com/uswds/uswds/pull/2968)
  • Update to most current versions of Source Sans Pro and Merriweather. Thanks @miguelsousa! (https://github.com/uswds/uswds/pull/2934)
  • Updated the favicon to match our logo (https://github.com/uswds/uswds/pull/2985)
  • Removed EOT and SVG font versions since we do not support IE8 or Safari older than 4.1. Thanks @miguelsousa! (https://github.com/uswds/uswds/pull/2989)

Public Sans

  • Fixed a display error resulting in poor font rendering on Windows. Thanks @fat32 and @stphnwlkr! (https://github.com/uswds/public-sans/pull/27)
  • Lightened the regular weight (https://github.com/uswds/public-sans/pull/27)
  • Updated the license to restore the original author’s copyright and remove the reserved font name to conform to SIL OFL best practices. Thanks @davelab6! (https://github.com/uswds/public-sans/pull/27)
  • Coming soon: a new url for specimen site (https://public-sans.digital.gov)

Internal / CI

  • Updated to Gulp 4 (https://github.com/uswds/uswds/pull/2957)
  • Addressed all outstanding Snyk vulnerabilities

Version 2.0.0 Beta 6

March 11, 2019

This release features some significant breaking changes, but it should be the last release of major code changes before the final release of USWDS 2.0.

Bug Fixes

  • Added the missing u-order() utility mixin

Improvements

General

We’re now adding the USWDS version number to our settings files to better communicate which version of settings files your project uses. (Thanks @jeremyzilar!)

The layout grid now has its own switch for using !important (general > $theme-layout-grid-uses-important) instead of being connected to the $theme-utilities-use-important variable.

We’re now flipping the caret in dropdown menus when the menu is open to consistently indicate that it is closable (#2616)

Typography

We’ve added two new font-types to typography settings: lang and icon for icon fonts and language-specific fonts (#2683)

There’s now support for adding custom font stacks and custom font source files in the typography settings file. (#2858)

Adding custom typefaces is now a bit simpler and actually works. (#2858)

We’ve improved the font rendering speed by adding font-display: fallback to our @font-face declarations (#2744)

Global styling options and prose scope are simpler and more streamlined. (#2814)

  • Removed $theme-content-styles and its options (global, scoped, none)
  • Now usa-prose always applies content styles to its direct children
  • Replaced the $theme-global-styles-basic variable with three explicit global styling vars — each set to false by default.
    • $theme-global-paragraph-styles applies styling to p elements
    • $theme-global-link-styles applies styling to a elements
    • $theme-global-content-styles applies styling to p, a, h[1-6], ol, ul, and table elements
  • Now USWDS will only apply global styling when the user enables it.

There’s better, more clear documentation in the typography settings

previous setting Beta 6 equivalent
$theme-content-styles: 'scoped' no explicit setting necessary
$theme-content-styles: 'global' $theme-global-content-styles: true
$theme-content-styles: 'none' $theme-global-paragraph-styles: false
  $theme-global-link-styles: false
  $theme-global-content-styles: false
$theme-global-styles-basic: true $theme-global-paragraph-styles: true
  $theme-global-link-styles: true

Breaking typography changes

old settings new settings
$theme-font-path in settings-general $theme-font-path in settings-typography
$theme-font-definitions $theme-typeface-tokens
$theme-font-definitions.[token].name $theme-typeface-tokens.[token].display-name
removed generate, system-font, and variable-font keys from typeface token maps
moved custom font source and directory data to $theme-font-[type]-custom-src
moved custom font stack data to $theme-font-[type]-custom-stack
$theme-font-[type] $theme-font-type-[type]
$theme-font-[role] $theme-font-role-[role]
$theme-font-[role] accepts $theme-font-[type] variables $theme-font-[role] accepts font-type tokens like 'mono', 'sans', and 'serif'
$theme-output-all-weights $theme-generate-all-weights
no longer import core/font-definitions — this file is deprecated
$theme-global-styles-basic $theme-global-paragraph-styles, $theme-global-link-styles, and $theme-global-content-styles
basic styles set to true by default basic styles (paragraph and link styles) set to false by default

Class names

We’ve decided to use BEM naming for our class naming for disambiguation and consistency with industry norms. This is a major change that affects a majority of USWDS classes.

  • Use BEM for class naming: .usa-block-name__element-name--modifier (#2915)
  • Use single hyphens for all blocks and elements (.usa-media-block)

typography

Beta 5 Beta 6
usa-background-dark usa-dark-background
usa-content usa-content
usa-content-list usa-content-list
usa-display usa-display
usa-external_link usa-link--external
usa-external_link-alt usa-link--external.usa-link--alt
usa-font-lead usa-font-lead
usa-heading-alt usa-heading-alt
usa-link usa-link
usa-paragraph usa-paragraph
usa-prose usa-prose

button

Beta 5 Beta 6
usa-button usa-button
usa-button-accent-cool usa-button--accent-cool
usa-button-active usa-button--active
usa-button-base usa-button--base
usa-button-big usa-button--big
usa-button-disabled usa-button--disabled
usa-button-hover usa-button--hover
usa-button-outline usa-button--outline
usa-button-outline usa-button--outline
usa-button-outline-disabled
usa-button-outline-inverse usa-button--outline.usa-button--inverse
usa-button-outline-inverse-disabled
usa-button-secondary usa-button--secondary
usa-button-unstyled usa-button-unstyled
usa-focus usa-focus

embed

Beta 5 Beta 6
usa-embed-container usa-embed-container

figure

Beta 5 Beta 6
usa-media_link usa-media-link

inputs

Beta 5 Beta 6
usa-checkbox-input usa-checkbox__input
usa-checkbox-label usa-checkbox__label
usa-fieldset usa-fieldset
usa-form-group usa-form-group
usa-form-group-day usa-form-group--day
usa-form-group-error usa-form-group--error
usa-form-group-month usa-form-group--month
usa-form-group-year usa-form-group--year
usa-form-hint usa-form__hint
usa-input usa-input
usa-input-inline usa-input--inline
usa-input-medium usa-input--medium
usa-input-small usa-input--small
usa-input-success usa-input--success
usa-input-error usa-input--error
usa-input-error-message usa-input-error-message
usa-input-label-helper usa-input__label-helper
usa-input-label-required usa-input__label-required
usa-input-list usa-input-list
usa-label usa-label
usa-label-error usa-label--error
usa-legend usa-legend
usa-memorable-date usa-memorable-date
usa-radio-input usa-radio__input
usa-radio-label usa-radio__label
usa-range usa-range
usa-select usa-select
usa-textarea usa-textarea

list

Beta 5 Beta 6
usa-list usa-list
usa-unstyled-list usa-unstyled-list

table

Beta 5 Beta 6
usa-table usa-table
usa-table-borderless usa-table--borderless

tag

Beta 5 Beta 6
usa-tag usa-tag
usa-tag-big usa-tag--big

accordions

Beta 5 Beta 6
usa-accordion usa-accordion
usa-accordion-bordered usa-accordion--bordered
usa-accordion-button usa-accordion__button
usa-accordion-content usa-accordion__content
usa-accordion-heading usa-accordion__heading

alerts

Beta 5 Beta 6
usa-alert usa-alert
usa-alert-error usa-alert--error
usa-alert-no-icon usa-alert--no-icon
usa-alert-slim usa-alert--slim
usa-alert-success usa-alert--success
usa-alert-warning usa-alert--warning
usa-alert-body usa-alert__body
usa-alert-heading usa-alert__heading
usa-alert-icon usa-alert__icon
usa-alert-info usa-alert__info
usa-alert-paragraph usa-alert__paragraph
usa-alert-text usa-alert__text

banner

Beta 5 Beta 6
banner-header-expanded usa-banner__header--expanded
usa-banner usa-banner
usa-banner-button usa-banner__button
usa-banner-button-text usa-banner__button-text
usa-banner-content usa-banner__content
usa-banner-guidance usa-banner__guidance
usa-banner-header usa-banner__header
usa-banner-header-action usa-banner__header-action
usa-banner-header-close-text usa-banner__header-close-text
usa-banner-header-expanded usa-banner__header-expanded
usa-banner-header-flag usa-banner__header-flag
usa-banner-header-text usa-banner__header-text
usa-banner-icon usa-banner__icon
usa-banner-inner usa-banner__inner

checklist

Beta 5 Beta 6
is-checked is-checked
usa-checklist usa-checklist
usa-checklist-checked usa-checklist__checked
usa-checklist-item usa-checklist__item
Beta 5 Beta 6
usa-footer usa-footer
usa-footer-big usa-footer--big
usa-footer-slim usa-footer--slim
usa-footer-address usa-footer__address
usa-footer-collapsible usa-footer__primary-content--collapsible
usa-footer-contact-heading usa-footer__contact-heading
usa-footer-contact-links usa-footer__contact-links
usa-footer-contact-info usa-footer__contact-info
usa-footer-logo usa-footer__logo
usa-footer-logo-heading usa-footer__logo-heading
usa-footer-logo-img usa-footer__logo-img
usa-footer-nav usa-footer__nav
usa-footer-primary-content usa-footer__primary-content
usa-footer-primary-link usa-footer__primary-link
usa-footer-primary-section usa-footer__primary-section
usa-footer-return-to-top usa-footer__return-to-top
usa-footer-secondary-link usa-footer__secondary-link
usa-footer-secondary-section usa-footer__secondary-section
usa-footer-social-links usa-footer__social-links
usa-social-link usa-social-link
usa-social-link-facebook usa-social-link--facebook
usa-social-link-rss usa-social-link--rss
usa-social-link-twitter usa-social-link--twitter
usa-social-link-youtube usa-social-link--youtube
usa-sign_up-block usa-sign-up
usa-sign_up-header usa-sign-up__heading

forms

Beta 5 Beta 6
usa-form usa-form
usa-form-large usa-form--large
usa-input-medium usa-input--medium
usa-input-small usa-input--small
usa-form-note usa-form__note

graphic list

Beta 5 Beta 6
usa-graphic-list usa-graphic-list
usa-graphic-list-heading usa-graphic-list__heading
usa-graphic-list-row usa-graphic-list__row

header

Beta 5 Beta 6
usa-current usa-current
usa-header usa-header
usa-header-basic usa-header--basic
usa-header-megamenu usa-header--megamenu
usa-header-extended usa-header--extended
usa-header-extended-megamenu usa-header-extended-megamenu
usa-logo usa-logo
usa-logo-text usa-logo__text
usa-megamenu usa-megamenu
usa-menu-btn usa-menu-btn
usa-nav usa-nav
usa-nav-container usa-nav__container
usa-nav-inner usa-nav__inner
usa-nav-link usa-nav__link
usa-nav-primary usa-nav__primary
usa-nav-submenu usa-nav__submenu
usa-navbar usa-navbar
usa-overlay usa-overlay
usa-search usa-search

hero

Beta 5 Beta 6
usa-hero usa-hero
usa-hero-callout usa-hero__callout
usa-hero-callout-alt usa-hero__callout-alt
usa-hero-heading usa-hero__heading

layout

Beta 5 Beta 6
usa-layout-docs-main usa-layout__docs-main
usa-layout-docs-sidenav usa-layout__docs-sidenav

media block

Beta 5 Beta 6
usa-media_block-body usa-media-block__body
usa-media_block-img usa-media-block__img

navigation

Beta 5 Beta 6
usa-accordion-button usa-accordion__button
usa-megamenu usa-megamenu
usa-mobile-nav-active usa-mobile-nav--active
usa-nav usa-nav
usa-nav-close usa-nav__close
usa-nav-container usa-nav__container
usa-nav-primary usa-nav__primary
usa-nav-primary-item usa-nav__primary-item
usa-nav-secondary usa-nav__secondary
usa-nav-secondary-item usa-nav__secondary-item
usa-nav-secondary-links usa-nav__secondary-links
usa-nav-submenu usa-nav__submenu
usa-nav-submenu-item usa-nav__submenu-item
usa-nav-submenu-list usa-nav__submenu-list
usa-nav-submenu-list-item usa-nav__submenu-list-item
usa-navbar usa-navbar
usa-search usa-search
Beta 5 Beta 6
usa-search usa-search
usa-search-big usa-search--big
usa-search-small usa-search--small
usa-search-input usa-search__input
usa-search-submit usa-search__submit
usa-search-submit-text usa-search__submit-text

section

Beta 5 Beta 6
usa-section usa-section
usa-section-dark usa-section--dark
usa-section-light usa-section--light

sidenav

Beta 5 Beta 6
usa-sidenav usa-sidenav
usa-sidenav-sublist usa-sidenav__sublist

skipnav

Beta 5 Beta 6
usa-skipnav usa-skipnav

Version 2.0.0 Beta 5

February 20, 2019

Bug fixes

  • The borderless table variant now displays properly in prose scope (https://github.com/uswds/uswds/pull/2881)
  • Grid columns now display properly when your project doesn’t explicitly include component styles (https://github.com/uswds/uswds/pull/2900)
  • Extra large content no longer breaks fill and auto columns. (https://github.com/uswds/uswds/pull/2900)
  • List items now have a maximum width, similar to their <p> counterparts. Additionally, when a list is the last child of a container, it now does have any bottom margin. Thanks @adunkman! (https://github.com/uswds/uswds/pull/2906)
  • Media query styling now applies to print jobs, fixing a number of current issues with print output. (https://github.com/uswds/uswds/pull/2910)

Improvements

More up-to-date node dependency (https://github.com/uswds/uswds/pull/2900) We updated the required node version to the current LTS version of node (10.15.1) and updated our dependencies to build properly in this environment.

Now we’re exposing some internal component variables to user-accessible settings (https://github.com/uswds/uswds/pull/2901) Here’s what we added:

// Accordion
$theme-accordion-border-width:        0.5;
$theme-accordion-border-color:        'base-lightest';

// Alert
$theme-alert-bar-width:               1;
$theme-alert-icon-size:               4;
$theme-alert-padding-x:               2.5;

// Banner
$theme-button-stroke-width:           2px;

// Footer
$theme-input-select-border-width:     2px;
$theme-input-select-size:             2.5;
$theme-input-state-border-width:      0.5;

We expanded and improved our system color families and theme defaults These new colors are a bit more harmonious, and have a better 1.x-to-2.0 conversion.

  • Added a blue-cool color family (https://github.com/uswds/uswds/pull/2902)
  • Added a red-cool family (https://github.com/uswds/uswds/pull/2911)
  • Saturated gold-20v (https://github.com/uswds/uswds/pull/2911)
  • Desaturated blue-cool standard colors and added vivid variants (https://github.com/uswds/uswds/pull/2911)
  • Made small hue consistency modifications to the following families (https://github.com/uswds/uswds/pull/2911):

    • blue-warm
    • blue
    • gold
    • gray-cool
    • green-cool
    • mint
    • orange
    • red-cool
    • red
    • yellow
  • Updated the following theme palettes for better consistency with 1.x defaults (https://github.com/uswds/uswds/pull/2911)
    • base
    • primary
    • accent-cool
    • error
    • warning
    • success
    • info

Here’s what changed:

base changes

$theme-color-base-family:           'gray-cool';
$theme-color-base-lightest:         'gray-5';
$theme-color-base-lighter:          'gray-cool-10';
$theme-color-base-light:            'gray-cool-30';
$theme-color-base:                  'gray-cool-50';
$theme-color-base-dark:             'gray-cool-60';
$theme-color-base-darker:           'gray-cool-70';
$theme-color-base-darkest:          'gray-90';
$theme-color-base-ink:              'gray-90';

primary changes

$theme-color-primary-lighter:       '#{$theme-color-primary-family}-10';
$theme-color-primary-vivid:         'blue-warm-60v';

accent-warm changes

$theme-color-accent-warm-family:    'orange';
$theme-color-accent-warm-lighter:   '#{$theme-color-accent-warm-family}-10';
$theme-color-accent-warm-light:     '#{$theme-color-accent-warm-family}-20v';
$theme-color-accent-warm:           '#{$theme-color-accent-warm-family}-30v';
$theme-color-accent-warm-darker:    '#{$theme-color-accent-warm-family}-60';

error changes

$theme-color-error-family:     'red-warm';
$theme-color-error-light:      '#{$theme-color-error-family}-30v';
$theme-color-error:            '#{$theme-color-error-family}-50v';
$theme-color-error-dark:       'red-60v';
$theme-color-error-darker:     'red-70';

warning changes

$theme-color-warning-lighter:  'yellow-5';
$theme-color-warning-light:    'yellow-10v';
$theme-color-warning-darker:   '#{$theme-color-warning-family}-50v';

success changes

$theme-color-success-light:    '#{$theme-color-success-family}-20v';
$theme-color-success-darker:   '#{$theme-color-success-family}-60';

info changes

$theme-color-info-darker:      'blue-cool-60';

USWDS 1.x to 20 color conversion

uswds conversion table

Current USWDS theme defaults

uswds-theme-defaults

Current USWDS state defaults

uswds-state-defaults


Version 2.0.0 Beta 4

November 14, 2018

Note: Items with a ⚠️ icon are potentially breaking changes

Internal

  • Welcome @greensteph to the USWDS Core team 🎉

Bug fixes

  • Checkboxes now print correctly (link)
  • The $theme-font-definitions variable for adding custom font definitions is no longer overridden by the system default. Thanks for the heads up @yomatters! (link)
  • Added the missing u-text-indent() mixin. Thanks for the heads up @jeremyzilar! (link)
  • Fixed errors when compiling with Dart Sass or Jekyll. Thanks to Matt Langan in the #uswds-public channel for surfacing this! (link)

Improvements

  • u-pin() mixin now uses the format u-pin-[side] instead of u-pin([side]) for simplicity

    Example: u-pin-y instead of u-pin('y') — though the latter will still work

  • Removed u-list-reset() since there’s already add-list-reset() but also included list-reset() as a clone of add-list-reset() for backward compatibility

    ⚠️ Replace any instance of u-list-reset with add-list-reset

  • Added u-radius-[modifier]() mixins.

    Example: u-pin-radius-left('pill')

This is a big one with lots of potentially breaking changes. See the pull request and the v2 documentation for a more complete record of the changes and the final palette names.

⚠️ If you’ve experimented with using palettes for your utility classes, you will need to update to the new names or you will get Palette not found in the registry errors when you compile.

  • Palette naming is additive: each subset has the palette name of its parent, plus a subset suffix
  • Default palettes use palette-[property]-default not palette-system-[property]
  • Palettes with no suffix include all tokens in the category
  • Palettes attempt to mimic the token categories/functions/properties: like units, color, and font
  • Palettes attempt to mimic the token categories/functions/properties: like units, color, and font
  • Palettes have a relative subset suffix (like -small, -smaller)
  • Palettes that include all values in a set, have no special suffix (-all goes away)
  • Any palette that had a -negative grouping now also has a corresponding -positive
  • The -negative and -positive groups now appear before the sizing groups
  • The font-weights category is now font-weight
  • Numeric font-weights use the -system suffix, not -numeric

The .usa-prose component allows developers to style unclassed elements within a scoped container. However, this could result in unpredictable behavior (like style specificity errors) if other components are inside in a usa-prose container. Now, usa-prose only affects direct children (using the > selector). See the pull request for more details and context.

⚠️ Make sure any content you want styled with usa-prose is a direct child of usa-prose — this could mean adding usa-prose to grid-col or section elements previously styled simply by being inside usa-prose.

  • Better, more readable numbers
  • Narrower italic
  • Thickened light and normal weights
  • Better spacing of tabular figures

Documentation

  • Now data tables are responsive, even at very narrow widths! Thanks for the technique @line47! (link)
  • Lots of updated docs around utilities and palettes (link)
  • Removed the utility output section since it was largely redundant with the utility examples and the style tokens sections (link)
  • Added a banner to the main site that directs folks to the v2 Beta site. (link)
  • Removed unsupported webp images
  • Fixed a bunch of typos 🎉
  • Fixed code block wrapping
  • Fixed the navigation on the Developers page (link)
  • Fixed some problems with svg rendering (link)

Version 2.0.0 Beta 3

October 29, 2018

Bug Fixes

  • Repair u-border() mixin to accept valid units string tokens like '05' and '105' (https://github.com/uswds/uswds/pull/2860)
    • Thanks to the USWDS public Slack channel for surfacing this issue!

Improvements

  • Added a few new token function clones to make them simpler to type. Note: All the previous functions continue to work as-is, this just adds some new functions that duplicate the functionality with a shorter name (https://github.com/uswds/uswds/pull/2861)
    • font-size()size()
    • font-size()fs()
    • font-family()family()
    • font-family()ff()
  • Update to newest Public Sans (https://github.com/uswds/uswds/pull/2862)
    • A small update to Public Sans that tweaks the b and d characters, as well as the dot on the i character

Documentation

  • Expanded the Style section and renamed it Style tokens to be explicit about its content
  • Added the following section to Style Tokens
    • Overview
    • Color
      • Using color
      • Theme color tokens
      • State color tokens
      • System color tokens
    • Typesetting
      • Using type
      • Font family
      • Font size
      • Font weight
      • Letterspacing
      • Line height
      • Measure
    • Flex
    • Opacity
    • Order
    • Shadow
    • Spacing units
    • Z-index
  • Updated the fonts and heading styles
  • Updated the appearance of the docs sidebar to better display nested pages
  • Added a new USWDS logo
  • Added updated design principles

Version 1.6.9

October 15, 2018

Updated

  • Addressed a potential vulnerability with mem@1.1.0 by updating to yargs@12.0.2 (https://github.com/uswds/uswds/commit/8aad13c9d4e88f549dd761f1b2d4b91c7921ecc4)

Fixed

  • Improved the print styling of checkboxes to properly show checked boxes. (https://github.com/uswds/uswds/pull/2811) Thanks @David-Way

Version 2.0.0 Beta 2

October 15, 2018

Internal

  • Say goodbye to @maya
  • Welcome @saracope to the core team
  • Added a new build process to uswds-site to modularize the CSS output and compile only the Sass necessary to see the change. For instance, utility classes, layout grid, fonts, and USWDS components don’t need to be re-generated when making a change to custom Sass. (https://github.com/uswds/uswds-site/pull/674)
    • Add new gulp scripts and npm scripts to process only the necessary Sass
    • Add conditional stylesheets to uswds-site that load individual CSS modules when in the local environment and a single, minified CSS file when built through Federalist
    • This can speed up most builds by about 10x!

Additions

  • Added Public Sans to its own repo: uswds/public-sans
  • Added basic gulp pipeline to its own repo: uswds/uswds-gulp

Updates

  • Updated the font license information in LICENSE.md (https://github.com/uswds/uswds/pull/2800)

Bug fixes

  • Fixed a typo that prevented the gray, gray-warm, and gray-cool grade 60 colors from appearing (https://github.com/uswds/uswds/pull/2801)
  • Gray cool and Gray warm were reversed in token data. Now they aren’t and should output correctly. (https://github.com/uswds/uswds/pull/2823)
  • Added the ui font family to line-height. Now you can use something like line-height('ui', 3) (https://github.com/uswds/uswds/pull/2824)
  • Fixed a problem with the display of some items in our documentation (https://github.com/uswds/uswds-site/issues/673)
  • Addressed a potential vulnerability with mem@1.1.0 by updating to yargs@12.0.2 (https://github.com/uswds/uswds/pull/2842)
  • Fixed a bug where a elements classed with usa-button variants were being overridden by usa-button:visited styles. (https://github.com/uswds/uswds/pull/2827)
    • Thanks @stphnwlkr!

Improvements

  • Added a AAA magic number to the docs and updated contrast references to WCAG 2.0 (https://github.com/uswds/uswds-site/pull/656)
  • Removed utility classes from any component (https://github.com/uswds/uswds/pull/2823)
    • ⚠️ breaking change: Removes a flex-justify utility from the footer component and revises footer markup to add this rule to component code. This markup would need to be updated.
  • Modified some nunjucks templates to improve the rendering of markup code in the components docs (https://github.com/uswds/uswds/pull/2823)
  • Added any public-facing mixin into files within the core/mixins folder so they can be imported without importing any styles (https://github.com/uswds/uswds/pull/2844)
  • Removed _uswds-theme.scss stylesheet from the theme stylesheets. This was an abstraction file that collected all the settings files together, but it proved a little confusing and may have been a premature optimization. Now all the settings files are included directly in styles.scss (https://github.com/uswds/uswds/pull/2830)
  • The ‘object’ namespace was causing confusion and wasn’t useful enough to justify its inclusion. (https://github.com/uswds/uswds/pull/2829)
    • Removed object from namespace options since it proved confusing to users
    • Output all utilities with utility namespace
    • Add add- manually to those utilities that previously added them with the object namespace
  • Now the letterspacing function can accept numerical equivalents and not just 'ls-[token]' strings. So ls(-2) is now valid. (https://github.com/uswds/uswds/pull/2826)
  • Added a $theme-show-compile-warnings setting (default: true) to show compile warnings when using false or nonstandard tokens (https://github.com/uswds/uswds/pull/2828)
  • Use the word ‘token’ instead of ‘value’ in compile errors to align with our naming convention (https://github.com/uswds/uswds/pull/2828)
  • Use ‘system’ instead of ‘uswds’ in palette names (ex: $palette-font-system-mono-micro instead of $palette-font-uswds-mono-micro) to align with our naming convention. (https://github.com/uswds/uswds/pull/2828)
    • ⚠️ Breaking change: Any palette using uswds in its name needs to be update to use system instead, as show above.

Documentation

  • Removed out of date references and added notes when some documentation or features were consipicuously absent (https://github.com/uswds/uswds-site/pull/657)
    • Removed references to palette variables
    • Updated USWDS 2.0 token references
    • Added notes when documentation is notably not in with USWDS 2.0 (typesetting, for instance)
  • Updated readme with USWDS 2.0-specific information (https://github.com/uswds/uswds/pull/2819)
    • Installing using npm
    • Using the USWDS package
    • Sass and theme settings
    • Sass compilation requirements
    • Customization, theming, and tokens
  • Added design principles and design notes to the Public Sans readme (https://github.com/uswds/public-sans/issues/18)
  • Fixed the order of colors in the the system colors sidenav to reflect the actual order of the content (https://github.com/uswds/uswds-site/pull/665)
  • Updated our color guidance to include more specific guidance around contrast sensitivity and Irlen Syndrome. (https://github.com/uswds/uswds-site/pull/664)
    • Added references to the bottom of the page
    • Included new guidance on using color for readability
    • Thanks @vizionsinmotion!

Version 2.0.0-beta

October 01, 2018

USWDS 2.0 is a major rewrite of the entire project. The most notable changes are summarized below, followed by more specific changes to relevant components.

New ✨

  • Add utilities (#2289)

CSS applied to classes not HTML

$theme-content-styles will add base typography styles inside .usa-prose class, as global elements applied to base HTML, or none at all.

Element styles added to scoping

  • Paragraph text (p)
  • Links (a)
  • Headings (h1-h6)
  • Lists (ul, ol, li)
  • Table (table)

New or updated elements and classes

  • .usa-button (button) (class already existed)
  • .usa-list (ul, ol)
  • .usa-table (table)
  • .usa-label (label) for HTML <label>s changed from Label component which is now tag
  • .usa-input (input)
  • .usa-select (select) - dropdown
  • .usa-textarea (textarea)
  • .usa-legend (legend)
  • .usa-tag changed from .usa-label which we’re now using for HTML <label>
  • .usa-checkbox-input [type=”checkbox”]
  • .usa-checkbox-label [type=”checkbox”]
  • .usa-radio-input [type=”radio”]
  • .usa-radio-label [type=”radio”]
  • .usa-range [type=”range”]

*All former elements will need to use these classes to display properly.

By component

This list highlights key changes by component between v1.x.x and v2.0.0.

Typography

Grids

  • Deprecated the float-based grid system, Bourbon Neat, in favor of a flexbox system

Buttons

  • Must add usa-button class alongside variant buttons, e.g. usa-button button-secondary

Tags

  • Formerly called “labels”
  • Must add usa-tag class alongside variant tags, i.e. usa-tag usa-tag-big

Tables

Alerts

Accordions

  • Update accordions to be more semantic and accessible (#2360, #2406, #2360) [breaking change]

Forms

Form controls

Form templates

Side navigation

Headers

  • Clicking away will close the header navigation dropdown (#2669, #2617)

Footers

  • Fix footer class naming inconsistency (#2583) [breaking change]

Version 1.6.8

August 06, 2018

Added

  • Add range slider that already existed in the Sass to Fractal (#2644, #2374)

Fixed

  • Fix headers that were not displaying in IE 9-11 (#2643, #2637).
    • This was an issue introduced in version 1.6.7 (#2574) when we updated ESLint to use the Airbnb style guide.
  • Fix Firefox zooming bug in extended header (#2635, #2631)
  • Fix improper nesting in big footer that caused invalid HTML (#2620, #1659)
  • Fix header mega menu HTML validation (#2645, #2634)

Version 1.6.7

July 23, 2018

Fixed

  • Fix radio and checkbox left alignment (#2593)
  • Break out focus trap using receptor (#2585)
  • Hide date autocomplete icons on Safari (#2605)

Changed

  • Update ESLint to use Airbnb style guide (#2574)

Version 1.6.6

June 13, 2018

Fixed

  • Fix small indentation style issue in spec/headless-chrome.spec.js (89f949648976dadaf67fdb644b31298200eb1675)

Version 1.6.5

June 13, 2018

Fixed

  • Change parent container of government banner to a section element (#2544)

Version 1.6.4

June 04, 2018

Fixed

Fix margin bug on h6-level headings (#2531)


Version 1.6.3

May 07, 2018

Fixed

  • Update README documentation (#2462)
  • Add version number to Fractal (#2463)
  • Support node-sass npm importers (#2460)

Version 2.0.0-alpha

August 13, 2018

Added

  • Add utilities (#2289)
  • Clicking away will close the header navigation dropdown (#2669, #2617)

Fixed

  • Update accordions to be more semantic and accessible (#2360, #2406, #2360) [breaking change]
  • Fix footer class naming inconsistency (#2583) [breaking change]

CSS applied to classes not HTML

$theme-content-styles will add base typography styles inside .usa-prose class, as global elements applied to base HTML, or none at all.

Element styles added to scoping

  • Paragraph text (p)
  • Links (a)
  • Headings (h1-h6)
  • Lists (ul, ol, li)
  • Table (table)

New or updated elements and classes

  • .usa-button (button) (class already existed)
  • .usa-list (ul, ol)
  • .usa-table (table)
  • .usa-label (label) for HTML <label>s changed from Label component which is now tag
  • .usa-input (input)
  • .usa-select (select) - dropdown
  • .usa-textarea (textarea)
  • .usa-legend (legend)
  • .usa-tag changed from .usa-label which we’re now using for HTML <label>
  • .usa-checkbox-input [type=”checkbox”]
  • .usa-checkbox-label [type=”checkbox”]
  • .usa-radio-input [type=”radio”]
  • .usa-radio-label [type=”radio”]
  • .usa-range [type=”range”]

*All former elements will need to use these classes to display properly.


Version 1.6.2

April 23, 2018

Fixed

  • Remove unneeded list CSS (#2426)
  • Remove submit button block display and unneeded extra styles (#2425)

Version 1.6.1

March 26, 2018

Fixed

  • Ensure return to top link in the footer focuses back to the top on #main-content (#2403, #2321)
  • Remove duplicate CSS from the grid (#2404, #2361)
  • Use curly quote on government banner text (#2394)
  • Fix bug that made footer list content disappear when the heading was clicked on desktop sizes (#2386, #2344)
  • Allow footer menu items to be toggled close on click for the big footer on mobile (#2389, #1857)

Version 1.6.0

March 12, 2018

Changed

  • Simplify Sass asset path variable overrides (#2365)

Fixed

  • Change input optional text to HTML text instead of CSS content to improve accessibility (#2368)

Version 1.5.0

February 26, 2018

Added

  • Add ability to have a basic alert with no icon (#2358)

Changed

  • Use HTML5 <nav> element in the side navigation (#2359)
  • Allow text to be used in close button (#2350)

Fixed

  • Fix file input type styling by removing text border (#2364)
  • Lower specificity of form Sass (#2357)
  • Remove browser prefixes on appearance where possible (#2356)
  • Trap focus to mobile navigation menu and other accessibility fixes (#2347)
  • Change footer logo alt text to null (empty) (#2345)
  • Add color to body tag to fix WCAG error (#2342)

Version 1.4.6

February 12, 2018

Removed

  • Remove unused CSS from typography (#2312)
  • Remove text color and decoration from usa-footer-return-to-top class to allow normal text styling to occur. (#2330)

Fixed

  • Fix government banner display bug in IE 9-11 (#1984)

Version 1.4.5

January 23, 2018

Changed

  • Optimize images to reduce file size without losing quality (#2308)
  • Update links to repo to reflect the new GitHub organization and repo name (#2313)

Version 1.4.4

December 18, 2017

Fixed

  • Add vertical space around sidenav at small widths in the documentation template (#1669)
  • Update .usa-overlay transition to “overlay” to fix a flicker issue in the the uswds-jekyll template (#2274)
  • Fix dropdown arrow display in Internet Explorer 9-11 (#2265)
  • Make the focus variables default so they can be overridden (#2266)
  • Update jQuery (used in tests) to the latest version and the packages associated with it (#2254)
  • Fix unclosed search tag in header (#2236)

Version 1.4.3

November 20, 2017

Changed

  • Balanced the vertical spacing between elements in the mobile primary and secondary navigation. (#2222, #2228)

Removed

  • Remove unused class (.usa-form-control) from date input (#2225)

Fixed

  • Allow for underlining in the footer links, except in custom scope (ie .usa-footer-primary-link, .usa-footer-secondary-link, and address) (#2219)
  • Adds .usa-footer-secondary-link class to secondary links in the .usa-footer-big footer (#2219)
  • Fixed extended header navigation overlap. This ensures that any element following the close button is cleared so there is no overlap. (#2222, #2228 )

Version 1.4.2

November 02, 2017

Changed

  • Use character units (ch) for text max-width for improved performance with different fonts for paragraph text within usa-content (#1866)

Removed

  • Remove unused polyfills from LICENSE (#2189)
  • Remove unneeded pattern attribute from date input (#2200)

Fixed

  • Fix hero component button display
  • Fix select input text from overlapping with the icon
  • Use pixel-fit icon for the select input dropdown for improved display
  • Use correct font family for h6 headings
  • Fix select arrow display bug after autofill in Chrome
  • Fix duplicate border focus on select input in Firefox
  • Fix disappearing focus state on links on hover
  • Use caption on table for proper accessibility
  • Make telephone number a tel link in the footer for more consistent functionality
  • Fix spacing issue in multi-line footer links (#1637)
  • Fix style consistency issue on optional and required form labels
  • Update table styling with a tighter horizontal space, remove gray background on borderless table heading, and flush left first child on borderless table headings (#2192)
  • Reduce CSS specificity in table and search components (#2062)