Skip to content

[Feature request] Font size smaller/bigger #1953

@hmaesta

Description

@hmaesta

Sometimes I just want the text to be a little smaller than it's parent. Since Tailwind uses rem as default, it's not that usual to do that.

So my feature request is to create text-smaller-* and text-bigger-*, initially with 3 sizes for each (to be honest I don't think the 50% is so necessary on both cases, but...)

extend: {
        fontSize: {
            'smaller-10': '0.9em',     // 10% smaller
            'smaller-25': '0.75em',    // 25% smaller
            'smaller-50': '0.5em',     // 50% smaller
            'bigger-10' : '1.1em',     // 10% bigger
            'bigger-25' : '1.25em',    // 25% bigger
            'bigger-50' : '1.5em',     // 50% bigger
        },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions