Skip to content

Typography

Typography in Luna Park controls how text is displayed in your application: size, weight, font, spacing, alignment...

HTML Tags

Each text element can be rendered with a different HTML tag depending on its role in the page:

  • div: generic block (default).
  • p: standard paragraph.
  • span: inline text, used to style a specific part of a text.
Example of semantic usage

Note: Choose the tag according to the content semantics, not its appearance.

Typography Properties

Text properties are found in the Style tab. They are divided into two categories: Font and Text.

Font

These properties control the typographic base of your elements.

PropertyDescription
ColorDefines the text color.
FamilyChooses the font used (global or custom).
Letter SpacingAdjusts the spacing between letters.
Line HeightDefines the line height.
SizeDetermines the text size.
StyleDefines the font style (normal, italic, etc.).
WeightControls the text thickness (light, regular, bold, etc.).

Text

These properties control the layout and effects applied to the text.

PropertyDescription
AlignAligns the text (left, center, right, justified).
DecorationApplies a decoration (underline, line-through, etc.).
OverflowManages text overflow (clip, ellipsis, etc.).
ShadowAdds a drop shadow to the text.
TransformTransforms the text (uppercase, capitalize, lowercase).
WrapDefines if the text breaks automatically or stays on a single line.

Best Practices

It is recommended to define a consistent system, specifically:

  • A regular scale of sizes, preferably using a token with
  • One or two font families maximum.
  • Constant rules for weight and spacing.