Dualite Documentation
  • Overview
  • Getting Started
    • Quickstart
  • Basics
    • Basics of Dualite Figma plugin
    • Advanced Settings
    • Tagging
  • DASHBOARD
    • Overview
  • Designer's Guide to Dualite
    • Overview
    • Native Figma Features supported by Dualite
    • Figma best practices
      • 3. Responsivity and Auto Layout
      • Additional tips
  • DEV'S GUIDE TO DUALITE
    • Overview
    • How Dualite translates Figma design settings into Code
    • Deploying on Vercel
    • In-depth guide to Component Mode
  • Popular Use-cases
  • Billing and Payment
    • Subscription Invoices
    • Cancelling your Pro plan
  • FAQs
    • What can I do with Dualite?
    • Feature Requests
    • Flex is not working
    • Errors and Bugs
    • Why my fonts aren't showing?
    • Dev Mode compatibility
    • Safari browser incompatibility
Powered by GitBook
On this page
  • 1. Use fonts that are available on Google Fonts
  • 2. Font size mismatches
  • 3. Avoid masking, especially complex masking like Boolean
  1. Designer's Guide to Dualite
  2. Figma best practices

Additional tips

Here are some additional things to keep in mind while designing for generating a higher quality code

Previous3. Responsivity and Auto LayoutNextOverview

Last updated 8 months ago

1. Use fonts that are available on Google Fonts

Dualite is adapted to Google Fonts for the generated code. If you use a font in the Figma design that is not available on Google Fonts, it’ll be replaced by the default font, i.e Times New Roman. You can check the list of fonts available on Google Fonts.

If you still wants to use custom fonts, then follow this guide .

2. Font size mismatches

The font size displayed in Figma can at times be larger than the actual code output. This is an inherent Figma issue and not a Dualite issue.

3. Avoid masking, especially complex masking like Boolean

If there’s any group or frame in the design which is made through a series of masking/clips, we’ll recommend you to first export that whole group as a separate image and replace that Figma group with that image for optimal conversion to code

here
here
https://forum.figma.com/t/font-size-displaying-larger-in-browser-than-in-figma/3766