Key takeaways
- A theme is a folder under Themes with Content, Views and a theme.json file. It controls presentation, not business logic.
- Start the official way: copy DefaultClean, rename the folder, and change SystemName and FriendlyName in theme.json.
- Override only the Razor views you change. Every page inherits _Root.cshtml, so layout edits reach the whole store.
- Test on staging across the full shopping journey, and keep the previous theme as a rollback.
Creating a custom nopCommerce theme is simple at the folder level and easy to get wrong in production. The real work is deciding which Razor views to override, how to organise the stylesheets, and how to keep the theme upgrade-safe instead of a fragile copy of the whole storefront.
In the themes we build at BSS, the strongest ones are thin, deliberate overrides: the base behaviour stays intact and the brand lives in the theme. We checked the theme files and layouts below against the nopCommerce 5.00.1 source and the official design documentation on GitHub on 25 November 2026.
What a nopCommerce Theme Actually Controls
Themes live under the Themes folder and set the layout and look of the public store. The default theme, DefaultClean, shows the structure: a Content folder for styles, images and scripts, a Views folder for Razor overrides, a preview image and theme.json.
The boundary matters. A theme should control presentation. If a feature needs admin settings, new data, payment or shipping logic, or a service, it belongs in a plugin, not in theme files.
Need a custom theme built? BSS designs and builds upgrade-safe nopCommerce themes.
View nopCommerce servicesSet Up the Theme Folder and theme.json
The official documentation describes the starting method: copy a working theme, rename the folder, then change the names in theme.json. In source code the folder is under Nop.Web\Themes; in a deployed site, under the site's Themes folder.
Themes/
MyBrandTheme/
theme.json
preview.jpg
Content/
css/
images/
Views/
In nopCommerce 5.00.1, the DefaultClean theme.json has five fields. Set SystemName to the folder name and FriendlyName to the name shown in the admin:
{
"SystemName": "MyBrandTheme",
"FriendlyName": "My Brand Theme",
"SupportRTL": true,
"PreviewImageUrl": "~/Themes/MyBrandTheme/preview.jpg",
"PreviewText": "The 'MyBrandTheme' site theme"
}
Do not copy every view on day one
Each copied view is a file you must compare and retest at every upgrade. Copy a view only when you change it, and note why.
Plan Your Razor Views and Layout Overrides
The official layout documentation describes the structure: _Root.cshtml holds the header, menu, body and footer, and _Root.Head.cshtml the head of the page. _ColumnsOne.cshtml and _ColumnsTwo.cshtml sit on top of it for one-column and two-column pages.
Because every public page inherits _Root.cshtml, a change there reaches the whole store. Start overrides where they create value: header, footer, category list, product page, cart, checkout and the customer account pages, and test each one hard.
| View layer | What to watch |
|---|---|
| Shared layouts | Header, footer and navigation reach every page |
| Commerce pages | Product, category, cart and checkout markup affects conversion |
| Customer account | Account, address and order pages must stay clear on phones |
| Plugin output | Widgets, payment and shipping plugins inject markup your theme must style |
For more on why the .NET architecture matters once theme work touches code, see why developers choose nopCommerce.
Build the CSS and JavaScript Workflow
DefaultClean ships three stylesheets in Content/css: styles.css for the store, styles.rtl.css for right-to-left languages and print.css for printed pages. A custom theme can follow the same split.
For a larger storefront, keep the source in SCSS, split by tokens, layout, components and pages, and compile it into the theme's CSS files. Load only the compiled output in production.
Content/
scss/
_tokens.scss
_layout.scss
_product-card.scss
_checkout.scss
styles.scss
css/
styles.css
styles.rtl.css
print.css
Keep scripts small and test them on real pages. A menu that works on a static mock-up can break after an Ajax cart update or a plugin's checkout markup. If the store needs right-to-left languages, plan for it early; our guide to adding RTL support to a nopCommerce theme covers it.
In the themes we ship, we copy only the views that change, so an upgrade means comparing a short list of files instead of the whole storefront. NopGadget is one we maintain that way.
Test the Theme Before Launch
A theme can look finished and still fail real customers. Test across devices and browsers, logged-in and guest flows, tax and shipping combinations, empty states, validation errors, search, account pages and failed payments.
A theme our engineers build and maintain. Open its live demo to see a finished custom theme across the full shopping journey.
Custom theme launch checklist
- Create the theme folder, set theme.json and apply the theme on staging first.
- Override only the Razor views you need, and document why each copied view exists.
- Compile and minify the stylesheets, and remove unused files before launch.
- Test home, category, product, search, cart, checkout, account, order history and error pages.
- Check mobile navigation, forms, images, prices and plugin-injected markup.
- Check stylesheet size, unused scripts, image weight and layout shift.
- Keep the previous theme so the admin can switch back if launch goes wrong.
Theme work meets upgrades too. Before a major version change, follow the nopCommerce upgrade checklist so your custom views do not drift from the platform.
If you would rather hand over the build, our custom nopCommerce theme development covers design, Razor view planning, responsive testing, plugin styling and launch.
A custom theme that survives upgrades
BSS designs and builds nopCommerce themes as thin, documented overrides, tested across the full shopping journey.
Frequently Asked Questions
Final Thoughts
Treat a custom nopCommerce theme as a presentation layer. Start from a copy of DefaultClean, set theme.json, override only the views you change, keep the stylesheets organised, and test the full shopping journey before launch.
Done that way, the theme stays easy to upgrade, and the next version of nopCommerce is a short review rather than a rebuild.
Share your design and the pages that matter most. We will plan the overrides and build the theme for your version.
Talk to an expert

