Skip to content

Styled the base Blazer server application template all in Tailwindcss

License

Notifications You must be signed in to change notification settings

CodingWithDavid/BlazorBaseTemplatewithTailwindcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blazor Server Side Base Template with TailwindCss

To lean Tailwindcss I decide to take the basic Blazor Server Application template, remove all the stying and re-style it using Tailwindcss. I saw Chris Sainty give an excellent talk at a conference about using Tailwindcss and I had to try it.

by David Gallivan

Why

The only way to really learn a new technology is to get your hands dirty and just use it. I felt this was a good project to start with.

Using Tailwindcss looks to be very easy and quick to style a page. And after spending the time to learn it and native CSS, it is a lot easier and faster.

Getting Started

  1. Clone this repository

    git clone https://github.com/CodingWithDavid/BlazorBaseTemplatewithTailwindcss
    cd BlazorBaseTemplatewithTailwindcss
  2. Open in Visual Studio or Visual Code a. With Visual Code you will need to install the C# extensions

  3. Press F5

What's in the App

  1. The basic Blazer server application styled with Tailwinds
  2. The use of Font Awesome with Blazor and Tailwindcss a. For this open source project, I used the cdn link for Font Awesome used to demonstrate the idea of
  3. A rebuilt Nav Menu component a. The default Nav component was heavily tied to the Bootstrap styling b. Had to add click events to handle the page navigation and setting the style for the active link
  4. Changed the H1 into spans to keep them showing focus on page load

Problems or Suggestions

Open an issue here

Thank You

Resources

About

Styled the base Blazer server application template all in Tailwindcss

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published