A type-safe, fluent C# library for generating static HTML with Tailwind-inspired utilities. Core library with element abstractions and extension methods.
$ dotnet add package SumerUIA type-safe, fluent C# library for generating static HTML with Tailwind-inspired utilities.
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);
dotnet add package SumerUI
dotnet add package SumerUI.Renderers
dotnet add package SumerUI.Generators
See examples/ for complete examples:
basic/ - ASP.NET server-side renderingbasic-generator/ - Static site generationContributions welcome! See CONTRIBUTING.md
MIT