


Customize and refine any utility family’s specific values by editing the $-manual-values and $-palettes variables in _uswds-theme-utilities.scss. Utility variableīy default, USWDS utilities output the standard values listed in the documentation above. A value of false prevents the output of the family and any variants. Utility variableĬontrol whether or not to output any USWDS utility family by setting the value of the $-settings.output variable found in _uswds-theme-utilities.scss.Ī value of true will output the utility family and any variants. Set whether a utility outputs a specific state variant by setting the value of the $-settings. Output any utility mixin as !important by appending !important to the mixin’s argument list: u-bg('red-warm-50v', !important).Īdd a responsive breakpoint prefix separated with a : to target a utility at a responsive breakpoint and higher, following a mobile-first methodology.border accepts both border weight and border color), their shared mixin can accept multiple comma-separated values: u-text('primary-darkest', 'no-underline', 'bold') or u-border-top(2px, 'accent-warm'). flex-) or a single utility accepts multiple kinds of values (ex. If multiple utilities share the same prefix (ex.String tokens for half values ( 05) and negative values (like neg-1)may also be written with their unquoted number token equivalent: 0.5, 1.5, 2.5, 2.5, -1, -1.5, etc.Do not quote numbers or px values, with the exception of half ( 05) values like '05', '105', and '205' which should be treated as strings. Use single-quoted strings in utility mixins.
PALETTE SANS FAMILY HOW TO
Consult the Design tokens section for more information on tokens and how to use them in USWDS. Highlighted tokens are the USWDS design tokens that serve as the foundation for all design system styles. Utilities may be used in component Sass with utility mixins. Sample contract language for 21st Century IDEA
