Skip to main content
U.S. flag

An official website of the United States government

Foundation

Font size

Change the font size of an element. The font-size classes include responsive prefixes.

The font-size utility is especially useful on headings, allowing them to be logically nested while applying a custom font size.

Font size

CSS property: font-size

Sizing by name

15px .vads-u-font-size--sm

16px .vads-u-font-size--root

 

17px .vads-u-font-size--md

20px .vads-u-font-size--lg

30px .vads-u-font-size--xl

40px .vads-u-font-size--2xl

15px .vads-u-font-size--sm

16px .vads-u-font-size--base

16.96px .vads-u-font-size--source-sans-normalized

17px .vads-u-font-size--md

20px .vads-u-font-size--lg

30px .vads-u-font-size--xl

40px .vads-u-font-size--2xl

Sizing by heading names

40px .vads-u-font-size--h1

30px .vads-u-font-size--h2

20px .vads-u-font-size--h3

17px .vads-u-font-size--h4

15px .vads-u-font-size--h5

15px .vads-u-font-size--h6

Responsive prefixes

Add a responsive breakpoint prefix separated with a : to target a utility at a responsive breakpoint and higher, following a mobile-first methodology.

Department of Veterans Affairs

VADS Breakpoint Sass Variable USWDS Breakpoint Custom Property Width $xsmall-screen --mobile 320px $small-screen --mobile-lg 481px --tablet 640px $medium-screen --medium-screen 768px $small-desktop-screen --desktop 1024px $large-screen --desktop-lg 1201px

Read more about breakpoints.

Edit this page in GitHub (Permissions required)
Last updated: Apr 26, 2022