πŸ““

Svelte

Log in Start free trial β†’

Reference

πŸ““Fontdue.jsπŸ““GraphQLπŸ““Demo template

Guides

πŸ““WebflowπŸ““Wordpress + Lay ThemeπŸ““Wordpress + SempliceπŸ““Next.js (App Router)πŸ““Next.js (Pages Router)

Information

πŸ““Full-service website developmentπŸ““Managing your font catalogπŸ““Variable fontsπŸ““Font licensesπŸ““WebfontsπŸ““Cross-origin accessπŸ““Payments with StripeπŸ““TaxπŸ““Test fontsπŸ““Test modeπŸ““Manage your Fontdue subscriptionπŸ““Launching your siteπŸ““TroubleshootingπŸ““Customize the Address fields

Updates

πŸ““What’s newπŸ““Update 001πŸ““Update 002πŸ““Update 003πŸ““Update 004πŸ““Update 005
⚑
Start free trial β†’

Svelte integration

To integrate Fontdue into a SvelteKit app, add the Fontdue.js snippet to the src/app.html file, at the bottom of the <body> tag.

You can now add the Fontdue components to your app.

For example, open the src/routes/__layout.svelte and add the Store Modal component, anywhere is fine. This will make sure the store modal is accessible on any page.

<fontdue-store-modal></fontdue-store-modal>

Add an example component to the src/routes/index.svelte file:

<fontdue-type-testers collection-slug="ibm-plex"></fontdue-type-testers>
  • Svelte integration