Skip to content

Conversation

Abdalqader27
Copy link
Contributor

@Abdalqader27 Abdalqader27 commented May 28, 2025

Description

  • Introduced normal and bold font weight options to the StacFontWeight enum.
  • These additions allow for more common and intuitive font weight specifications, aligning with standard CSS and design practices.
  • The generated code for StacTextStyle has also been updated to include these new enum values.

Note:

  /// The default font weight.
  static const FontWeight normal = w400;

  /// A commonly used font weight that is heavier than normal.
  static const FontWeight bold = w700;

Related Issues

Closes #259

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Code refactor
  • Build configuration change
  • Documentation
  • Chore

@CLAassistant
Copy link

CLAassistant commented May 28, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@divyanshub024 divyanshub024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @Abdalqader27 💯

@divyanshub024 divyanshub024 merged commit 457d93d into StacDev:dev May 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Support "bold", "normal" in font weight.

3 participants