my_photo_album/astro.config.mjs
2026-06-02 22:15:07 +02:00

31 lines
697 B
JavaScript

// @ts-check
import { defineConfig, fontProviders } from "astro/config";
// https://astro.build/config
export default defineConfig({
fonts: [
{
provider: fontProviders.local(),
name: "Atkinson",
cssVariable: "--font-atkinson",
fallbacks: ["sans-serif"],
options: {
variants: [
{
src: ["./src/assets/fonts/atkinson-regular.woff"],
weight: 400,
style: "normal",
display: "swap",
},
{
src: ["./src/assets/fonts/atkinson-bold.woff"],
weight: 700,
style: "normal",
display: "swap",
},
],
},
},
],
});