A modern, clean and elegant UI library for Blazor/Razor.
- C# 50.6%
- HTML 24.4%
- SCSS 20.1%
- TypeScript 2.6%
- JavaScript 1.2%
- Other 1.1%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| .idea/.idea.CleanUI/.idea | ||
| CleanUI | ||
| CleanUI.Docs | ||
| CleanUI.SourceGenerator.Icons | ||
| .gitignore | ||
| CleanUI.slnx | ||
| Directory.Build.props | ||
| icon.png | ||
| icon.svg | ||
| LICENSE.md | ||
| README.md | ||
CleanUI
A modern, clean and elegant UI library for Blazor/Razor.
Usage
- Add the
CleanUIpackage:
dotnet add package CleanUI
or
<ItemGroup>
<PackageVersion Include="CleanUI" Version="0.1.0"/>
</ItemGroup>
- Add the following lines to your
App.razor(order is important!):
<!-- CSS variables (required) (can be overwritten) -->
<link rel="stylesheet" href="@(Assets["_content/CleanUI/theme.css"])"/>
<!-- Reset styling (html, body, etc.) (optional but recommended) -->
<link rel="stylesheet" href="@(Assets["_content/CleanUI/base.css"])"/>
<!-- Styles for all components (required if you don't want to style the components yourself) -->
<link rel="stylesheet" href="@(Assets["_content/CleanUI/components.css"])"/>
<!-- Utility classes like `d-flex` (optional) -->
<link rel="stylesheet" href="@(Assets["_content/CleanUI/utilities.css"])"/>
- Import the
.jsfile(s) for the interactive components you want to choose:
<script src="@(Assets["_content/CleanUI/modal.js"])"></script>
<script src="@(Assets["_content/CleanUI/toast.js"])"></script>
<script src="@(Assets["_content/CleanUI/tooltip.js"])"></script>
- Use the components:
<CleanUI.CleanButton>
Click me!
</CleanUI.CleanButton>
or
@using CleanUI
<CleanButton>
Click me!
</CleanButton>