Introduction

Ynex - MudBlazor Web App Server Premium Admin & Dashboard Template

Ynex - MudBlazor Web App Server Premium Admin Template, With these template formats, it's very easy to create a presence and grab someone's attention around the web page Because the template is built using razor, C#, CSS3, MudBlazor framework and with Sass. So please before you start working with the template take a quick look on the documentation so that you can easily built your website. If You Love Our Template Design Please don't forgot to rate it. Thank you so much! 😊

Support and Updates:

When you purchase Ynex, you gain access to free future updates to ensure your template remains up-to-date. Plus, our support team is always ready to assist with any questions.

Dependencies for Ynex
  • .NET 10.0.103 SDK
  • Visual Studio Code or Visual Studio 2026
  • C# for Visual Studio Code
  • MudBlazor : 9.0.0
  • Sass
  • AspNetCore.SassCompiler : 1.97.1
  • Node : 22.18.0
  • NPM : 10.8.1

What Do You Get with the Ynex:

Ynex provides all necessary Razor, CSS, SCSS, JS files, along with detailed Documentation to help you easily customize and implement the template.

  • All .razor Files
  • CSS Files
  • SCSS Files
  • JS Files
  • Documentation
  • Starterkit

Ynex Compatibility with Popular Browsers:

Ynex is fully compatible with major browsers, ensuring a seamless user experience across Chrome, Firefox, Safari, Edge, and Opera.

  • Firefox
  • Safari
  • Opera
  • Chrome
  • Edge

Blazor Folder Structure

  • Start by unzipping the project folder that you received from us.
  • Go to the "Ynex\Components Layout directory within the project folder, where you'll find MainLayout.razor, LandingLayout.razor, JobsLandingLayout.razor, MainHeader.razor and NavMenu.razor files etc..
  • Go to the "Ynex\Components Pages directory within the project folder, where you'll find over 8 + folders and 170 + .razor files.
  • The MainLayout.razor file serves as the base for all razor pages.
  • The CustomLayout.razor file is the base for authentication pages such as Create-password-cover.razor, Reset-password-cover.razor, Two-step-verification-basic.razor, Error401.razor, Error500.razor, and Under-maintenance.razor, etc.
  • The LandingLayout.razor file is the base for the Landing.razor page.
  • The JobsLandingLayout.razor file is the base for the LandingJobs.razor page.
Installation Process of .NET SDK

Step 1: Visit the official .NET SDK download page.

Step 2: Click on the Download .NET SDK button.

Step 3: Run the installer to install the SDK on your system.

How to Run the Blazor Core Development Server
Using Visual Studio Code
  • Unzip the project folder you received.
  • Open the project folder in Visual Studio Code.
  • Open a terminal and navigate to your project directory:
cd /path-to-your-project

Then run the development server:

Command

dotnet watch run
Using Visual Studio
  • Unzip the project folder.
  • Open the .sln file.
  • Press F5 to run the application.
Purpose of a Starter Kit
Introduction to the MudBlazor Starter Kit:

The MudBlazor starterkit is a resource that helps developers kickstart their MudBlazor web development projects by providing a preconfigured and ready-to-use template. It aims to simplify the initial setup and provide a foundation for building MudBlazor Framework-based websites or applications.

Purpose of the MudBlazor Starter Kit:

The purpose of the MudBlazor starter kit is to save developers time and effort by offering a set of prebuilt files and configurations commonly used in MudBlazor projects. Instead of starting from scratch, developers can leverage the starter kit to quickly set up a project structure that adheres to best practices and industry standards.

Benefits of Using the MudBlazor Starter Kit:

The starter kit eliminates the need to set up the basic project structure manually. It provides a well-organized file and folder structure, including commonly used directories for separating code, templates, assets, and configuration files. This allows developers to focus more on implementing business logic rather than spending time on initial setup.

Starterkit Overview

You can use the Starterkit if you are creating a new project. It will be time-consuming to use the full admin version for a new project as Ynex have more than 175 pages.

We have provided all the pre-build layouts like Sidemenu, Header, footer and blank pages etc in the Starterkit.

For further information or support regarding the template, please contact us using the provided link: https://support.spruko.com/

  • Take a quick look at the folder structure of the "Starterkit."
  • Integration of your customized razor pages becomes easy when using the "Starterkit."
  • The "Starterkit" provides all the layout components, related assets, and plugins.
  • To explore the contents of the "Starterkit," unzip the project folder received after purchase.
  • Navigate to the following paths:
  • Example: C:/projectname/Components/Layout- This folder contains files such as MainLayout.razor,NavMenu.razor, MainHeader.razor, Footer.razor, Modal.razor and Switcher.razor files.
  • Example: C:/projectname/Pages/- This folder contains files such as NotFound.razor, files and etc..,.

SCSS Compilation with SassCompiler

Ynex uses AspNetCore.SassCompiler to compile SCSS files into CSS as part of the ASP.NET Core application lifecycle. This ensures styles are always generated automatically and stay in sync with your SCSS source files.

Installation

Install the AspNetCore.SassCompiler NuGet package to enable SCSS compilation. You can install it using any of the following methods:

  • Package Manager Console: Install-Package AspNetCore.SassCompiler
  • dotnet CLI: dotnet add package AspNetCore.SassCompiler
  • PackageReference:

    <PackageReference Include="AspNetCore.SassCompiler" Version="1.97.1" />
How it Works

SCSS files located in wwwroot/assets/scss are compiled into CSS and written to wwwroot/assets/css.

Configuration

The Sass compiler is configured using sasscompiler.json:


    {
    "Source": "wwwroot/assets/scss",
    "Target": "wwwroot/assets/css",
    "Arguments": "--no-source-map --error-css --style=expanded"
    }
Live CSS Changes (Development Mode)

To enable live SCSS-to-CSS recompilation during development, the Sass compiler is registered in the application startup Program.cs:


        if (builder.Environment.IsDevelopment())
        {
            builder.Services.AddSassCompiler();
        }
    

When enabled, any changes made to SCSS files are automatically recompiled at runtime, allowing CSS updates to reflect immediately without restarting the application.

Key Benefits
  • Instant SCSS-to-CSS recompilation during development
  • No manual build or watch commands required
  • Fully integrated with ASP.NET Core
  • Works seamlessly with MSBuild and PostCSS pipeline

Note: Initial CSS files are generated by running dotnet build, Run dotnet build once to generate CSS files if they do not exist in wwwroot/assets.

MSBuild Based Asset Pipeline

Ynex uses MSBuild targets to manage frontend assets in a structured and automated way. All tasks are executed as part of the standard ASP.NET Core build lifecycle.

This approach avoids introducing a separate JavaScript build system (such as esbuild or Gulp) and keeps asset processing fully aligned with the .NET build process.

Pipeline Responsibilities
  1. Ensures Node.js dependencies (node_modules) are installed
  2. Resolves and copies libs from node_modules
  3. Processes CSS using PostCSS
Why MSBuild?

MSBuild is used as the single orchestration layer for frontend assets to ensure consistency across development, CI/CD, and production builds.

  • Runs automatically during dotnet build
  • No separate frontend build commands required
  • Works consistently across local and server environments
  • Avoids duplicate or out-of-sync build pipelines
Automatic npm Installation

The build pipeline copies libs from node_modules to wwwroot/assets/libs during dotnet build. If node_modules is missing, the build would fail with an error.

To prevent this, an MSBuild target automatically runs npm install before the build when node_modules is not present.


    <Target Name="CheckNpm" BeforeTargets="Build">
    <Exec Command="npm install"
            Condition="!Exists('node_modules')" />
    </Target>

This ensures all required npm dependencies are available and avoids build errors in fresh clones or CI environments.

Npm Package libraries Management

npm packages are managed through package.json. You can install a package using npm install <package-name>, ensuring consistent dependency versions across all environments.

When dotnet build is executed, MSBuild copies the required package libs from node_modules to wwwroot/assets/libs, making them available for runtime use.

When a new npm package is installed, add its package name to the MSBuild Packages list in ynex.csproj


    <Packages Include="bootstrap; swiper; chart.js; select2; new-package-name;" />

The build pipeline handles the rest automatically.


    <Target Name="CopyVendorAssets" AfterTargets="Build">
    <Message Importance="high"
            Text="Auto-resolving and copying vendor assets..." />

    <Copy SourceFiles="@(AllFiles)"
            DestinationFolder="wwwroot\assets\libs\%(Folder)\%(RecursiveDir)"
            SkipUnchangedFiles="true" />
    </Target>

The pipeline intelligently detects whether a package exposes a dist directory and copies optimized files when available. If no dist folder exists, the package contents are copied instead.

PostCSS Processing

After SCSS to CSS compilation by SassCompiler, CSS files are post-processed using PostCSS. PostCSS is used as a lightweight transformation step rather than a full bundling solution.

The PostCSS configuration is defined in postcss.config.js:



    module.exports = {
        plugins: [
            require('postcss-import'), 
            require('autoprefixer'),
        ]
    };
  • postcss-import – enables modular CSS with @import and bundles it into one file.
  • Autoprefixer – automatically adds required CSS prefixes to ensure cross-browser compatibility.

    <Target Name="MinifyAndPrefix" AfterTargets="Build">
    <Message Importance="high"
            Text="Post-processing CSS: Autoprefixing and Minifying..." />

    <Exec Command="npx postcss wwwroot/assets/css/icons.css
            -o wwwroot/assets/css/icons.css" />

    <Exec Command="npx postcss wwwroot/assets/css/styles.css
            -o wwwroot/assets/css/styles.css" />

    <Exec Command="npx postcss wwwroot/assets/css/icons.css
            -o wwwroot/assets/css/icons.min.css --use cssnano" />

    <Exec Command="npx postcss wwwroot/assets/css/styles.css
            -o wwwroot/assets/css/styles.min.css --use cssnano" />
    </Target>
  • cssnano – used only for generating minified production CSS files

When you run dotnet build command, the following actions take place:

  1. npm dependencies are installed automatically (if missing)
  2. npm package libs are copied to wwwroot/assets/libs from node_modules folder
  3. CSS is autoprefixed and minified

All frontend asset tasks are handled automatically by MSBuild, keeping the asset pipeline simple, predictable, and production-ready.

Overall Project Workflow

The project uses SassCompiler to compile SCSS files into CSS, and MSBuild targets to copy npm package libraries from node_modules into wwwroot/assets/libs. PostCSS is used for autoprefixing and minification of the generated CSS.

Recommended Development Flow

Always run dotnet build first, then start the application using dotnet watch run. Although dotnet watch run performs a build before starting, it may run an incremental build and some MSBuild targets (such as copying libs) may not execute fully. Therefore, if wwwroot/assets/libs is missing, the project may start successfully, but some components can fail with missing library errors because the required libs are not copied from node_modules.

During development, SassCompiler watches SCSS changes automatically, so you do not need to manually recompile or restart the server because we have registered the Sass Compiler in the application startup Program.cs:


    if (builder.Environment.IsDevelopment())
    {
        builder.Services.AddSassCompiler();
    }

When enabled, any changes made to SCSS files are automatically recompiled at runtime, allowing CSS updates to reflect immediately without restarting the application.

Adding a New npm Package

When adding a new npm package, install it using npm install <package-name>, stop the server, and add the package name to the MSBuild Packages list in the .csproj file.


    <Packages Include="bootstrap; swiper; chart.js; select2; new-package-name;" />
Then run dotnet build to copy the package libs from node_modules to wwwroot/assets/libs

Important: If the package name is not added to the Packages list, its library files will not be copied to wwwroot/assets/libs.

FAQ'S

Step 1:

Go To style.scss (wwwroot/assets/scss/styles.scss )

if you want to change another font-family Go to the site Google Fonts And Select One font Family and import in to styles.scss file

How to Select font Family

Step 2:

And paste Your Selected font-family in style.scss

Step 3:

And add the Your Selected font-family in _variables.scss(wwwroot/assets/scss/_variables.scss)

code

--default-font-family:   'Inter', sans-serif;

By default menu icons are phosphoricons if you want to change icons please follow below steps
Step :

To change Menu icons, open MenuData.Service.cs file Path:Services/MenuDataService.cs and go through MainMenuItems you can find the icon property as icon: "bx bx-home", in the place of bx bx-home you can replace it with the required image as it will append to the class for i tag.

                                                            
    
                                                            
                                                        

To Add the New link element, open MenuData.Service.cs page Services\MenuData.Service.cs and go through the object where you are want to place the new menu element.

                                                            

                                                            
                                                        

To Add the New menu element, open MenuData.Service.cs page Services\MenuData.Service.cs and go through the object where you are want to place the new menu element.

                                                            
    
                                                            
                                                        

To Remove the link/sub element, open MenuData.Service.cs page Services\MenuData.Service.cs and go through the object which you are intended to remove.

                                                            
    
                                                            
                                                        

Go To "wwwroot/assets/images/brand-logos" folder and replace your logo with Previous Logos within in image size. note: Please don't increase logo sizes. Replace your logo within given image size. otherwise the logo will not fit in particular place it disturbs the template design.

Step1:

Go to root path: Components/Layout/MainHeader.razor open "MainHeader.razor" file and remove below mentioned switcher icon code.

html

@* Start::header-element *@
    <div class="header-element">
        <!-- Start::header-link|switcher-icon -->
            <MudButton Variant="Variant.Text" class="header-link switcher-icon" OnClick="@(() => OpenDrawer(Anchor.End))">
                <MudIcon Icon="bx bx-cog header-link-icon" />
            </MudButton>
        <!-- End::header-link|switcher-icon -->
    </div>
@* End::header-element *@
Step2:

Go to root path: Components/Layout/MainHeader.razor open "MainHeader.razor" file and remove below mentioned switcher code.

html

@*start main switcher*@
<MudDrawer @bind-Open="@_open" Width="@_width" Height="@_height" Anchor="@_anchor" Elevation="1" Variant="@DrawerVariant.Temporary" class="switcher-canvas">
    ------------
    ------------
    --------
</MudDrawer>
@*end main switcher*@
Step3:

html


    Need to remove complete StateService  path : Services/StateServicefile.

NOTE: "If the switcher is not used in the template, you can remove the StateService.cs file. If , some pages use the switcher, do not remove StateService.cs, because removing it will affect all layouts and the switcher functionality will stop working. so, only remove icon and code"

Step1:

Go to root paths: Components/Layout/LandingSidebar.razor and Components/Layout/LandingHeader.razor open "LandingSidebar.razor" and "LandingHeader.razor" in that file, remove the Switcher Button code as shown in below.

html

In LandingSidebar.razor

    <MudButton Class="btn-icon btn-light switcher-icon ms-2" OnClick="@(() => OpenDrawer(Anchor.End))">
        <MudIcon Icon="ri-settings-3-line align-center fs-15" />
    </MudButton>

In LandingHeader.razor														

    <MudButton Class="btn-icon btn-success switcher-icon ms-2" OnClick="@(() => OpenDrawer(Anchor.End))">
        <MudIcon Icon="ri-settings-3-line align-center fs-15" />
    </MudButton>
    
Step2:

Go to root paths: Components/Layout/LandingSidebar.razor and Components/Layout/LandingHeader.razor open "LandingSidebar.razor" and "LandingHeader.razor" in that file, remove the Switcher code as shown in below.

html

<MudDrawer @bind-Open="@_open" Width="@_width" Height="@_height" Anchor="@_anchor" Elevation="1" Variant="@DrawerVariant.Temporary" class="switcher-canvas">
    ------------
    ------------
    --------
</MudDrawer>

Step1:

Go to root paths: Components/Layout/LandingSidebar.razor and Components/Layout/LandingHeader.razor open "LandingSidebar.razor" and "LandingHeader.razor" in that file, remove the Switcher Button code as shown in below.

html

In LandingSidebar.razor

<MudButton Class="btn-icon btn-light switcher-icon ms-1" OnClick="@(() => OpenDrawer(Anchor.End))">
    <MudIcon Icon="ri-settings-3-line align-center fs-15" />
</MudButton>

In LandingHeader.razor														

<MudButton Class="btn-icon btn-success switcher-icon ms-2" OnClick="@(() => OpenDrawer(Anchor.End))">
    <MudIcon Icon="ri-settings-3-line align-center fs-15" />
</MudButton>
    
Step2:

Go to root paths: Components/Layout/LandingSidebar.razor and Components/Layout/LandingHeader.razor open "LandingSidebar.razor" and "LandingHeader.razor" in that file, remove the Switcher code as shown in below.

html

<MudDrawer @bind-Open="@_open" Width="@_width" Height="@_height" Anchor="@_anchor" Elevation="1" Variant="@DrawerVariant.Temporary" class="switcher-canvas">
    ------------
    ------------
    --------
</MudDrawer>

Please follow the below steps to change Primary Color
Step 1 :

To change Primary Color you have to open _variables.scss file and replace what color you want as shown in below

Rootpath : _variables.scss (wwwroot/assets/scss/_variables.scss )

Please follow the below steps to change Dark body Color
Step 1 :

Make sure the theme is set completely to dark mode by adding the following attributes to the html tag data-theme-mode="dark" data-header-styles="dark" data-menu-styles="dark"

Step 2 :

To change Dark body Color you have to open _variables.scss file and replace what color you want as shown in below

Rootpath : _variables.scss (wwwroot/assets/scss/_variables.scss )

Step 3 :

Also Change the following variable colors to the desired theme background accordingly in [data-theme-mode="dark"]

--light-rgb :
--form-control-bg :
--input-border :
--gray-3 :

Credit's

Images Credit
Images References
Vecteezy https://www.vecteezy.com/
Iconscout https://iconscout.com/
Unsplash https://unsplash.com/
Fonts Credit
Font References
Google Fonts https://fonts.google.com/
Sidemenu Icons
Icon References
phosphor Icons https://phosphoricons.com/

Switcher styles

StateService.cs

    
    public string ColorTheme { get; set; } = "light";                   // light, dark
    public string Direction { get; set; } = "ltr";                      // ltr, rtl
    public string NavigationStyles { get; set; } = "vertical";          // vertical, horizontal   
    public string MenuStyles { get; set; } = "";                        // menu-click, menu-hover, icon-click, icon-hover
    public string LayoutStyles { get; set; } = "default-menu";          // doublemenu, detached, icon-overlay, icontext-menu, closed-menu, default-menu 
    public string PageStyles { get; set; } = "regular";                 // regular, classic, modern
    public string WidthStyles { get; set; } = "fullwidth";              // fullwidth, boxed
    public string MenuPosition { get; set; } = "fixed";                 // fixed, scrollable
    public string HeaderPosition { get; set; } = "fixed";               // fixed, scrollable
    public string MenuColor { get; set; } = "dark";                     // light, dark, color, gradient, transparent
    public string HeaderColor { get; set; } = "light";                  // light, dark, color, gradient, transparent
    public string ThemePrimary { get; set; } = "";                      // '58, 88, 146', '92, 144, 163', '161, 90, 223', '78, 172, 76', '223, 90, 90'
    public string ThemeBackground { get; set; } = "";                   //make sure to add rgb valies like example :- '58, 88, 146' and also same for ThemeBackground1
    public string ThemeBackground1 { get; set; } = "";
    public string BackgroundImage { get; set; } = "";                   // bgimg1, bgimg2, bgimg3, bgimg4, bgimg5
    public MainMenuItems? currentItem { get; set; } = null;
    

Nudget Package Included :

If you need a new NuGet package, install it using the command: "dotnet add package new-package-name" . The package has now been installed successfully.

After running the command, the package will be added to your project and referenced in the .csproj file.

Plugin Version URL
MudBlazor v9.0.0 https://www.nuget.org/packages/MudBlazor/
Blazor-ApexCharts v6.1.0 https://www.nuget.org/packages/Blazor-ApexCharts
WMBlazorSlickCarousel v1.0.1 https://www.nuget.org/packages/WMBlazorSlickCarousel
BlazorCalendar v3.1.3 https://www.nuget.org/packages/BlazorCalendar
BlazorCleave v1.0.102 https://www.nuget.org/packages/BlazorCleave
BlazorColorPicker v4.3.0 https://www.nuget.org/packages/BlazorColorPicker
Blazored.TextEditor v1.1.3 https://www.nuget.org/packages/Blazored.TextEditor
CurrieTechnologies.Razor.SweetAlert2 v5.6.0 https://www.nuget.org/packages/CurrieTechnologies.Razor.SweetAlert2
Excubo.Blazor.TreeViews v4.0.47 https://www.nuget.org/packages/Excubo.Blazor.TreeViews (having some internal warnings from nuget package)
FlatpickrBlazor v5.0.8 https://www.nuget.org/packages/FlatpickrBlazor
LeafletForBlazor v2.2.6 https://www.nuget.org/packages/LeafletForBlazor
NoUiSlider.Blazor v0.1.5 https://www.nuget.org/packages/NoUiSlider.Blazor
Soenneker.Blazor.FilePond v4.0.3508 https://www.nuget.org/packages/Soenneker.Blazor.FilePond
Soenneker.Blazor.TomSelect v4.0.4222 https://www.nuget.org/packages/Soenneker.Blazor.TomSelect
Soenneker.Blazor.Utils.InteropEventListener v4.0.3842 https://www.nuget.org/packages/Soenneker.Blazor.Utils.InteropEventListener
VDT.Core.Blazor.Wizard v6.0.2 https://www.nuget.org/packages/VDT.Core.Blazor.Wizard
WMBlazorOverlayScrollbars v1.0.0 https://www.nuget.org/packages/WMBlazorOverlayScrollbars
AspNetCore.SassCompiler v1.97.1 https://www.nuget.org/packages/AspNetCore.SassCompiler
FluentValidation v12.1.1 https://www.nuget.org/packages/FluentValidation

NPM Plugins & Reference Links

All plugins runs through npm.

If you want new plugins : Install new plugin using "npm install new-package-name", stop the server, and add the package name to the MSBuild Packages list in the .csproj file.


<Packages Include="bootstrap; swiper; chart.js; select2; new-package-name;" />
Then run dotnet build to copy the package libs from node_modules to wwwroot/assets/libs

Important: If the package name is not added to the Packages list, its library files will not be copied to wwwroot/assets/libs from node_modules folder

Information
Need Help ?
Support Help Desk
Technical issues? Our support team is ready to help.
Pre-Sales
Have questions before purchasing? Contact our pre-sales team.
Pre-Sales Chat
Get immediate answers through our live chat support.