نموذج أساسي لـ Nano ASP.NET SaaS
بيانات اعتماد المسؤول (جميع المستأجرين): admin@email.com / Password123!
تتم إعادة تعيين البيانات النموذجية كل ساعة
نموذج أساسي لـ Nano ASP.NET SaaS
عام
.حل .NET
واجهة مستخدم Vue
واجهة المستخدم في React
صفحات Razor
واجهة مستخدم Vue

قالب Vue والتصميم

A consistent theme helps create a responsive, maintainable user interface in a Vue 3 application. Nano uses Bootstrap 5 و Sass (SCSS) to provide a common styling foundation, with support for light and dark modes and customization across the application’s components.

Rather than relying entirely on a large, opinionated Vue component library, Nano builds on Bootstrap’s familiar styling conventions. This gives developers a flexible starting point for customizing colors, spacing, layouts, and component appearance without committing to a single UI framework.

The theme uses SCSS to organize styling rules, define variables, and customize Bootstrap. Vite handles the frontend build process and integrates with SCSS when the required Sass dependency is installed.

الـ assets folder contains static resources and styling files, including fonts, images, and SCSS stylesheets.

The theme is organized as a separate styling layer built with Sass, a CSS preprocessor that extends standard CSS with features such as variables, nesting, and reusable mixins. SCSS files are compiled into CSS as part of the frontend build process.

Nano uses Vite to manage frontend development and production builds, including SCSS processing when Sass is configured in the project. This lets developers import SCSS files directly into the application without maintaining a separate manual compilation workflow.

There are two main ways to organize styles:

  • Global SCSS: Use shared stylesheets for application-wide rules, theme variables, and styling that applies across multiple components.
  • Component-specific SCSS: Keep styles close to the Vue components they affect when those styles are specific to a particular interface element.

As a general rule, global styles work best for shared design conventions, while component-specific styles help keep individual components easier to understand and maintain.

Nano’s Nanite theme is based on Bootstrap 5 and provides a consistent appearance for the application’s UI components. It includes styling for both light and dark modes.

The main stylesheet, nanite-theme.scss, brings the theme’s individual SCSS elements together. It is imported in main.js so that the styles are included in the Vue application.

The Nanite theme builds on Bootstrap’s base styles, which are available through the project’s installed dependencies in node_modules.

The theme’s variables and theme-mode styles are particularly important for customizing its appearance. They control key aspects of the design and support the light and dark theme variants.

Bootstrap’s theming system provides the underlying conventions for customizing colors, component styles, and other design properties. For more information, see the Bootstrap customization documentation.

The remaining SCSS files contain styling for individual components and plugins. When adding a new component or integrating a third-party library, you can add or override styles to make it fit the existing design.

Some styling is specific to a particular frontend implementation, such as Vue or React, and is identified by comments in the code. Other styles are shared across Nano’s Vue, React, and Razor UI projects.

This approach lets each frontend use the styling it needs while maintaining a consistent overall design across the different versions of the application.

That covers the main structure of Nano’s Vue UI. You can explore the other frontend implementations in the React setup guide and the Razor application guide, or continue to the .NET Web API guide to learn about the backend architecture.