Text

A list of text styles that can be used within the app.

Coonsume them using the Text component.

Text component

A wrapper of React Native's text component, with the addition of a 'token' prop.

The token prop specifies what text style token should be applied to the text (see core/text to view a list of styles).

import { Text } from "reckon-mobile-design-system";
export const Screen = () => (
<Text color={colors.text.default} token="title-2">Welcome</Text>;
)

Props

align
"left" │ "auto" │ "right" │ "center" │ "justify"
"auto"
color
string
numberOfLines
number
token
enum
"3x-400"

Available tokens

TokenPreviewFont sizex4 multiplier
title-1title-1164x
title-2title-2246x
blockTitle-1blockTitle-1123x
2.5x-4002.5x-400102.5x
2.5x-5002.5x-500102.5x
2.5x-7002.5x-700102.5x
3x-4003x-400123x
3x-5003x-500123x
3x-7003x-700123x
3.5x-4003.5x-400143.5x
3.5x-5003.5x-500143.5x
3.5x-7003.5x-700143.5x
4x-4004x-400164x
4x-5004x-500164x
4x-7004x-700164x
4.5x-4004.5x-400184.5x
4.5x-5004.5x-500184.5x
4.5x-7004.5x-700184.5x
2.5x-400-p2.5x-400-p102.5x
2.5x-500-p2.5x-500-p102.5x
2.5x-700-p2.5x-700-p102.5x
3x-400-p3x-400-p123x
3x-500-p3x-500-p123x
3x-700-p3x-700-p123x
3.5x-400-p3.5x-400-p143.5x
3.5x-500-p3.5x-500-p143.5x
3.5x-700-p3.5x-700-p143.5x
4x-400-p4x-400-p164x
4x-500-p4x-500-p164x
4x-700-p4x-700-p164x
4.5x-400-p4.5x-400-p184.5x
4.5x-500-p4.5x-500-p184.5x
4.5x-700-p4.5x-700-p184.5x
7x-700-p7x-700-p287x