Typography
A set of text block components for an out-of-the-box path to the BaseUI font standard.
You can find the font definitions in the Theming values page.
When to use
- Use the drop-in typography components for titles and text blocks in an app.
Examples
At Uber, we use Display components with an alternate font family to create typographic contrast in our UI.
Typography Heading Blocks
We ignite opportunity by setting the world in motion.
We ignite opportunity by setting the world in motion.
We ignite opportunity by setting the world in motion.
We ignite opportunity by setting the world in motion.
We ignite opportunity by setting the world in motion.
We ignite opportunity by setting the world in motion.
Typography Body Blocks
Good things happen when people can move, whether across town or towards their dreams. Opportunities appear, open up, become reality. What started as a way to tap a button to get a ride has led to billions of moments of human connection as people around the world go all kinds of places in all kinds of ways with the help of our technology.
Good things happen when people can move, whether across town or towards their dreams. Opportunities appear, open up, become reality. What started as a way to tap a button to get a ride has led to billions of moments of human connection as people around the world go all kinds of places in all kinds of ways with the help of our technology.
Good things happen when people can move, whether across town or towards their dreams. Opportunities appear, open up, become reality. What started as a way to tap a button to get a ride has led to billions of moments of human connection as people around the world go all kinds of places in all kinds of ways with the help of our technology.
Good things happen when people can move, whether across town or towards their dreams. Opportunities appear, open up, become reality. What started as a way to tap a button to get a ride has led to billions of moments of human connection as people around the world go all kinds of places in all kinds of ways with the help of our technology.
Exports
Typography exports
You can import this module like so:
import {Display1} from 'baseui/typography'
It exports the following components or utility functions:
- Display1
- Display2
- Display3
- Display4
- H1
- H2
- H3
- H4
- H5
- H6
- Label1
- Label2
- Label3
- Label4
- Paragraph1
- Paragraph2
- Paragraph3
- Paragraph4
- Display
- Caption1
- Caption2
API
Typography API
Warning any = "Prop types are not shown in dev mode"
extract-react-types is not being run in dev mode for speed reasons. If you need to
see prop types add the environment variable FORCE_EXTRACT_REACT_TYPES
eg:
FORCE_EXTRACT_REACT_TYPES=true yarn start <packageName>FORCE_EXTRACT_REACT_TYPES=true yarn start:<team>