Skip to content

Commit 54f2cd5

Browse files
committed
emphasize that value of base-font-size must be a number
1 parent 97b6d99 commit 54f2cd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: docs/modules/theme/pages/text.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ The font size may be specified either as a fixed value (e.g., `12`) or a relativ
4343
Font sizes are most often specified as a fixed value, though there are important cases when a relative value is more suitable.
4444
The font size always resolves to a point value when text is written to the PDF.
4545

46+
IMPORTANT: The `base-font-size` must always be a number.
47+
That's because the value of this key is the reference value on which relative font values (e.g., `0.75rem`) are based.
48+
4649
If the font size is specified as a number, or a number with a fixed unit of measurement (e.g., `px`), that value is converted to points.
4750
The conversion to points is done when the theme is loaded.
4851
The `font-size` key on the `base` category, as well as min, large, and small font size keys, must always be specified as a fixed value.

0 commit comments

Comments
 (0)