Typography in the context of our `doc-site refers to the style, arrangement, and presentation of text on doc-site pages. It involves selecting and combining fonts, determining font sizes, line spacing, and other typographic elements to enhance readability, convey information effectively, and create a visually appealing design.
doc-site uses fastn Roboto Font Typography.
If you wish to update it, choose a typography from our
fastn-community typographies.To add typography to your fastn web sites. Edit your FASTN.ftd file and add
typography dependency into it.
In the below example, we are using Inter Typography typography.
Add typography dependency into yourFASTN.ftd file as shown in below
example:-- fastn.dependency: fastn-community.github.io/inter-typography
Now modify FASTN/ds.ftd module which is already added inside your fastn
package.
inter-typography dependency into FASTN/ds.ftd-- import: fastn-community.github.io/inter-typography
Change -- component page typography property ftd.type-data typography: $roboto-typography.types with ftd.type-data typography: $inter-typography.types
FASTN/ds.ftd file:-- ftd.type-data typography: $roboto-typography.types
-- ftd.type-data typography: $inter-typography.types
fastn serve on your localhost. Access your localhost in the
browser e.g.http://127.0.0.1:8000/ you will see page typography is changed
with inter-typography