Introduction

Ynex - Blazor Server Bootstrap Premium Admin & Dashboard Template

Ynex - Blazor Server Premium Bootstrap 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 CSHTML, CSS3, Bootstrap 5 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
  • 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\ Pages directory within the project folder, where you'll find over 14 + folders and 170 + .razor files.
  • Navigate to "ynex\ Shared . Open this folder to locate files like NavMenu.razor, MainHeader.razor, JobsLandingHeader.razor, JobsLandingSidebar.razor and Switcher.razor etc.
  • 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 Landing-jobs.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 build
                                            dotnet watch run
                                        
Using Visual Studio
  • Unzip the project folder.
  • Open the .slnx file.
  • Press F5 to run the application.
Purpose of a Starter Kit
Introduction to the Blazor Server Starter Kit:

The Blazor Server starterkit is a resource that helps developers kickstart their Blazor Server 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 Blazor Server Framework-based websites or applications.

Purpose of the Blazor Server Starter Kit:

The purpose of the Blazor Server starter kit is to save developers time and effort by offering a set of prebuilt files and configurations commonly used in Blazor Server 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 Blazor Server 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 174 pages.

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

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.

If you want new npm plugin, Install it using command npm install <package-name>, stop the server, then run dotnet build. The configured MSBuild targets will automatically copy the package libs from node_modules to wwwroot/assets/libs.


    <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, min, umd 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, then run dotnet build. The configured MSBuild targets will automatically copy the package libs from node_modules 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(static/assets/scss/_variables.scss)

code

--default-font-family: "Space Grotesk", sans-serif;

By default menu icons are Boxicons 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.

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 :

SWITCHER?

If you want to remove switcher in your template follow the below process.

NOTE: The switcher is different for landing pages, if you want to remove switcher to the landing pages then follow the process.

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
Boxicons https://boxicons.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
    

Nuget Packages 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 and will be referenced in the .csproj file.

Plugin Version URL
AspNetCore.SassCompiler v1.97.1 https://www.nuget.org/packages/AspNetCore.SassCompiler
Blazor-ApexCharts v6.1.0 https://www.nuget.org/packages/Blazor-ApexCharts
BlazorCleave v1.0.102 https://www.nuget.org/packages/BlazorCleave
BlazorCalendar v3.1.3 https://www.nuget.org/packages/BlazorCalendar
LeafletForBlazor v2.2.6 https://www.nuget.org/packages/LeafletForBlazor
Soenneker.Blazor.FilePond v4.0.3381 https://www.nuget.org/packages/Soenneker.Blazor.FilePond
Soenneker.Blazor.Utils.InteropEventListener v4.0.3871 https://www.nuget.org/packages/Soenneker.Blazor.Utils.InteropEventListener
Soenneker.Blazor.TomSelect v4.0.4070 https://www.nuget.org/packages/Soenneker.Blazor.TomSelect
FlatpickrBlazor v5.0.8 https://www.nuget.org/packages/FlatpickrBlazor
BlazorColorPicker v4.3.0 https://www.nuget.org/packages/BlazorColorPicker
NoUiSlider.Blazor v0.1.5 https://www.nuget.org/packages/NoUiSlider.Blazor
WMBlazorOverlayScrollbars v1.0.0 https://www.nuget.org/packages/WMBlazorOverlayScrollbars
WMBlazorSlickCarousel v1.0.1 https://www.nuget.org/packages/WMBlazorSlickCarousel
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
VDT.Core.Blazor.Wizard v6.0.2 https://www.nuget.org/packages/VDT.Core.Blazor.Wizard
Spillgebees.Blazor.RichTextEditor v2.2.0 https://www.nuget.org/packages/Spillgebees.Blazor.RichTextEditor
Microsoft.AspNetCore.Components.QuickGrid v10.0.5 https://www.nuget.org/packages/Microsoft.AspNetCore.Components.QuickGrid

NPM Plugins & Reference Links

All plugins runs through npm.

If you want new npm plugin, Install it using command npm install <package-name>, stop the server, then run dotnet build. The configured MSBuild targets will automatically copy the package libs from node_modules to wwwroot/assets/libs.

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.