Blazor routable page components for the demo application. Contains the main pages that demonstrate TailwindCSS usage.
Home.razor- Home page component (route:/)- Entry point for the demo application
- Should demonstrate TailwindCSS utility classes
None.
Blazor pages use the @page directive for routing:
@page "/"When adding TailwindCSS classes to pages:
- Add utility classes directly to elements:
<div class="flex items-center p-4"> - Build the project to trigger CSS compilation
- Changes picked up automatically (file watching enabled)
If TailwindCSS classes aren't applying:
- Verify build completed without errors
- Check
wwwroot/css/app.csswas generated - Ensure
index.htmlincludes the CSS file - Check browser dev tools for class presence
- Blazor component framework
- Layout components from
../Layout/