SimpleLogin.Ui 1.0.1

dotnet add package SimpleLogin.Ui --version 1.0.1
                    
NuGet\Install-Package SimpleLogin.Ui -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimpleLogin.Ui" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleLogin.Ui" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="SimpleLogin.Ui" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SimpleLogin.Ui --version 1.0.1
                    
#r "nuget: SimpleLogin.Ui, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SimpleLogin.Ui@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SimpleLogin.Ui&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=SimpleLogin.Ui&version=1.0.1
                    
Install as a Cake Tool

SimpleLogin.Ui

NuGet Version Build Status License

SimpleLogin.Ui is a plug-and-play Razor Class Library (RCL) that provides a stunning, modern Glassmorphism login page for your ASP.NET Core applications. It abstracts away the UI complexity, allowing you to focus purely on your authentication logic.


✨ Features

  • 🚀 Instant Setup: Add a professional login page in seconds.
  • 🎨 Glassmorphism Design: Modern, translucent UI with beautiful gradients and blur effects.
  • 🔌 Auth Agnostic: You control the authentication logic via a simple interface (ISimpleLoginAuth).
  • 📱 Fully Responsive: Looks great on desktop, tablet, and mobile.
  • 🎨 Customizable: Easily themeable using CSS variables.
  • 📦 Lightweight: Minimal dependencies.

📦 Installation

Install the package via the .NET CLI:

dotnet add package SimpleLogin.Ui

Or via the NuGet Package Manager:

Install-Package SimpleLogin.Ui

🚀 Quick Start

1. Implement authentication logic

Create a class that implements the ISimpleLoginAuth interface. This is where you verify credentials against your database or identity provider.

using SimpleLogin.Ui.Services;

public class MyAuthService : ISimpleLoginAuth
{
    public Task<bool> ValidateUserAsync(string username, string password)
    {
        // Your real logic here (e.g., database check)
        if (username == "admin" && password == "securepassword")
        {
            return Task.FromResult(true);
        }
        return Task.FromResult(false);
    }
}

2. Register services in Program.cs

Add Razor Pages support and register your auth service.

using SimpleLogin.Ui.Services;

var builder = WebApplication.CreateBuilder(args);

// Add Razor Pages (Required for the UI)
builder.Services.AddRazorPages();

// Register your Auth Service
builder.Services.AddScoped<ISimpleLoginAuth, MyAuthService>();

var app = builder.Build();

app.UseStaticFiles(); // Required for CSS/JS
app.UseRouting();
app.UseAuthorization();

app.MapRazorPages(); // Maps the login page

// Optional: Redirect root to Login
app.MapGet("/", () => Results.Redirect("/Login"));

app.Run();

3. Run it!

Navigate to /Login in your browser. You should see the login page!

🎨 Customization

You can customize the look and feel by overriding the CSS variables in your project's global CSS file (e.g., wwwroot/css/site.css).

:root {
    /* Change the primary button color */
    --primary-color: #ff5722;
    --primary-hover: #e64a19;

    /* Change the background gradient */
    --bg-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    
    /* Adjust text color */
    --text-color: #ffffff;
}

🔧 Requirements

  • .NET 8.0 SDK or later.
  • ASP.NET Core project (Web App, MVC, or Razor Pages).

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 120 1/21/2026