Font stack

By default, Astro Just Docs uses a native system font stack for sans-serif fonts:

1
system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz

For monospace type, like code snippets or the <pre> element, Astro Just Docs uses a native system font stack for monospace fonts:

1
"SFMono-Regular", Menlo, Consolas, Monospace

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz


Responsive type scale

Astro Just Docs uses a responsive type scale that shifts depending on the viewport size.

SelectorSmall screen size font-sizeLarge screen size font-size
h1, .h132px36px
h2, .h218px24px
h3, .h316px18px
h4, .h414px16px
h5, .h516px18px
h6, .h618px24px
body14px16px

Headings

Headings are rendered like this:

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
1
# Heading 1
2
## Heading 2
3
### Heading 3
4
#### Heading 4
5
##### Heading 5
6
###### Heading 6

.h1, .h2, .h3, .h4, .h5, .h6 Headding elements will automtaically be styled appropratiately, but classes can also be given to any element to apply the corresponding heading style.


Body text

Default body text is rendered like this:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

1
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Inline elements

Text can be bold, italic, or strikethrough.

Link to another page.

1
Text can be **bold**, _italic_, or ~~strikethrough~~.
2
3
[Link to another page](another-page).

Typographic Utilities

There are a number of specific typographic CSS classes that allow you to override default styling for font size, font weight, line height, and capitalization.

View typography utilities