What are the steps to customize a theme on Fynd Platform using FDK CLI? What are the best practices and prerequisites to start working on themes?
To customize a theme on the Fynd Platform using FDK CLI, one should follow the steps mentioned below:
-
Gain access: You need access to the merchant’s application. Ask the merchant to add you as a staff member with the permission to manage themes.
-
Install FDK CLI: It’s a CLI tool that assists in building themes, extensions. Use npm install -g @gofynd/fdk-cli for installation. Make sure Node.js and Git are installed in your system.
-
Authenticate: Authenticate yourself using the CLI. You can use your registered mobile number or email for this.
-
Download the Theme: You need the theme token to clone the merchant’s theme code. Execute the command: ‘fdk theme init -t <theme_token>’
-
Customize: Make any changes to the downloaded theme code. For example, adjust the CSS to change the theme’s appearance.
-
Preview Changes: Preview your changes on the local system using the command: ‘fdk theme serve’
-
Sync Code: Sync your theme to the application using the command: ‘fdk theme sync’
Observe best practices when working with merchants and gain basic knowledge of VueJS. Also, different versions of Node.js may have varying support. Currently, Node versions are limited to Node 15.
For more details, please refer to the full guide here.