Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New utilities for body text #2364

Open
2 tasks done
julien-deramond opened this issue Nov 8, 2023 · 0 comments
Open
2 tasks done

New utilities for body text #2364

julien-deramond opened this issue Nov 8, 2023 · 0 comments
Labels

Comments

@julien-deramond
Copy link
Member

julien-deramond commented Nov 8, 2023

Prerequisites

Proposal

Right now, folks can use the .lead class to render text content so it's more readable and less condensed. It's maybe not the initial purpose of the .lead class in Bootstrap.

Our .lead class is currently defined by the rules in Web Typography - Body

Size font-size line-height letter-spacing
Desktop 20px 1.5=30px -0.40px
Tablet 18px 1.5=27px -0.20px
Mobile 16px 1.5=24px -0.10px

This feature request is linked to new design tokens that are created (and not yet available directly in the DSM) that will define 3 variants of the body text:

  • Small
  • Medium
  • Large

These 3 variants will have different combinations of font-size, line-height, and letter-spacing linked to the 3 breakpoints (desktop, mobile, and tablet).

The idea would be to determine whether we need to introduce new utilities for the developers to manage easily their text content. Here's a first idea that'll need to be fine-tuned later on:

  • .body-sm
  • .body-md (that could have the same value as .lead)
  • .body-lg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant