Using Tailwind and just utility classes suggests a lot of duplication, as Tailwind utility classes are often repeated on multiple DOM elements. Many CSS frameworks include utility classes but consider the semantic class names more important. They are all utility classes, meaning that a Tailwind class represents a specific element on a page, like font-bold or m-6 for margin. ![]() Tailwind classes are not semantic at all. Many CSS frameworks and naming conventions suggest using names that reflect the semantic meaning of the element on the page names like button, nav-bar, or menu-item. This goes against a lot of CSS naming conventions that have been developed over the years. The preferred way to get complex behavior in Tailwind is to compose multiple CSS classes together on the HTML element. Tailwind is made up of many, many small utility CSS class names, most of which set one specific CSS property to one specific value. Book version: B1.0 January 27, 2021Ħ Tailwind seems like a counter-intuitive solution to the problem of managing CSS for a complex site. ![]() ISBN-13: Encoded using the finest acid-free high-entropy binary digits. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior consent of the publisher. Visit us at For sales, volume licensing, and support, please contact For international rights, please contact Copyright 2021 The Pragmatic Programmers, LLC. Our Pragmatic books, screencasts, and audio books can help you and your team create better software and have more fun. However, the publisher assumes no responsibility for errors or omissions, or for damages that may result from the use of information (including program listings) contained herein. Every precaution was taken in the preparation of this book. ![]() The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf, PragProg and the linking g device are trademarks of The Pragmatic Programmers, LLC. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. 5 Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |