Wow. Thank you so much for this video Cecil and Chris.
@TheWindseed3 жыл бұрын
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.
@pablo1990143 жыл бұрын
Great Video, can't wait to apply this framework to my learning. 😄
@teamomiparientes37692 жыл бұрын
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
@MrSikesben3 жыл бұрын
Thanks Chris for this demo
@goforgoldman3 жыл бұрын
Great video, thanks Chris
@oliverrc_ww2 жыл бұрын
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.
@marcosphs3 жыл бұрын
What is the solution to apply a layout similar to the Asp.Net Core MVC you use (controller with views: Views/Shared/_Layout.cshtml)
@cissemy2 жыл бұрын
I was going to ask the same question.
@vivekkaushik95083 жыл бұрын
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.
@moofymoo3 жыл бұрын
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
@b0rkes3 жыл бұрын
how is your app being rebuild and reloaded in browser every time in this video? do you use dotnet watch or something?
@gohopo95863 жыл бұрын
It seems not dotnet watch, I also want to know why
@ivanvincent75342 жыл бұрын
Possibly dotnet watch only works with .net 6
@sirwanjaff10503 жыл бұрын
Please help me how can i setup asp.net core with tailwind ?!!!!!!!!!
@ukaigwechidi65632 жыл бұрын
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
@jhonpauldelvalle3 жыл бұрын
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.
@jeremysh1383 жыл бұрын
Was a template ever created for this and if so where?
@marijngrootjans3 жыл бұрын
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?
@gohopo95863 жыл бұрын
I also want to know why
@tranhoang29303 жыл бұрын
how can i use JIT of tailwind in blazor? thanks
@chezchezchezchez3 жыл бұрын
Did you find out?
@tranhoang29303 жыл бұрын
@@chezchezchezchez not yet ? Can you give me some advice to achive it?
@chris-sainty3 жыл бұрын
This is covered in the video
@tranhoang29303 жыл бұрын
@@chris-sainty oh many thank. i see it .
@JKhalaf2 жыл бұрын
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!
@ivanvincent75342 жыл бұрын
No intellisense in visual studio when using JIT
@benjaminboyle32953 жыл бұрын
Thank you
@nonamezz203 жыл бұрын
too much config is required
@guyincognito19853 жыл бұрын
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.
@franciscovillena87133 жыл бұрын
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.
@mehdiminaee23 жыл бұрын
"Zen Garden CSS" is Grand Papa ;)
@tareqabouhjileh12352 жыл бұрын
Syria
@walterlol2 жыл бұрын
White IDE... jesus christ.
@mouradaissani89573 жыл бұрын
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)
@joewylombe26903 жыл бұрын
Hi Mourad, did you figure this out ?
@ASHKERALIKHAN3 жыл бұрын
Hi Did you figure it out?
@sky78710 Жыл бұрын
It is due to some plugins for tailwind not installed ..