Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 2.43 KB

Tailwind.org

File metadata and controls

36 lines (32 loc) · 2.43 KB

Tailwind

mx-autocenter horizontally
px-xhorizontal padding
hidden md:blockhidden on mobile but block on medium screen or up
overflow-y-autoenable vertical scrolling if necessary
h-screenspan the entire viewport
stickyrelative until it crosses a threshold
roundedround corners
inset-0make an element fill it’s container
inset-x-2left:2, right: 2
h-fitfit height
max-w-xsset an element’s max width
containerfit the max width
text-wrapwrap text
break-wordsbreak text at words
space-y-xapply x margin to all elemnts in a div
tracking-xspacing between letters
sm:bg-grayapply bg-gray if the screen is small
align-centeralign vertically
border-white/10set the border to white but with opacity of 10%
transition-colors duration-300every color change, ex on hover, fades in with a 300ms duration
mt-autopush it down all the way to the bottom

grid

gap-8 for padding between them gap-x-2 works with grid and flex

group

group apply to a div group-hover apply to elements in the div to update them when anything in the group is hovered