Web-shaped values, Avalonia properties

CSS-inspired Styling

Keep the vocabulary familiar while preserving the native styling system underneath.

Explore source
Parent systemHtmlML
StatusPreview
Modules1
RepositoryHtmlML/Css
  1. 01

    Stylesheet and style elements

  2. 02

    Classes and inline declarations

  3. 03

    CSS-to-Avalonia value conversion

  4. 04

    Runtime style application

From intent
to working system.

01

Load

Link and style elements resolve external or inline declarations.

02

Match

Element names, classes, and document structure determine applicable rules.

03

Convert

CSS-inspired values map into Avalonia property types.

04

Apply

The runtime updates native control classes and properties.

Adopt this
capability.

Start with the primary module, then add the related packages only when the application needs those layers. Replace VERSION with the current NuGet version.

01 · Install
Terminal
git clone https://github.com/wieslawsoltes/HtmlML.git
# Reference src/HtmlML/HtmlML.csproj and add a stylesheet asset.
02 · Use · xml
MainWindow.axaml
<head>
<link rel="stylesheet"
href="avares://Demo/Assets/site.css"
type="text/css" />
</head>
<body class="app-body">
<section class="card" style="padding: 24px">
<h2>Styled through familiar values</h2>
</section>
</body>

Use one layer.
Compose the rest.

Read the module beside the complete system.

The implementation, samples, issues, and release notes stay in the parent repository so module details remain connected to the product architecture.

HtmlML

Search everything.

Loading the index…

move open esc close

Preparing metadata and full-text search…