Edit the Theme Manifest: Example
Customize your NetSuite theme's JSON manifest for skins and assets.
In NetSuite theme development, editing the manifest.json file is crucial for customizing your theme effectively. This file, located in the theme's Workspace directory, lists all HTML templates, Sass, and assets. It's necessary to adjust this file when you add new components to your theme.
What is a Theme Manifest?
The theme manifest is a JSON file essential for compiling resources for an active theme in NetSuite. It contains metadata about the theme and lists information about templates, Sass, skins, assets, and paths. Understanding each section aids in effective theme customization and deployment.
Theme Metadata
The metadata section includes fields like name, vendor, type, target, version, and description. These fields provide critical information about the theme, such as its name and version, and are automatically updated when you deploy using the gulp theme:deploy command.
How to Manage Overrides
Overrides are included if you introduce extension overrides. Using Gulp.js commands, any HTML or Sass overrides are automatically included in this file, ensuring they are correctly integrated into the theme.
Templates Section
The templates object lists HTML template files associated with different applications. You must manually add new template files here to ensure they are included in your custom theme.
Sass Management
In the sass object, you list all entry points and Sass files to load. Ensure any new Sass files are declared in an order that follows the Sass hierarchy to maintain theme integrity.
Customizing Skins
The skins array is populated when you run theme commands. For example, creating seasonal skins like winter and spring involves adding skin preset files, which are then automatically included in the manifest. You can edit these presets to provide custom names for display in the SMT Theme Skin Manager.
Assets and Record Paths
The assets object manages image and font paths. Ensure any new asset files added for customizations are included here. Finally, the manifest concludes with record paths defining the theme's location and activation identifiers.
Who This Affects
- Developers: Those involved in theme development and customization.
- Site Managers: Responsible for maintaining site aesthetics using themes.
Key Takeaways
- The
manifest.jsonfile is crucial for managing a NetSuite theme's components. - Always update the manifest to include new templates, Sass files, and assets.
- Skins and assets require careful management to reflect theme customizations effectively.
- Deploy correctly with Gulp.js commands to ensure all changes are integrated.
Frequently Asked Questions (4)
How can I create different selectable skins for a theme in NetSuite?
Do I need to run a specific command for the theme developer tools to update my manifest.json with skins?
Can I change the display names for skins in the SMT Theme Skin Manager later?
Where should I store the skin preset files for my theme?
Was this article helpful?
More in General
- Payment Date Prediction Feature in NetSuite
Payment Date Prediction in NetSuite utilizes machine learning to enhance financial planning by predicting invoice payment dates.
- NetSuite Ship Central Enhancements for Packing & Shipping
NetSuite Ship Central features enhance packing and shipping operations for improved efficiency and accuracy.
- New Role Setup for NetSuite AI Connector Service in 2026.1
The 2026.1 release adds a new role requirement for the NetSuite AI Connector Service, streamlining custom tool development.
- Generative AI Features in NetSuite 2026.1
Discover new generative AI features in NetSuite 2026.1, enhancing reporting, search, predictions, and development productivity.
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category