Skip to content

Commit

Permalink
add reference to extend font catalog section to the extend default th…
Browse files Browse the repository at this point in the history
…eme section
  • Loading branch information
mojavelinux committed Jan 23, 2024
1 parent a98e24c commit 3efa361
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/modules/theme/pages/create-theme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Refer to <<how-extend-works>> for details about what values the `extends` key ac
== Extend the default theme

*The quickest and simplest way to create a new theme is to extend the default theme.*
Right out of the gate, your theme already has all the functionality provided by the default theme.
Right out of the gate, your theme already has all the fonts and functionality provided by the default theme.
You only have to define keys in your theme that you want to customize from the default theme.

Let's create a theme that drastically modifies the base font color.
Expand Down Expand Up @@ -73,6 +73,9 @@ footer:

Learn more about how to customize the running content on the xref:add-running-content.adoc[] page.

If you want to add additional fonts to the default theme, but still be able to use the bundled fonts as well, you should also extend the font catalog.
Refer to xref:font.adoc#extend-catalog[Extending the font catalog] to learn how.

== Extend the base theme

If you're trying to carefully tailor the appearance of the PDF, you might find that the default theme gets in the way too much.
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/theme/pages/font.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ font:
|===

[#extend-catalog]
== Extending the font catalog
== Extend the font catalog

If you define a xref:custom-font.adoc[custom font] in the font catalog in a theme that extends from `default`, and you want to continue to use the bundled fonts in your theme, you either have to redeclare the bundled fonts:

Expand Down

0 comments on commit 3efa361

Please sign in to comment.