Installation
Set up ShardUI.Components in a Blazor Web App with separate Server and Client projects.
This setup assumes Tailwind runs from the Server project and scans both Server and Client source files.

Create a Blazor Web App
Start with a Blazor Web App that has separate Server and Client projects.
Install ShardUI.Components and build once
In the Server project folder, install the package and build the project once.
The first build is important because it copies the generated Tailwind assets used below into
obj/ShardUI.
Add Tailwind CSS to the Server project
Set up Tailwind CSS in the Server project. For the full Tailwind setup, see the official docs:
Tailwind CSS installation documentation
Use this package.json in the Server project. It includes the extra
tw-animate-css dependency used by ShardUI.
Install the npm packages
Run this once in the Server project folder:
Create input.css
Create an input.css file in the Server project and paste the following:
If your Client project folder is not named WebApp.Client, update the relative
@source paths to match your solution structure.
Run the Tailwind watcher
Start the watcher from the Server project:
Keep this command running while developing so wwwroot/css/output.css stays up to date
whenever tracked source files change.
Ready to build?
Put the setup to work with your first component.