Skip to content

Conversation

@paulehermancab
Copy link
Contributor

Description

This PR introduces a new configuration textarea that allows users to input and validate a JSON configuration for custom Tailwind font families.
The JSON provided by the user overrides the default Tailwind fontFamily settings used in the generated code.

This feature enhances flexibility and enables better brand customization when exporting designs from FigmaToCode.

✨ What's new

Added a textarea config field in the settings panel for Tailwind font customization.

Implemented JSON validation to ensure user input is valid before applying changes.

Added error handling and visual feedback for invalid JSON entries.

Capture d’écran 2025-10-23 à 17 58 24

📝 Notes

Default Tailwind configuration remains unchanged if the field is empty or invalid.

@paulehermancab
Copy link
Contributor Author

This could be a good first step for #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant