back

Back

Square Purple

square

March 18, 2024

Banner

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-center h-screen dark:bg-violet-900 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=" to-transparent dark:from-stone-950 w-full h-full absolute top-0 left-0 z-0"></div>
    </section>

View background:

Captura de tela 2024-03-03 060508

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.

Any questions, criticisms or improvements, please suggest them through my Linkdin..