Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Tailwind CSS Template for Blazor in .NET CLI #61002

Closed
1 task done
sardar97 opened this issue Mar 18, 2025 · 0 comments
Closed
1 task done

Add a Tailwind CSS Template for Blazor in .NET CLI #61002

sardar97 opened this issue Mar 18, 2025 · 0 comments
Labels
area-blazor Includes: Blazor, Razor Components

Comments

@sardar97
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Currently, when creating a new Blazor project using the .NET CLI (dotnet new blazor), the default template includes Bootstrap as the primary CSS framework. While Bootstrap is widely used, Tailwind CSS has gained significant popularity among developers for its utility-first approach, flexibility, and performance benefits.

It would be beneficial to provide an official Tailwind CSS template for Blazor projects, similar to the existing Bootstrap-based template. This would allow developers who prefer Tailwind over Bootstrap to start with a clean, optimized setup without having to manually remove Bootstrap and configure Tailwind.

Describe the solution you'd like

Add a Tailwind option to the Blazor project template
Example command:
dotnet new blazor -css tailwind
This would generate a Blazor project pre-configured with Tailwind CSS, replacing Bootstrap styles and dependencies.
Support for Blazor Server & WebAssembly :
The template should support both Blazor Server and Blazor WebAssembly.

Additional context

Many developers manually configure Tailwind in Blazor projects by removing Bootstrap and setting up Tailwind from scratch. Having an official template would streamline this process and encourage more .NET developers to adopt Tailwind.

Would love to see this feature considered in a future .NET release. Thank you for your time and consideration!

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

No branches or pull requests

2 participants