Skip to content

Commit 6dc3609

Browse files
committed
docs: update docs for modifying max-w-app utility
1 parent b967ef9 commit 6dc3609

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/data/blog/how-to-configure-astropaper-theme.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,19 @@ Here are SITE configuration options
6969
| `lang` | Used as HTML ISO Language code in `<html lang"en">`. Default is `en`. |
7070
| `timezone` | This option allows you to specify your timezone using the [IANA format](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Setting this ensures consistent timestamps across your localhost and deployed site, eliminating time differences. |
7171

72+
## Update layout width
73+
74+
The default `max-width` for the entire blog is `768px` (`max-w-3xl`). If you'd like to change it, you can easily update the `max-w-app` utility in your `src/styles/global.css` file:
75+
76+
```css
77+
@utility max-w-app {
78+
@apply max-w-4xl xl:max-w-5xl;
79+
/* eg: max-w-4xl xl:max-w-5xl */
80+
}
81+
```
82+
83+
You can explore more `max-width` values in the [Tailwind CSS docs](https://tailwindcss.com/docs/max-width).
84+
7285
## Configuring logo or title
7386

7487
Prior to AstroPaper v5, you can update your site name/logo in `LOGO_IMAGE` object inside `src/config.ts` file. However, in AstroPaper v5, this option has been removed in favor of Astro's built-in SVG and Image components.

0 commit comments

Comments
 (0)