Loading tutorials
:hover and :focus. Tailwind CSS has no stylesheet where you write those selectors. Instead, you put the state in the class name. This chapter shows how the two approaches relate, so that later chapters on hover, focus, group, and pe5 min read:hover and :focus. It also assumes you know common Tailwind utility classes (colors, padding, rounded corners) and have a project where Tailwind CSS is already set up.6 min read:hover pseudo-class. It also assumes you can use Tailwind utilities such as colors, padding, and rounded corners in a project where Tailwind is already set up. Here you learn how the hover: variant works, how to use it on common ele6 min read:hover and :focus pseudo-classes. It also assumes you know common Tailwind utilities for colors, padding, and rounded corners, and that you work in a project where Tailwind CSS is already set up. You should also know how the `hover:6 min readactive: and disabled: variants. It assumes you know basic HTML and CSS, including pseudo-classes such as :hover and :focus. It also assumes you know common Tailwind utilities (colors, padding, rounded corners) and have a project where Tailwind is already set up. You s6 min readhover: and `focus-visible5 min read:hover and :focus pseudo-classes. It also assumes you can use basic Tailwind utilities for color, padding, and borders, and that a Tailwind project is already set up. You have already seen how focus: and focus-visible: work as variant7 min read:hover, and that you already use Tailwind utilities like colors, padding, and rounded corners in a project where Tailwind is set up. You should also know the hover: prefix from the earlier chapters.5 min readgroup and group-hover work from the previous chapter. It also assumes you know the plain CSS pseudo-classes :focus, :focus-visible, :focus-within, :active, and :disabled. The goal is to extend group beyond hover, so a parent can restyle its children 5 min readgroup can't keep those two apart. Named groups can. This chapter covers the group/name syntax, why unnamed groups cause trouble when nested, and how names work with5 min read:hover and :focus. It also assumes you know common Tailwind utilities for color, padding, and borders, and that you have a project where Tailwind CSS is already set up. You should also know how group and `group-6 min readhover: or focus: works. It also assumes you have seen dark: and the breakpoint prefixes (sm:, md:, lg:) at least once, and that your project already has Tailwind CSS set up. Here you will combine those prefixes, predict wh5 min readhover: behaves differently on phones and tablets. It also covers how Tailwind CSS handles that difference and how to design interactive components that work without a mouse. It assumes you know the hover:, focus-visible:, active:, and group-hover: variants from ea6 min readhover:, focus-visible:, group-hover:, peer-invalid:, and stacking such as dark:hover:. You should also be comfortable reading CSS selectors and @media rules. This chapter covers what to do when no built-in variant match5 min read