πŸ““

Customize the Address fields

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 β†’

Customize the Address fields

During the checkout process we take advantage of Stripe’s Address Element. We try to match the style of the fields to the Fontdue theme, but you may want to take more control over the style. You can do this by passing the Stripe Appearance config to the fontdue.initialize() (using Fontdue.js) or with the FontdueProvider (using the React components).

The full Appearance API documentation is here: https://docs.stripe.com/elements/appearance-api

<script type="module">
  import fontdue from "https://js.fontdue.com/fontdue.esm.js";
  
  fontdue.initialize({
    config: {
      // .... your existing config here ....
      
      stripe: {
        appearance: {
          theme: 'flat',
          variables: {
            // you can use your "UI Font" here: change the name to your UI Font family's name
            fontFamily: 'YourUIFontFamily Regular',
            
            // the UI Font weight is always 400
            fontWeightLight: '400',
            fontWeightNormal: '400',
            fontWeightMedium: '400',
            fontWeightBold: '400',
            
            // here are some example settings you can modify and add to
            borderRadius: '0',
            spacingUnit: '5px',
            fontSmooth: 'always',
            fontSizeBase: '16px',
          },
        },
      },
    },
  });
</script>
  • Customize the Address fields