Astro Docs - v1.0.0
Modes

You can quickly switch between Light & Dark mode using the Toggle button. You can make default dark mode by updating below changes in the src/layouts/Layouts.astro file.

x-data="{ direction: 'ltr', mode: 'dark' }"

At line no: 23 you just update the mode: 'dark' or 'light' so it will be set by default.