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.
Selector
Small screen size font-size
Large screen size font-size
h1, .h1
32px
36px
h2, .h2
18px
24px
h3, .h3
16px
18px
h4, .h4
14px
16px
h5, .h5
16px
18px
h6, .h6
18px
24px
body
14px
16px
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.
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.