Your leggings look straightforward with sneakers. Put on ankle boots, and there is suddenly a small puzzle: a strip of bare ankle, a ridge of fabric above the boot, or a hem that keeps catching on the opening.
Start with the join, not the rest of the outfit. For narrow-leg leggings, choose either a smooth overlap inside the boot or a deliberate gap above it. Avoid forcing the leggings over a boot shaft they cannot comfortably cover. Once that small area works, you can decide how much contrast you want around it.
Tuck only when the boot has room
With full-length leggings, an overlap is a useful first option. Settle the leggings into their normal position before putting on the boots. Keep the hem smooth rather than folding it into a thick cuff inside the shaft.
Then fasten the boots normally and walk a few steps. If the opening catches the fabric and pushes it into a ridge, take the boot off and see whether the hem has folded. One adjustment may solve it. If the same ridge returns, compare a roomier opening rather than continually pulling the leggings down.
Do not choose smaller leggings to make the boots fit. The two pieces need to work together; a cramped boot is not a reason to compromise the fit of the pants.
This advice is for a narrow leg. A flared hem creates a different relationship with footwear and should not be stuffed into an ankle boot simply to copy this arrangement.
A visible gap is a choice, not a mistake
If your leggings finish above the boot, you do not have to disguise the gap. For a dry, mild day, you may prefer that break between fabric and footwear. Look at it while standing and sitting: the gap may change as the hem moves.
If you want the ankle covered, start by comparing a taller boot shaft with the same leggings. Alternatively, try a sock that reaches beyond both edges. The sock should bridge the gap without making the foot of the boot feel crowded.
Treat those as different looks. A dark sock with dark leggings keeps the junction quieter; a contrasting sock makes it more noticeable. Neither is a universal rule about making legs look longer. Choose the visible detail you actually like.
Remove bulk before adding accessories
Several small layers can collect in the same place: the legging hem, a folded sock and the boot opening. If the ankle feels crowded, remove one source of bulk before changing the whole outfit.
Try the sock you normally wear with those boots, smooth the legging hem, and check again. If you need a thicker sock for the day, the boot must have room for it. Do not keep squeezing in more fabric for the sake of a particular photograph.
Give graphic leggings a quieter boot
For a black-and-white version, we would start with the Dualis Swerve Leggings, a plain black crew-neck sweater and black ankle boots with a simple upper. Swerve's contrast waistband and symmetrical curved side panels provide the graphic detail; the boots do not need another stripe or large buckle.
Choose the sweater length for the coverage you want. Then look at how much of the lower-leg panel remains visible above the boots. A higher shaft covers more of the design, which is a real trade-off if that detail is what drew you to the leggings.
Use the pair of boots you own to decide whether you prefer showing more of the panel or keeping the ankle covered.

Keep the join simple
A good starting point is one smooth overlap, with enough room for your normal socks. If the pieces do not overlap, either keep the visible gap or bridge it deliberately. You do not need to rebuild the outfit around a stubborn hem, and you should not have to keep pulling it into place every time you stand up.