Configuration Reference
type Options = {
fonts?: FontOptions;
islands?: boolean;
};
type FontOptions = {
providers: string[];
families: FontFamilies[];
};
type FontFamilies = {
name: string;
weights: string[];
styles: Array<"normal" | "italic" | "oblique">;
};
Example Usage
import { defineConfig } from "vite";
import { providers } from "adex/fonts";
export default defineConfig({
plugins: [
adex({
islands: false,
fonts: {
providers: [providers.google()],
families: [
{
name: "Inter",
weights: ["400", "600"],
styles: ["normal"],
},
],
},
}),
],
});