Skip to content

Commit

Permalink
[E] Expose reader font-size adjustment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dananjohnson committed Sep 9, 2024
1 parent 8029d8b commit 8e1d569
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion client/src/theme/styles/utility/typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ const readerFontSizeClasses = readerFontSizes
.map(
({ desktop, mobile }, index) => `
.font-size-${index} {
font-size: ${fluidScale(desktop, mobile)};
font-size: calc(${fluidScale(
desktop,
mobile
)} * var(--font-size-adjustment));
}
`
)
Expand Down Expand Up @@ -82,6 +85,12 @@ export default `
${textTruncate}
}
@property --font-size-adjustment {
syntax: "<number>";
inherits: false;
initial-value: 1;
}
${readerFontSizeClasses}
${underlineClasses}
Expand Down

0 comments on commit 8e1d569

Please sign in to comment.