# Installation Guide Hedin.UI is built on top of [MudBlazor](https://mudblazor.com/), but **you do not need to install MudBlazor separately**. By installing **Hedin.UI**, you automatically get MudBlazor included and ready to use. There are two ways to get started: ## Option 1 – Use the Template Project (Recommended) The repository contains a ready-made template project that already has Hedin.UI configured. You can copy this project into your own solution and start coding right away: ➡️ [Hedin.UI.Template.Server](https://github.com/hedinbil/hedin-ui/tree/main/src/Hedin.UI.Template.Server) With this template you don’t need to follow the manual steps below. ## Option 2 – Manual Installation If you prefer to add Hedin.UI manually to an existing Blazor project, follow this step-by-step guide. ## Install the package Install the latest version of the NuGet **Hedin.UI**. ## Register Services Add the following in `Program.cs` ``` using Hedin.UI; builder.Services.AddUIConfiguration(builder.Configuration); ``` ## Add configuration Add the following in `appsettings.json` ``` "HedinUI": { "AppTitle": "Hedin UI" // Applies to PageTitle using HUIPage, AppSwitcher and more. "ShowDevEnvWarning": true, //Will show a top banner for dev/stage/test, should not be true in prod "GoogleMapsApiKey": "" //Required with HUIMaps component } ``` ## **Add font and style references** Add the following to your HTML head section, it's either `index.html` or `_Layout.cshtml`/`_Host.cshtml` depending on whether you're running WebAssembly or Server. ``` ``` ## Add script reference Add the following to your HTML beside the default blazor script ``` ``` ## **Add Imports** Add the following in your `_Imports.razor` ``` @using MudBlazor @using Hedin.UI //Or use the full namespace when using the components. e.g. HUI.HUIButton @using Hedin.UI.Services ``` ## **Register theme** Add the following to the top of MainLayout.razor. ``` ``` You may override theme parameters and colors and utilize the Light theme. Please read more about how to configure your theme in our [Guidelines](/guidelines) section. # Usage This library has its own custom components as well as exposing the original MudBlazor components. Both can be used. ## HUI Try out the HUIButton button component! ``` I'm a HUI button ``` ## MudBlazor Try out the MudBlazor button component! ``` I'm a MudBlazor button ```