Skip to content

[Bug]: Incorrect calculation in Typography Tokens #272

@Tayebsed93

Description

@Tayebsed93

Prerequisites

Your test device

Iphone 14 Pro Max

OS Version

iOS 18

App version

v0.5.0

Describe the issue

There is an issue in the Design System where the lineHeight is incorrectly calculated for typography tokens.

The current formula used is:

lineHeight = Line / Size
Example: 48 / 40 = 1.2

This leads to inaccurate values across all typography tokens.

Documentation Flutter : https://api.flutter.dev/flutter/painting/TextStyle/height.html

Expected Behavior

The correct formula should be:

lineHeight = Size / Line
Example: 40 / 48 = 0.833

Example:

For the DisplayLarge token:

  • Font Size: 40px
  • Line Height: 48px

✅ Expected lineHeight value:

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions