~/talk

Shruti Balasa :: Explore the Art of Customising Tailwindcss

Talkat Laracon EU 2024 · 2024-02-05..02-06· [css, frontend-architecture]
slides:none on file

Gives concrete rules and examples: add global body styles directly in HTML, keep element defaults and lots of keyframes in CSS rather than the config, and avoid overusing @apply or replacing the default spacing scale. Demonstrates building a working dynamic Avatar component with tailwindcss/plugin using matchComponents driven by a custom Avatar sizes theme key, which reduces class bloat, preserves override behavior, and proves the plugin approach is maintainable.

AI-written summary · about

  1. 0:00Tailwind CSS customization intro
  2. 2:30Where to customize Tailwind
  3. 4:38Global styles in HTML
  4. 6:26Avoid long class names
  5. 8:34Prefer CSS for base styles
  6. 11:45Respect spacing scale
  7. 13:53Modify preflight defaults
  8. 14:36Customize breakpoints wisely
  9. 15:40Tailwind plugins for customization
  10. 18:12Dynamic components with plugins
  11. 22:33Summary of guidelines
  12. 23:36Resources & closing
~/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.