# Typography

#### Customize Theme Typography

You can customize the typography used in the theme as well from the central place.

For instance, if you want to change `font-weight` the typography `h5` to.`900` To do that, open **`src\themes\typography.tsx`** and update as below:

{% code title="typography.ts" %}

```typescript
// material-ui
import { Theme, TypographyVariantsOptions } from '@mui/material/styles';

/**
 * Typography used in the theme
 */
  
export default function Typography(theme: Theme, borderRadius: number, fontFamily: FontFamily): TypographyVariantsOptions {
    return {
        ...
        h5: {
            ...
            fontWeight: 900 // changed this to make it 900 from 500
        },
        ...
    };
});
```

{% endcode %}

This will apply to all places where you used Typography variants as **`h5`**

**`<Typography variant="h5"...>`**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://codedthemes.gitbook.io/berry/theme/theme-config/typography.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
