Skip to content

Instantly share code, notes, and snippets.

View gerhynes's full-sized avatar

Gerard Hynes gerhynes

View GitHub Profile
@gerhynes
gerhynes / tailwind-background-image.md
Last active September 16, 2020 20:24
Tailwind CSS background images

Since Tailwind 1.7, you don't need to do background images with custom CSS

tailwind.css

.header {
  background: hsl(180, 29%, 50%) center/cover;
  background-image: url(/images/bg-header-mobile.svg);
}

@media (min-width: 640px) {