Skip to content

TextStylePreset ​

A utility class that provides common text style presets for both iOS (Cupertino) and Material Design 3.

Usage ​

typescript
import { TextStylePreset, Text } from 'fluekit';

// Use directly in Text component
<Text :style="TextStylePreset.titleLarge">Hello World</Text>

Material Design 3 Presets ​

Based on the Material Design 3 Typography scale.

Display ​

Large, short-lived text for introductions or prominent headings.

PresetSizeWeightLine HeightTracking
displayLarge57sp40064sp-0.25
displayMedium45sp40052sp0
displaySmall36sp40044sp0

Headline ​

Best for shorter, high-emphasis text.

PresetSizeWeightLine HeightTracking
headlineLarge32sp40040sp0
headlineMedium28sp40036sp0
headlineSmall24sp40032sp0

Title ​

Smaller than headlines, typically used for medium-emphasis text.

PresetSizeWeightLine HeightTracking
titleLarge22sp40028sp0
titleMedium16sp50024sp0.15
titleSmall14sp50020sp0.1

Label ​

Used for text inside components like buttons, labels, or captions.

PresetSizeWeightLine HeightTracking
labelLarge14sp50020sp0.1
labelMedium12sp50016sp0.5
labelSmall11sp50016sp0.5

Body ​

Used for long-form writing as it works well for small text sizes.

PresetSizeWeightLine HeightTracking
bodyLarge16sp40024sp0.5
bodyMedium14sp40020sp0.25
bodySmall12sp40016sp0.4

iOS (Cupertino) Presets ​

Based on Apple's Human Interface Guidelines.

PresetSizeWeightDescription
largeTitle34ptNormalLarge title for navigation bars
title128ptNormalFirst-level heading
title222ptNormalSecond-level heading
title320ptNormalThird-level heading
headline17ptSemiBoldParagraph headings
body17ptNormalBody text
callout16ptNormalCallout text
subhead15ptNormalSubheadings
footnote13ptNormalFootnotes
caption112ptNormalSecondary text
caption211ptNormalTertiary text
action17ptNormalActionable text (Blue)
actionSmall15ptNormalSmall actionable text (Blue)