How to create a custom NopCommerce theme from scratch

Theme & design 9 Updated

How to Create a Custom nopCommerce Theme From Scratch

A practical developer guide to building a custom nopCommerce theme: folder and theme.json, Razor views and layouts, stylesheets, testing and launch, checked against 5.00.1.

The NopGadget theme's storefront by BSS beside the five fields of a nopCommerce theme.json file, under the line a theme is thin overrides, not a copy

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

The DefaultClean theme folder in the nopCommerce 5.00.1 source with Content, Views, preview.jpg and theme.json, overlapped by its theme.json file

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.

theme.json
Names the theme and its preview so the admin can list and apply it.
Views
Razor overrides that change markup while keeping nopCommerce's routes and models.
Content
Stylesheets, images and scripts: the brand layer.

Need a custom theme built? BSS designs and builds upgrade-safe nopCommerce themes.

View nopCommerce services

Set Up the Theme Folder and theme.json

The official nopCommerce documentation for creating a theme: copy the default theme, rename the folder, then change the names in 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 nopCommerce layout documentation diagram of _Root.cshtml with its header menu, master wrapper and body areas, beside the three layouts _Root, _ColumnsOne and _ColumnsTwo

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 layoutsHeader, footer and navigation reach every page
Commerce pagesProduct, category, cart and checkout markup affects conversion
Customer accountAccount, address and order pages must stay clear on phones
Plugin outputWidgets, 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

The DefaultClean Content/css folder in the nopCommerce 5.00.1 source with styles.css, styles.rtl.css and print.css

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.

From the BSS team

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

The NopGadget storefront in a browser beside four launch checks: staging first, override only what changes, every commerce page and a rollback ready

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.

BSS theme
NopGadget Theme + 18 Plugin Bundle

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.

From the BSS team

If you would rather hand over the build, our custom nopCommerce theme development covers design, Razor view planning, responsive testing, plugin styling and launch.

Frequently Asked Questions

Can I create a custom nopCommerce theme without changing core files?
Yes. A custom theme lives in its own folder under Themes and overrides only the views and assets it needs. Editing core files makes upgrades and troubleshooting much harder.
Where are nopCommerce themes stored?
Under the Themes folder: Nop.Web\Themes in the source code, or the Themes folder of a deployed site.
What goes in a nopCommerce theme.json file?
In nopCommerce 5.00.1 the default theme uses five fields: SystemName, FriendlyName, SupportRTL, PreviewImageUrl and PreviewText.
Should I use SCSS or plain CSS in a nopCommerce theme?
Plain CSS works for small themes. For larger storefronts, SCSS split into partials is easier to maintain; compile it into the theme stylesheets and load only the compiled files.
When should a theme change become a plugin instead?
When it needs admin settings, stored data, services, scheduled tasks, or payment or shipping logic. Build that as a plugin and keep the theme to presentation.

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.

SN

Written by Salsabeel Noor

Software Engineer · Bangladesh Software Solution

Software Engineer at BSS in Dhaka, building nopCommerce storefront widgets and themes in C#, Razor and CSS.

Read nextTheme & design How to Install & Change a Theme in nopCommerce 4.80 12 min read