~/talk

Building beautiful Blazor apps with Tailwind CSS

Talkat NDC Oslo 2021 · 2021-11-29..12-03· [css, react]
slides:none on file

Shows how to integrate Tailwind CSS with Blazor WebAssembly using the tailwind CLI (npx tailwindcss) and its JIT mode to shrink a generated CSS file from ~4 MB to ~16 KB during development and ~10 KB after --minify. Demonstrates reuse with Tailwind’s apply directive and Blazor components, a C# timer-driven slide-in animation using translate utilities (eg translate-x-full → translate-x-0), a JavaScript module + localStorage toggle for class-based dark mode, and MSBuild targets to run the build in CI.

AI-written summary · about

  1. 0:00Intro
  2. 2:08Tailwind CSS Basics
  3. 8:35Inline Styles
  4. 10:38Tailwind CDN
  5. 14:47Visual Studio
  6. 21:13Gradient Background
  7. 23:03Survey Prompt
  8. 30:23Create component
  9. 35:27Dark mode
  10. 36:27Dark mode styling
  11. 40:52Dark mode class
  12. 42:37Javascript module
  13. 44:32Adding dart mode
  14. 50:17Setting up the build targets
  15. 52:47Final output
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.