Backgrounds
background-attachment to Tailwind
Three utilities:bg-fixed, bg-local, bg-scroll.The 3 mappings below are read straight out of Tailwind v4.3.3, not maintained by hand, so this is what the converter will actually produce for background-attachment.
background-attachment values and their classes
| CSS | Tailwind |
|---|---|
| background-attachment: fixed; | bg-fixed |
| background-attachment: local; | bg-local |
| background-attachment: scroll; | bg-scroll |
Other backgrounds properties
Converting a whole stylesheet?
Paste it into the converter and get every rule at once, shorthands expanded, media queries turned into breakpoint variants, and the parts that have no Tailwind equivalent flagged rather than dropped.
Open the converter