Tailwindcss Learning Tutorial P001

Tailwindcss Learning Tutorial P001

The display and padding utilities (flexshrink-0, and p-6) to control the overall layout

The max-width and margin utilities (max-w-sm and mx-auto) to constrain the card width and center it horizontally

The background-color, border-radius, and box-shadow utilities (bg-whiterounded-xl, and shadow-lg) to style the card’s appearance

The width and height utilities (size-12) to set the width and height of the logo image

The gap utilities (gap-x-4) to handle the spacing between the logo and the text

The font-size, color, and font-weight utilities (text-xltext-blackfont-medium, etc.) to style the card text

To style an element on states like hover or focus, prefix any utility with the state you want to target, for example hover:bg-sky-700:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *