Skip to content

fix(theme): change --leading-none from 1px to unitless 1 (#1136)#1137

Open
Bsrat06 wants to merge 1 commit intothemesberg:mainfrom
Bsrat06:fix/theme-unitless-leading-none
Open

fix(theme): change --leading-none from 1px to unitless 1 (#1136)#1137
Bsrat06 wants to merge 1 commit intothemesberg:mainfrom
Bsrat06:fix/theme-unitless-leading-none

Conversation

@Bsrat06
Copy link
Copy Markdown

@Bsrat06 Bsrat06 commented Apr 1, 2026

Description

This PR fixes issue #1136 where --leading-none was defined as 1px instead of 1.

Why this is needed

Defining line-height as 1px causes text overlap (as seen in the reported issue). In Tailwind CSS, leading-none should be unitless (1) to ensure the line height is proportional to the font size.

Changes made

  • Updated --leading-none from 1px to 1 in:
    • src/themes/themes.css (multiple occurrences)
    • src/themes/default.css
    • src/themes/enterprise.css
    • src/themes/minimal.css
    • src/themes/mono.css
    • src/themes/playful.css

Linked Issues

Fixes #1136

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.

Incorrect --leading-none: 1px

1 participant