On .NET Live - Building Beautiful Blazor apps with Tailwind CSS

  Рет қаралды 27,885

dotnet

dotnet

Күн бұрын

Пікірлер: 41
@ElCidPhysics90
@ElCidPhysics90 2 жыл бұрын
Wow. Thank you so much for this video Cecil and Chris.
@TheWindseed
@TheWindseed 3 жыл бұрын
Would be nice to see a port of the necessary parts of postcss to c#, npm is part of the problem not part of the solution.
@pablo199014
@pablo199014 3 жыл бұрын
Great Video, can't wait to apply this framework to my learning. 😄
@teamomiparientes3769
@teamomiparientes3769 2 жыл бұрын
It was like one whole day for me to finally configure the correct change for Tailwind to work..the ref files in Github quite help a lot tho some may be diffrent from the presentation if im not mistaken... Thanks to the Team and I hope that simpler method of configuring this can be introduced in the future..really appreciate Edit: well i think the difficult comes from the change of Tailwind from ver2 to ver3
@MrSikesben
@MrSikesben 3 жыл бұрын
Thanks Chris for this demo
@goforgoldman
@goforgoldman 3 жыл бұрын
Great video, thanks Chris
@oliverrc_ww
@oliverrc_ww 2 жыл бұрын
1:42:05 I think the reason it is not working is because you have "purge" twice and so maybe it's not detecting the files to find the utility classes for.
@marcosphs
@marcosphs 3 жыл бұрын
What is the solution to apply a layout similar to the Asp.Net Core MVC you use (controller with views: Views/Shared/_Layout.cshtml)
@cissemy
@cissemy 2 жыл бұрын
I was going to ask the same question.
@vivekkaushik9508
@vivekkaushik9508 3 жыл бұрын
UI development in blazor is a major concern for any javascript/C# dev. With tailwind integration with blazor we can be ensured that blazor apps will be visually appealing to our clients hence saving us effort and providing consistency in code.
@moofymoo
@moofymoo 3 жыл бұрын
css framework/library does not ensure tha app will be visually appealing. I have seen too many times managers that want to add reference to to automagically make their website beautifull :D
@b0rkes
@b0rkes 3 жыл бұрын
how is your app being rebuild and reloaded in browser every time in this video? do you use dotnet watch or something?
@gohopo9586
@gohopo9586 3 жыл бұрын
It seems not dotnet watch, I also want to know why
@ivanvincent7534
@ivanvincent7534 2 жыл бұрын
Possibly dotnet watch only works with .net 6
@sirwanjaff1050
@sirwanjaff1050 3 жыл бұрын
Please help me how can i setup asp.net core with tailwind ?!!!!!!!!!
@ukaigwechidi6563
@ukaigwechidi6563 2 жыл бұрын
Hi, tried replicating this solution for a dotnet 6 webapp on vscode. Changes to colors - bg-* or text-* - do not make it to the file on browser refresh. Can you do a series showing tailwindcss integration with dotnet 6 webapp
@jhonpauldelvalle
@jhonpauldelvalle 3 жыл бұрын
There's a lot of configuration. but yeah tailwind is a nice framework hoping tailwind will have an easy way when installing it in the blazor project.
@jeremysh138
@jeremysh138 3 жыл бұрын
Was a template ever created for this and if so where?
@marijngrootjans
@marijngrootjans 3 жыл бұрын
Whenever I run dotnet watch --project MyProject run it cannot succeed because of "unable to handle changes to app.css". Probably some conflict with Tailwind config? Whenever developing I do not want to stop debugging, do my Tailwind changes, rebuild, run again; I definitely want to use the watch functionality... any ideas?
@gohopo9586
@gohopo9586 3 жыл бұрын
I also want to know why
@tranhoang2930
@tranhoang2930 3 жыл бұрын
how can i use JIT of tailwind in blazor? thanks
@chezchezchezchez
@chezchezchezchez 3 жыл бұрын
Did you find out?
@tranhoang2930
@tranhoang2930 3 жыл бұрын
@@chezchezchezchez not yet ? Can you give me some advice to achive it?
@chris-sainty
@chris-sainty 3 жыл бұрын
This is covered in the video
@tranhoang2930
@tranhoang2930 3 жыл бұрын
@@chris-sainty oh many thank. i see it .
@JKhalaf
@JKhalaf 2 жыл бұрын
There's a better way to do all the above (perhaps that wasn't the case at the time of the recording). Just use the Tailwind CLI. With the CLI, you removes the unused CSS and you also minify the produced CSS. You've got to love Tailwind!
@ivanvincent7534
@ivanvincent7534 2 жыл бұрын
No intellisense in visual studio when using JIT
@benjaminboyle3295
@benjaminboyle3295 3 жыл бұрын
Thank you
@nonamezz20
@nonamezz20 3 жыл бұрын
too much config is required
@guyincognito1985
@guyincognito1985 3 жыл бұрын
Everything old is new again I guess? Tailwind looks like writing inline CSS in your HTML style attributes, a practice that was frowned upon when Semantic CSS was popular back in the "Zen Garden CSS" days.
@franciscovillena8713
@franciscovillena8713 3 жыл бұрын
On first look it can appear that way however to be fair he did show how to handle repeating styles and defining them in a central location.
@mehdiminaee2
@mehdiminaee2 3 жыл бұрын
"Zen Garden CSS" is Grand Papa ;)
@tareqabouhjileh1235
@tareqabouhjileh1235 2 жыл бұрын
Syria
@walterlol
@walterlol 2 жыл бұрын
White IDE... jesus christ.
@mouradaissani8957
@mouradaissani8957 3 жыл бұрын
Thank you about the great content, i cloned the repo locally on my machine , i got the following exception while building the solution error MSB3073: The command "npm run buildcss:dev" exited with code 1. EXEC : error : Loading PostCSS Plugin failed: Object.fromEntries is not a function The whole stack : 6.14.3 > @ buildcss:dev C:\Users\DELL\source epos\Blazor\ondotnet-tailwindcss\src > cross-env TAILWIND_MODE=build postcss ./Styles/app.css -o ./wwwroot/css/app.css (node:9928) ExperimentalWarning: The fs.promises API is experimental EXEC : error : Loading PostCSS Plugin failed: Object.fromEntries is not a function [C:\Users\DELL\source epos\Blazor\ondotnet-tailwindcss\src\BlazorTailwind.csproj] (@C:\Users\DELL\source epos\Blazor\ondotnet-tailwindcss\src\postcss.config.js) at load (C:\Users\DELL\source epos\Blazor\ondotnet-tailwindcss\src ode_modules\postcss-load-config\src\plugins.js:28:11) at Object.keys.filter.map (C:\Users\DELL\source epos\Blazor\ondotnet-tailwindcss\src ode_modules\postcss-load-config\src\plugins.js:53:16) at Array.map () at plugins (C:\Users\DELL\source epos\Blazor\ondotnet-tailwindcss\src ode_modules\postcss-load-config\src\plugins.js:52:8) at processResult (C:\Users\DELL\source epos\Blazor\ondotnet-tailwindcss\src ode_modules\postcss-load-config\src\index.js:37:14) at config.lilconfig.search.then (C:\Users\DELL\source epos\Blazor\ondotnet-tailwindcss\src ode_modules\postcss-load-config\src\index.js:151:14) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ buildcss:dev: `cross-env TAILWIND_MODE=build postcss ./Styles/app.css -o ./wwwroot/css/app.css` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ buildcss:dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\DELL\AppData\Roaming pm-cache\_logs\2021-06-19T13_34_22_276Z-debug.log C:\Users\DELL\source epos\Blazor\ondotnet-tailwindcss\src\BlazorTailwind.csproj(27,3): error MSB3073: The command "npm run buildcss:dev" exited with code 1. Build FAILED. EXEC : error : Loading PostCSS Plugin failed: Object.fromEntries is not a function [C:\Users\DELL\source epos\Blazor\ondotnet-tailwindcss\src\BlazorTailwind.csproj] C:\Users\DELL\source epos\Blazor\ondotnet-tailwindcss\src\BlazorTailwind.csproj(27,3): error MSB3073: The command "npm run buildcss:dev" exited with code 1. 0 Warning(s) 2 Error(s)
@joewylombe2690
@joewylombe2690 3 жыл бұрын
Hi Mourad, did you figure this out ?
@ASHKERALIKHAN
@ASHKERALIKHAN 3 жыл бұрын
Hi Did you figure it out?
@sky78710
@sky78710 Жыл бұрын
It is due to some plugins for tailwind not installed ..
On .NET Live - Secrets of building Blazor Components
1:20:43
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Dive into the Future: .NET and AI!
54:59
dotnet
Рет қаралды 1,3 М.
2⁴×3: Tech, Bugs, and Advent of Code!
1:42:37
Tech, Bugs & Rock'n'Roll
Рет қаралды 105
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН