twbs / bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

Home Page:https://getbootstrap.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding new SCSS variables for `letter-spacing`

simo026q opened this issue · comments

Prerequisites

Proposal

New SCSS Variables

$letter-spacing-base: normal !default; // Global default

$headings-letter-spacing: null !default; // Headings
$display-letter-spacing:  null !default; // Display sizes

$input-btn-letter-spacing: null !default; // Input and Button
$btn-letter-spacing: $input-btn-letter-spacing !default;
$input-letter-spacing: $input-btn-letter-spacing !default;
$form-select-letter-spacing: $input-letter-spacing !default;

These variables offer default values and null placeholders for customizable overrides, providing a flexible foundation for developers to adjust letter-spacing according to their design requirements.

Motivation and context

Some brands use tighter letter-spacing for headlines to create a sense of sophistication or to improve legibility at large sizes, which is not universally achievable with the current Bootstrap typography settings. Providing SCSS variables for letter-spacing makes it a lot easier to adapt Bootstrap more closely to brand standards.

Closed per #39866.