Docplanner Logo

Docplanner Mobile UI

Edit page
Introduction
⚙️ – Core
⚛️ – Atoms-Molecules
AvatarBadgeButtonCheckBoxFieldCircleDividerDownloadCardIconInputFieldInputFieldButtonLinkListItemOneTimeCodeInputPhotoAvatarRadioGroupFieldRatingSelectFieldSimpleAvatarSpacerSwitchFieldTextPropertiesBasic usageOverwrite stylesVariationsFont stylesAlignmentToast❌ Icon (Deprecated)❌ Roboto (Deprecated)❌ WorkSans (Deprecated)
🧬 – Organisms

DpText

Docplanner provides a constrained, purposeful set of typographic styles.

Properties

type
TextStyleProps | undefined
{ family: fonts.roboto.regular, style: apply(C.font4, C.line6), }

Text style. Default is texTypes.body.regular. Can be overriden by passing a custom style prop object.

color
string | undefined
#1b2734

Font color. Default is palette.gray900 (#1b2734).

align
Alignment | undefined
Alignment.Left

Text alignment. Default is left.

children
string | Element | undefined

Text content

Basic usage

Hello world

Overwrite styles

You can overwrite the styles using the prop style.

Hello world

Variations

Hello world
Hello world
Hello world
Hello world

Font styles

Heading - H1semibold
<DpText type={textTypes.heading.h1SemiBold} >
Heading - H2regular
<DpText type={textTypes.heading.h2Regular} >
Heading - H2semibold
<DpText type={textTypes.heading.h2SemiBold} >
Heading - H3regular
<DpText type={textTypes.heading.h3Regular} >
Heading - H3semibold
<DpText type={textTypes.heading.h3SemiBold} >
Body - Regular
<DpText type={textTypes.body.regular} >
Body - Medium
<DpText type={textTypes.body.medium} >
Body - Smallregular
<DpText type={textTypes.body.smallRegular} >
Body - Smallmedium
<DpText type={textTypes.body.smallMedium} >
Body - Xsmallregular
<DpText type={textTypes.body.xSmallRegular} >
Body - Xsmallmedium
<DpText type={textTypes.body.xSmallMedium} >
Badge - Regular
<DpText type={textTypes.badge.regular} >

Alignment

Start
Center
End