A type-safe, fluent C# library for generating static HTML with Tailwind-inspired utilities.
- 🎨 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
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.GeneratorsSee examples/ for complete examples:
basic/- ASP.NET server-side renderingbasic-generator/- Static site generation
- Getting Started - Installation and first steps
- API Reference - Complete API documentation
- Components Guide - Building reusable components
- Architecture Guide - Project structure and patterns
- Real-World Examples - Production-ready examples
- Code Examples - Working example projects
Contributions welcome! See CONTRIBUTING.md
MIT