~/talk

Building beautiful Blazor apps with Tailwind CSS

Talkat NDC Porto 2022 · 2022-04-25..04-29· [web-platform, css]
slides:none on file

Shows how to integrate Tailwind V3 with a Blazor WebAssembly app using Tailwind CLI (+ npx) or the Play CDN, creating app.css with @tailwind directives and pointing content to .razor and .html so the JIT produces only used utilities. Demonstrates MSBuild targets that run npx tailwindcss to emit and --minify the wwwroot CSS for CI, builds a reusable sliding component (timer 300ms, transition 500ms) by swapping translate-x-full → translate-x-0 and opacity, and implements a dark-mode toggle via a collocated JS module plus local storage.

AI-written summary · about

  1. 0:00Start
  2. 7:31Colour Palette
  3. 8:08Spacing
  4. 9:37Variants
  5. 12:39Limitations of inline styles
  6. 15:38Tailwind via CDN - Customisation
  7. 16:23Tailwind via CDN - Plugins
~/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.