back

Back

Square Blue

square

March 3, 2024

Square Blue - square Background

How to implement:

With tailwind installed in your project (tutorial), implement these tailwind classes in your parent div where it will reflect the background.

Code:

<section className="bg-white w-full bg-cover bg-center h-screen dark:bg-stone-950 bg-[url('https://flowbite.s3.amazonaws.com/docs/jumbotron/hero-pattern.svg')] dark:bg-[url('https://flowbite.s3.amazonaws.com/docs/jumbotron/hero-pattern-dark.svg')]">
        {your page}
        <div className="bg-gradient-to-r dark:from-blue-950 w-full h-full absolute top-0 left-0 z-0"></div>
    </section>

View background:

Captura de tela 2024-03-03 055543

Responsive: Mobile and desktop:

Macbook-Air-localhost

Note

If this background has served you in any way, consider following me on github or supporting me to continue working at BacksEasy.