We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 085a743 commit 6f23e95Copy full SHA for 6f23e95
src/content/docs/en/reference/experimental-flags/fonts.mdx
@@ -857,11 +857,17 @@ An Astro font provider is made up of two parts: the config object and the actual
857
3. Add your custom provider to your font configuration.
858
859
```js title="astro.config.mjs" ins="myProvider()"
860
- fonts: [{
861
- provider: fontProviders.myProvider(),
862
- name: "Custom Font",
863
- cssVariable: "--font-custom"
864
- }]
+ import { defineConfig } from "astro/config";
+ import { myProvider } from "./provider/config";
+
+ export default defineConfig({
+ experimental: {
865
+ fonts: [{
866
+ provider: myProvider(),
867
+ // ...
868
+ }]
869
+ }
870
+ });
871
```
872
873
</Steps>
0 commit comments