SumerUI 0.2.0
dotnet add package SumerUI --version 0.2.0
NuGet\Install-Package SumerUI -Version 0.2.0
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="SumerUI" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SumerUI" Version="0.2.0" />
<PackageReference Include="SumerUI" />
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 SumerUI --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SumerUI, 0.2.0"
#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 SumerUI@0.2.0
#: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=SumerUI&version=0.2.0
#tool nuget:?package=SumerUI&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SumerUI
A type-safe, fluent C# library for generating static HTML with Tailwind-inspired utilities.
Features
- 🎨 Fluent API - Chainable methods for building HTML
- 🔒 Type-safe - No magic strings, full IntelliSense support
- 🎯 Tailwind-inspired - Familiar utility-first approach
- 📦 Static site generation - Export to HTML files for CDN deployment
- 🚀 Zero JavaScript - Pure server-side rendering
Quick Start
using SumerUI.Elements;
using SumerUI.Generators;
using static SumerUI.Elements.HtmlElements;
// Create a page
var page = Div()
.Flex()
.ItemsCenter()
.JustifyCenter()
.Padding(2.Rem())
.BackgroundColor(Color.Emerald50)
.Content(
H1().Text("Hello, SumerUI!").FontBold().Text2Xl()
);
// Generate static site
var generator = new StaticSiteGenerator("./out");
await generator.GeneratePageAsync("/", page);
Installation
dotnet add package SumerUI
dotnet add package SumerUI.Renderers
dotnet add package SumerUI.Generators
Examples
See examples/ for complete examples:
basic/- ASP.NET server-side renderingbasic-generator/- Static site generation
Documentation
- Getting Started (coming soon)
- API Reference (coming soon)
- Examples
Contributing
Contributions welcome! See CONTRIBUTING.md
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on SumerUI:
| Package | Downloads |
|---|---|
|
SumerUI.Renderers
HTML renderer for SumerUI. Converts SumerUI elements to HTML strings with support for minification and formatting options. |
|
|
SumerUI.Generators
Static site generator for SumerUI. Generate complete static websites from SumerUI elements with support for routing, asset management, and deployment options. |
GitHub repositories
This package is not used by any popular GitHub repositories.