Static web assets served by the Blazor WebAssembly application. Contains the HTML shell, compiled CSS, and image assets.
-
index.html- Application entry point / HTML shell- Loads Blazor WebAssembly runtime
- References CSS stylesheets
- Contains
<div id="app">for Blazor mounting
-
favicon.png- Browser tab icon (small) -
icon-192.png- PWA icon (192x192)
css/- CSS stylesheets (see below)
app.css- Compiled TailwindCSS output (generated during build)- This is the OUTPUT file from TailwindCSS compilation
- Do NOT edit manually - changes will be overwritten
- Source:
../tailwind.css
The css/app.css file is GENERATED by TailwindCSS compilation:
tailwind.css (input) → TailwindCSS CLI → wwwroot/css/app.css (output)
To modify styles:
- Edit
tailwind.cssat project root (not in wwwroot) - Add TailwindCSS classes to Razor components
- Build the project
In Blazor WebAssembly, files in wwwroot/ are:
- Served at root path (e.g.,
/css/app.css) - Cached by the browser
- Included in published output
index.html typically includes:
<link href="css/app.css" rel="stylesheet" />
<script src="_framework/blazor.webassembly.js"></script>- Place files in
wwwroot/or subdirectories - Reference via root-relative paths:
/images/logo.png - For CSS, prefer TailwindCSS utilities over additional files
- Blazor WebAssembly runtime (
_framework/) - Compiled CSS from TailwindCSS