Skip to content

Add --lexxy-text-size variable and convert content font sizes to em - #1208

Open
lazaronixon wants to merge 2 commits into
basecamp:mainfrom
lazaronixon:add-lexxy-text-size-variable
Open

Add --lexxy-text-size variable and convert content font sizes to em#1208
lazaronixon wants to merge 2 commits into
basecamp:mainfrom
lazaronixon:add-lexxy-text-size-variable

Conversation

@lazaronixon

@lazaronixon lazaronixon commented Jul 20, 2026

Copy link
Copy Markdown

Summary

  • Add a --lexxy-text-size variable (default 1rem) as the base content font size, set on .lexxy-content.
  • Convert heading font sizes to em so they scale proportionally with the base: h1 2em, h2 1.5em, h3 1.25em, h4 1em, h5 0.875em, h6 0.75em.
  • Remove the --lexxy-text-small variable, replacing its usages with the literal 0.875em.

Computed sizes are identical to before at the default 1rem. Overriding --lexxy-text-size now scales all content text proportionally.

Introduce a --lexxy-text-size variable as the base content font size and
express heading and small-text sizes in em so they scale proportionally
when the base is overridden. Sizes are preserved at the default 1rem.
Copilot AI review requested due to automatic review settings July 20, 2026 07:08

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a configurable base typography scale for Lexxy content by adding a --lexxy-text-size CSS variable and switching content-relative font sizes (headings and “small” text) from rem to em, so they scale proportionally when the base is overridden.

Changes:

  • Added --lexxy-text-size (default 1rem) and updated --lexxy-text-small to 0.875em.
  • Set .lexxy-content to use font-size: var(--lexxy-text-size) as the base content size.
  • Converted h1h6 font sizes from rem to em to scale with the base.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
app/assets/stylesheets/lexxy-variables.css Adds --lexxy-text-size and makes --lexxy-text-small relative (em) so derived sizes can scale with the content base.
app/assets/stylesheets/lexxy-content.css Applies the base font size via --lexxy-text-size and converts heading sizes to em for proportional scaling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings July 20, 2026 07:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 10 comments.

Comment thread app/assets/stylesheets/lexxy-variables.css
Comment thread app/assets/stylesheets/lexxy-editor.css
Comment thread app/assets/stylesheets/lexxy-editor.css
Comment thread app/assets/stylesheets/lexxy-editor.css
Comment thread app/assets/stylesheets/lexxy-editor.css
Comment thread app/assets/stylesheets/lexxy-editor.css
Comment thread app/assets/stylesheets/lexxy-editor.css
Comment thread app/assets/stylesheets/lexxy-content.css
Comment thread app/assets/stylesheets/lexxy-content.css
Comment thread app/assets/stylesheets/lexxy-editor.css
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.

2 participants